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

I keep getting socket.io 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: 36.70.230.43, server: mysite.com, request: “GET /socket.io/?EIO=3&transport=polling&t=NNUHO1g HTTP/1.1”, upstream: “http://127.0.0.1:9000/socket.io/?EIO=3&transport=polling&t=NNUHO1g”, host: “mysite.com”, referrer: “https://mysite.com/desk

can anybody has clues what causes this?

Thanks

Hi, did you fix that error?

Reinstall certificate
Make sure increase http_timeout in site config

Sudo bench setup production

1 Like