Followed Basic Usage tutorial got socketio ENOENT

Hi, I installed frappe manually as described here GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps, and installed ERPNext as described here GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps. The installation process runs without problem. But when I opened localhost:3000 I got this error from socketio:

Error: ENOENT: no such file or directory, stat '/home/bayu/Sources/frappe-bench/index.html' at Error (native)

And here is the console log:

Sat, 27 Feb 2016 11:32:03 GMT express deprecated res.sendfile: Use res.sendFile instead at apps/frappe/socketio.js:19:7
Error: ENOENT: no such file or directory, stat '/home/bayu/Sources/frappe-bench/index.html' at Error (native)

Tried installation process above the second time, and got the same result. Please help. Thanks in advance.

Don’t run on port 3000 (since socketio runs on that port). Sorry this is hard coded for now

1 Like

Thanks for your help @rmehta . It solved my problem.

Just in case someone need this in the future, here’s how I changed my default port for bench start command:

  • Editted Procfile file
  • Changed the line web: bench serve to web: bench serve --port 8000. Save.
2 Likes