In our self-hosted server, out of sudden, the socket IO didn’t work any longer.
Error message in node-socketio.log :
Unable to join chat room. Error: certificate has expired
I’ve tried to
- renew SSL certificate (Letsencrypt)
- disable/set to auto setting of “ssl_ecdh_curve” in config/nginx.conf
- Upgrade node version to v12.22.5
- Generate nginx.conf using certbot
But none are working.
The configuration :
Node version v10.18.0
Ubuntu 18.04 LTS
Appreciate any help
Same problem here. Even tried the same things.
Only this worked for me:
That is, add the following line at the top of the frappe/socketio.js file:
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
Be careful though, because it is not a good practice.