Fresh install V11 on Ubuntu 18.04 - frappe-web: ERROR (spawn error)

After completing installation i could not access website (Sorry! We will be back soon.). Running bench restart i get this.

frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-default-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-web:frappe-bench-node-socketio: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: started
frappe-bench-workers:frappe-bench-frappe-default-worker-0: started
frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
frappe-bench-web:frappe-bench-node-socketio: started
frappe-bench-web:frappe-bench-frappe-web: ERROR (spawn error)

Can anyone help me solve this?

If the process is busy, it can try to restart before the original one (which is still trying to stop) has ended properly. Best to do

bench stop
sleep 15 #=15s (can be a higher value if needed)
bench start

there is no bench stop command. proceeded to run sleep 15 then bench restart. same error.

@airzoink are you using production or developement dev?

production.

check the status of redis etc…

how can i check?

frappe-bench-redis:frappe-bench-redis-cache                 RUNNING   pid 1380, uptime 5:45:31
frappe-bench-redis:frappe-bench-redis-queue                 RUNNING   pid 1379, uptime 5:45:31
frappe-bench-redis:frappe-bench-redis-socketio              RUNNING   pid 1381, uptime 5:45:31
frappe-bench-web:frappe-bench-frappe-web                    FATAL     Exited too quickly (process log may have details)
frappe-bench-web:frappe-bench-node-socketio                 RUNNING   pid 5406, uptime 4:37:12
frappe-bench-workers:frappe-bench-frappe-default-worker-0   RUNNING   pid 5374, uptime 4:37:13
frappe-bench-workers:frappe-bench-frappe-long-worker-0      RUNNING   pid 5375, uptime 4:37:13
frappe-bench-workers:frappe-bench-frappe-schedule           RUNNING   pid 5373, uptime 4:37:13
frappe-bench-workers:frappe-bench-frappe-short-worker-0     RUNNING   pid 5376, uptime 4:37:13

from my supervisor log.

2020-02-11 17:38:53,888 INFO spawned: 'frappe-bench-frappe-short-worker-0' with pid 5376
2020-02-11 17:38:54,889 INFO success: frappe-bench-frappe-default-worker-0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-02-11 17:38:54,889 INFO success: frappe-bench-frappe-schedule entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-02-11 17:38:54,889 INFO success: frappe-bench-frappe-long-worker-0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-02-11 17:38:54,889 INFO success: frappe-bench-frappe-short-worker-0 entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-02-11 17:38:54,891 INFO spawned: 'frappe-bench-frappe-web' with pid 5405
2020-02-11 17:38:54,895 INFO spawned: 'frappe-bench-node-socketio' with pid 5406
2020-02-11 17:38:55,329 INFO exited: frappe-bench-frappe-web (exit status 1; not expected)
2020-02-11 17:38:56,332 INFO spawned: 'frappe-bench-frappe-web' with pid 5419
2020-02-11 17:38:56,332 INFO success: frappe-bench-node-socketio entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2020-02-11 17:38:56,749 INFO exited: frappe-bench-frappe-web (exit status 1; not expected)
2020-02-11 17:38:58,756 INFO spawned: 'frappe-bench-frappe-web' with pid 5425
2020-02-11 17:38:59,181 INFO exited: frappe-bench-frappe-web (exit status 1; not expected)
2020-02-11 17:39:02,187 INFO spawned: 'frappe-bench-frappe-web' with pid 5431
2020-02-11 17:39:02,636 INFO exited: frappe-bench-frappe-web (exit status 1; not expected)
2020-02-11 17:39:03,637 INFO gave up: frappe-bench-frappe-web entered FATAL state, too many start retries too quickly

we are facing same issue @nawaf

try this, I am not sure

cd to frappe-bench folder
Then run: ./env/bin/pip install werkzeug==0.16.0

1 Like

it worked! Thank you very much! :grin:

credit to @glz

How did you install V11? I have tried many times no luck. A help here would be much appreciated. Regards

I used the easy script found here bench/easy_install.md at master · frappe/bench · GitHub

I think i encountered an error on my first run of install.py but decided to run it the second time and it was successful. Also after installing Ubuntu 18, i ran all software updates before ERPNext installation.

Thanks for the help. I have been able to install V11 successfully per the link you sent but the site is not loading after the installation. See attached screenshot

This also happen to me. Then i did this.

Thanks it works like charm