Bench restart error (spawn error)

I don’t know if this is related, but I run sudo systemctl status *
and get these:

Unit apps.service could not be found.
Unit archived_sites.service could not be found.
Unit config.service could not be found.
Unit env.service could not be found.
Unit logs.service could not be found.
Unit patches.txt.service could not be found.
Unit Procfile.service could not be found.
Unit sites.service could not be found.

I wonder how you have resolved this, as I’m facing the same problem.

I forgot. But I think I enabled and started each services one by one manually with
sudo systemctl enable (or start) servicename

1 Like

@aymangabir Hi… how did you solved this error, I have the same error. Do you have any idea?

These commands helped me

bench setup socketio
bench setup supervisor
bench setup redis
sudo supervisorctl reload
17 Likes

Worked for me. Thanks.

1 Like

I am also facing same issue.

tried these command but not working.

This worked for me too. Thanks

Are you still facing the issue?

I am also facing the same issue.

While doing bench restart getting bellow error.

ERROR: supervisorctl restart frappe-bench-workers: frappe-bench-web:

subprocess.CalledProcessError: Command 'supervisorctl restart frappe-bench-workers: frappe-bench-web:' returned non-zero exit status 7.

bench --site all list-apps

ModuleNotFoundError: No module named 'hospitality'

It has worked for me. Execute above all 4 commands inside erpnext installation directory with erpnext (user using which it has been setup) user.

14 Likes

Love you man! Thanks it worked for me

2 Likes

Still facing this issue.

thanks a lot.worked for me also

1 Like

It worked for me, thank you so much.

1 Like

what is the fix for this? I’m using a kvm from hostinger and I tried everything but still i have an error only when I run

bench restart
ERROR: supervisorctl restart frappe-bench-web:
subprocess.CalledProcessError: Command 'supervisorctl restart frappe-bench-web:' returned non-zero exit status 7.

@seif_khelifi [quote=“seif_khelifi, post:24, topic:75995”]
what is the fix for this?
[/quote]

Here’s the fix:

bench setup socketio
bench setup supervisor
bench setup redis
sudo supervisorctl reload

Worked, Thanks. Kindly mark this as solution.

Also seems related (if I’m not mistaken) is the RAM of the server. Needs at least 4MB