https://www.growthbook.io/ logo
t

thankful-waiter-26391

12/22/2022, 4:44 PM
Hey folks! I've tried two different VPS providers to spin VMs with GrowthBook using both the latest docker image and one from a week ago from Docker Hub. I had edited docker-compose.yml to include my VM's external IP address
Copy code
growthbook:
  ...
  environment:
    - APP_ORIGIN=http://<my ip>:3000
    - API_HOST=http://<my ip>:3100
But I'm still getting this error 🫤 Do I need to additionally open up the 3100 port or something? Any help would be much appreciated.
f

fresh-football-47124

12/22/2022, 4:47 PM
Can you go directly the API url?
you should see a json object
t

thankful-waiter-26391

12/22/2022, 4:56 PM
I sadly get ERR_CONNECTION_TIMED_OUT
f

fresh-football-47124

12/22/2022, 4:58 PM
ya, that’s the problem
why are you using two different VPS providers?
t

thankful-waiter-26391

12/22/2022, 5:00 PM
I just meant that I was using my go-to one, but I got this error. To troubleshoot, I decided to switch to another one.
f

fresh-football-47124

12/22/2022, 5:00 PM
I see
t

thankful-waiter-26391

12/22/2022, 5:00 PM
I'm only using one at a time, it's not distributed. Both growthbook and mongo images are running on one VM.
It's weird, because it seems that APP_ORIGIN setting works, but not API_HOST
Though I'm litterally using the same IP in them
f

fresh-football-47124

12/22/2022, 5:09 PM
what VPS are you using?
t

thankful-waiter-26391

12/22/2022, 5:13 PM
Currently Ubuntu 22.04 with 1 vCPU and 2 GB RAM. but initially I tried it on Ubuntu 22.04 with 12 CPU and 64 GB RAM
f

fresh-football-47124

12/22/2022, 5:13 PM
I mean, aws?
t

thankful-waiter-26391

12/22/2022, 5:15 PM
Oh, no, just cheaper Eastern European VPS provders...
Copy code
git clone <https://github.com/growthbook/growthbook.git>
cd growthbook
<then I edited docker-compose.yml to include my IP>
docker-compose up -d
f

fresh-football-47124

12/22/2022, 5:22 PM
okay
It should work, seems there is some networking issues with the VPS
Sometimes communication between docker containers is problematic
t

thankful-waiter-26391

12/22/2022, 5:36 PM
@fresh-football-47124 Okay, thank you! I'll try maybe another VPS provider and a different distro... Luckily nowadays you can pay per hour or even minute of your instance running 🙂
Can I ask in this very thread as well about ClickHouse support? I've been reading contradicting posts online. Is it possible to connect to ClickHouse from GrowthBook?
f

fresh-football-47124

12/22/2022, 5:38 PM
We use ubuntu - I dont think that’s the issue
if you can’t get packets to the the API
Yes, you can connect from GrowthBook to Clickhouse
t

thankful-waiter-26391

12/22/2022, 5:42 PM
@fresh-football-47124 Thank you for your help, I'll post here if something new pops up in regards to this issue for the communnity benefit 👍
Turns out one has also to set up JWT_SECRET with a random string in docker-compose.yml to run it on external IP:
Copy code
version: "3"
services:
...
  growthbook:
...
    environment:
...
      - JWT_SECRET='<random_string>'
I was getting this error in docker-compose logs on back-end side:
Copy code
Error: Cannot use JWT_SECRET=dev in production. Please set to a long random string
f

fresh-football-47124

12/24/2022, 2:56 AM
ah, yes
thanks for the update
👍 1
perhaps I’ll add something to the FAQ for this
3 Views