Nginx error 502

Hi,

Second question of the day. I feel very dumb xD
Well then, I get 502 Bad gateway. I don’t know nginx that well.
I have followed This guide

Cheers!

1 Like

As that guide says

If you aren’t familiar with nginx, docker and web hosting in general, please stay on the official guide.

1 Like

Well i do know a bit of nginx, and I use it regularly. But I don’t know the errors of nginx well. I don’t really see any obvious errors.

502 means your Discourse instance is not starting / started / running.

1 Like

Hi, After some investigation i found the nginx.http.sock file never gets created

Not when rebuilding, or whatever.

How can i fix this?

With kind regards,
ProDev

1 Like

After even more investigation i now found the issues (I think) now I get this:

Errno::ENOENT: No such file or directory @ rb_sysopen - /etc/nginx/conf.d/discourse.conf
Location of failure: /pups/lib/pups/replace_command.rb:8:in `read'
replace failed with the params {"filename"=>"/etc/nginx/conf.d/discourse.conf", "from"=>"/listen 80;/", "to"=>"listen unix:/shared/nginx.http.sock;\nset_real_ip_from unix:;\n"}
29a62052d71af43fee746d9257942f63ef14ff9262465631dee891769
1 Like

Any ideas @Falco ? Because we really do not know.