I am setting up a Mastodon server on Docker on Ubuntu.
The server is up and running but when I try to access the site from a browser I get the error 502 Bad Gateway.
I have checked that ufw is permitting connections:
And I checked that nginx is listening:
Looking in the nginx error log I can see entries such as this one:
2020/07/01 06:47:59 [error] 11686#11686: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 126.96.36.199, server: www.canberrasocial.net, request: "GET / HTTP/2.0", upstream: http://127.0.0.1:3000/", host: "www.canberrasocial.net"
I also confirmed that Docker is up and running though I see some unusual messages which I don't understand:
I'm fairly new to linux admin so my apologies if this is a dumb question, but I'm really stumped as to how to resolve this issue. Hope somebody can help.