Bad gateway when installing on AWS


#1

Hello,

I can’t get the install to work on AWS (Ubuntu 14.04 LTS) due to Bad Gateway (502) error.

I have followed this tutorial:
https://rocket.chat/docs/installation/paas-deployments/aws/

When running “sudo docker ps -a” I see:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
43acf30efea4 mongo:3.0 “docker-entrypoint.s…” 50 minutes ago Created 27017/tcp rocketchat_db_1

Here are from the error logs I could think of to be relevant:

Error in “/var/log/upstart/rocketchat_mongo.log”:
OCI runtime create failed: container_linux.go:348: starting container process caused "process_linux.go:301: running exec setns process for init caused “exit status 23"”: unknown

Error in “/var/log/upstart/rocketchat_app.log”:
OCI runtime create failed: container_linux.go:348: starting container process caused “process_linux.go:297: copying bootstrap data to pipe caused “write init-p: broken pipe””: unknown

Error in nginx error log “/var/log/nginx/error.log”:
2019/02/15 20:23:21 [error] 1114#0: *11 connect() failed (111: Connection refused) while connecting to upstream, client: CLIENT_IP, server: aracari.se, request: “GET / HTTP/1.1”, upstream: “http://127.0.0.1:3000/”, host: “aracari.se”

Have tried installing it on three differant instances and always get the same error.

Please, any help would be greatly appreciated!
Thanks
//Martin


#2

Found a solution. There seems to be a bug in the current docker (18.06.02).

I downgraded to 18.05.0, and now it is working.


#3

Thanks for following up with a solution. Do you happen to have a link to the docker issue? Would be interesting to follow that to see if we need to add a warning to that page