Hey folks! I've tried two different VPS providers ...
# announcements
t
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
Can you go directly the API url?
you should see a json object
t
I sadly get ERR_CONNECTION_TIMED_OUT
f
ya, that’s the problem
why are you using two different VPS providers?
t
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
I see
t
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
what VPS are you using?
t
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
I mean, aws?
t
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
okay
It should work, seems there is some networking issues with the VPS
Sometimes communication between docker containers is problematic
t
@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
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
@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
ah, yes
thanks for the update
👍 1
perhaps I’ll add something to the FAQ for this