Socket IO not working in Production Ubuntu 18.04

Here is my experience with this SocketIO issue:

First I found an error looking similar to

error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure:../deps/openssl/openssl/ssl/s23_clnt.c:802:

in my “/frappe-bench/logs/node-socketio.log” file.

Turns out this exact error is thrown due to a bug in node v8.

So, I started looking around for what my node version is with “node -v”. It showed the version as v14. But, I was still getting this error.

Here is my solution and what I found:

It turns out that my “frappe-bench/config/supervisor.conf” file was using “/usr/bin/node” to start the “-node-socketio” process. But, Since I had nvm installed to manage my node versions, the node version used in the terminal was installed locally and “/usr/bin/node” was left at v8.

This issue was resolved for me after updating the node in “/usr/bin/node” and restarting the supervisor.

2 Likes