ambitious-journalist-66344
11/17/2020, 7:24 PMHey everyone, hoping this is the right place for a random question.
I'm playing with self hosting RudderStack on AWS ECS in a private VPC, withandRSERVER_BACKEND_CONFIG_CONFIG_FROM_FILE=true. Getting an error on start up:RSERVER_BACKEND_CONFIG_CONFIG_JSONPATH=/etc/rudderstack/workspaceConfig.json. If anyones got any ideas would be rad 🙂.Operation timed out
I tried turning up the logs to no avail. I don't have internet access from my VPC if that makes a difference.
What's interesting is the only log message I'm getting in mySrikanth:container is the message:rudder-server. My guess is it is trying to connect to the database and failing (since the db log messages show first when I run it locally).Operation timed out
Its waiting for postgres and timing out. Ref: https://github.com/rudderlabs/rudder-server/blob/master/build/wait-for#L23-L41
GitHub
rudderlabs/rudder-server
Privacy and Security focused Segment-alternative, in Golang and React - rudderlabs/rudder-server
ambitious-journalist-66344
11/17/2020, 7:46 PM@ambitious-journalist-66344 i have a rudder-server running on a private VPC with very limited outbound gateway, i'm using the hosted config panel. the server is accessed via private dns using route53 rudder.foo.internal, and since i'm only currently warehousing events to postgres it's all behind www. Most likely, per usual, it's a security group egress issue. can you send the tail of the startup logs?
[8:40 AM] curl -v [localhost|private ip|dns]:8085/health is an easy sanity check
[8:40 AM] do you have an alb in front it?I'm guessing right now, even though they're part of the same set of services in my
docker-compose.yml somehow my rudder-server container doesn't have a route to my db container. Just swapping ECS network modes at the moment to see if that helps.ambitious-journalist-66344
11/17/2020, 7:48 PMGET /health won't work yet as the server isn't starting.
(I did try using a postgres RDS, and it's still failing, even tho the underlying ec2 instance the container is running on has a route to the RDS. I could connect with psql so I don't think it's SG related.)billions-terabyte-89990
11/17/2020, 7:50 PMbillions-terabyte-89990
11/17/2020, 7:53 PMambitious-journalist-66344
11/17/2020, 7:54 PMand you're just talking about rudder-server + postgres:6432Yes. (tho I'm using port 5432.)
billions-terabyte-89990
11/17/2020, 7:54 PMbillions-terabyte-89990
11/17/2020, 8:00 PMbillions-terabyte-89990
11/17/2020, 8:04 PMbillions-terabyte-89990
11/17/2020, 8:09 PMbillions-terabyte-89990
11/17/2020, 8:09 PMbillions-terabyte-89990
11/17/2020, 8:12 PMambitious-journalist-66344
11/17/2020, 8:37 PMecs-cli .
ecs-cli compose --verbose -f ./rudder-docker.yml --project-name rudder runambitious-journalist-66344
11/17/2020, 8:37 PMbillions-terabyte-89990
11/17/2020, 8:50 PMbillions-terabyte-89990
11/17/2020, 8:55 PMambitious-journalist-66344
11/17/2020, 9:59 PMdb doesn't resolve from my rudder-server container. Currently figuring how `link`ed containers are supposed to work on ECS. I can see Service Discovery but them seems unnecessary...ambitious-journalist-66344
11/18/2020, 1:24 AMbackend:
depends_on:
- db
- d-transformer
links: # <----what I needed to add for ECS
- db
- d-transformer
image: rudderlabs/rudder-server:latest