ERPNext Conference 2019* ERPNext.com Blog

Bench Start Problem || Spawn Error


#1

Hello All,

I’m facing this issue while running the bench start command. It gives the spawn error on the socketio as seen in the screenshots attached below.

It will be a great help, if anyone can assist on this.

Thanks & Regards,
Kalpit Shah


#2

Any help on this?


#3
- remove node_modules from app/frappe
- reinstall node dependancies via bench setup requirements --node
- restart supervisor

#4

Hello @saurabh6790,

Thank you for your reply on this.

Erpnext Version : 9.2.13
Frappe Version : 9.2.14

Output:

The error still persists.


#5

you can try to reinstall redis

cd ~/frappe-bench;
bench setup redis;
bench setup socketio;
bench setup config;
bench restart;

Maybe check the log files too

tail 50 ./frappe-bench/logs/node-socketio.error.log;
tail 50 ./frappe-bench/logs/redis-cache.error.log;

Which versions of redis/node/npm/yarn are running?

node -v && npm -v && yarn -v
redis-server -v


#6

Version Details :-

Log Details :-

redis-server -v didn’t responded anything on terminal.

I’ll try to reinstall redis and let you know the details.

Thank you for your input!


#7

sudo apt install redis-server -y
#Test the install:
redis-server -v


#8

@Shah_Kalpit have you cleared this issue…? if not let use this below codes

  • npm install babel-core less chokidar babel-preset-es2015 babel-preset-es2016 babel-preset-es2017 babel-preset-babili

  • echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p


#9

The last pic you showed… “No such file…” for the redis.log, indicates that redis is not installed or not working correctly