Socket.Io Fatal Error: Connection refused (502 bad gateway)

I keep getting error and node-socketio-server is not running
I’m running V10 production setup

sudo supervisorctl status shows:
frappe-bench-web:frappe-bench-node-socketio FATAL Exited too quickly (process log may have details)

I did
bench setup requirements
bench setup socketio
bench setup nginx
sudo supervisorctl reload
bench restart

but the error persists,

sudo tail -f /var/log/nginx/error.log keeps showing this:
2020/11/19 02:11:23 [error] 8753#8753: *10837 connect() failed (111: Connection refused) while connecting to upstream, client:, server:, request: “GET / HTTP/1.1”, upstream: “”, host: “”, referrer: “

can anybody has clues what causes this?


Hi, did you fix that error?

Reinstall certificate
Make sure increase http_timeout in site config

Sudo bench setup production