Socket.io not working on v8 production server

I’ve spent several hours trying to figure this out, but nothing seems to work! :<

In the node-socket.io.log file, this comes up

{ Error: unable to verify the first certificate
    at Error (native)
    at TLSSocket.<anonymous> (_tls_wrap.js:1092:38)
    at emitNone (events.js:86:13)
    at TLSSocket.emit (events.js:185:7)
    at TLSSocket._finishInit (_tls_wrap.js:610:8)
    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', response: undefined }
No response for doc_subscribe
No response for doc_subscribe

Seems to show up as a Web Socket in Chrome, but nothing shows up

image

supervisor is running fine as well

Any ideas?

Did you try?

cd frappe-bench
rm -rf node_modules
bench setup requirements

Yep :frowning:

Does frappe use any global node modules? I checked logs and did some monitoring, and redis is getting the info, and so is server-side node (I added some prints) but I think there’s some problem with the client-side.

This is most likely something to do with the SSL Certificate.

Does everything check out well for the cert? https://www.ssllabs.com/ssltest/ can point out issues.

1 Like

You were absolutely correct, I didn’t have the chain cert setup! Thanks!

1 Like