Bench update ERROR message: frappe-bench-node-socketio: ERROR (abnormal termination)

Hi all,

I had a similar issue (frappe-bench-node-socketio: ERROR (abnormal termination)) after a vanilla install (Debian 8.7, ERPNExt v10.0) with

$ bench restart
/home/frappe/frappe-bench$ sudo bench restart
INFO:bench.utils:sudo supervisorctl restart frappe-bench-workers: frappe-bench-web:
frappe-bench-frappe-schedule: stopped
frappe-bench-frappe-default-worker-0: stopped
frappe-bench-frappe-long-worker-0: stopped
frappe-bench-frappe-short-worker-0: stopped
frappe-bench-frappe-web: stopped
frappe-bench-frappe-schedule: started
frappe-bench-frappe-default-worker-0: started
frappe-bench-frappe-long-worker-0: started
frappe-bench-frappe-short-worker-0: started
frappe-bench-node-socketio: ERROR (abnormal termination)
frappe-bench-frappe-web: started

The error trace shows (logs/node-socketio.error.log)

$ cat logs/node-socketio.error.log
Error: Cannot find module 'express'
  at Function.Module._resolveFilename (module.js:476:15)
  at Function.Module._load (module.js:424:25)
  at Module.require (module.js:504:17)
  at require (internal/module.js:20:19)
  at Object.<anonymous> (/home/frappe/frappe-bench/apps/frappe/socketio.js:1:91)
  at Module._compile (module.js:577:32)
  at Object.Module._extensions..js (module.js:586:10)
  at Module.load (module.js:494:32)
  at tryModuleLoad (module.js:453:12)
  at Function.Module._load (module.js:445:3)

Trying to resolve it with

$ sudo npm install express
$ sudo npm install socket.io

has resolved the issueā€¦ Maybe this helps someone else :wink:

1 Like

For me it didnā€™t work, for node version 7 & 8 then I updated to 12 and now thatā€™s working for me