Erpnext: Bench update command getting stuck on new Production VM

Created on 16 Mar 2018  路  10Comments  路  Source: frappe/erpnext

Testing the new Production VM with Ubuntu 16 x64

Running bench update or bench update --reset command getting stuck at
INFO:bench.utils: sudo supervisorctl restart frappe-bench-workers: frappe-bench-web:

image

bug

Most helpful comment

Have identified the issue, and working on a fix. In the meantime, use

sudo systemctl restart supervisor

before running

bench update

All 10 comments

Have identified the issue, and working on a fix. In the meantime, use

sudo systemctl restart supervisor

before running

bench update

@codingCoffee

Your commands solve the problem.
Will be a new Production VM upload?

In case then please change the "Administrator" password back to "admin".

Will be a new Production VM upload?

Yes, there will be a new Production Image released every week.

In case then please change the "Administrator" password back to "admin".

Any specific reason for the same ?

@codingCoffee

"Any specific reason for the same ?"

Confuses people if they see on the download page password "admin"
instead of the pasword "frappe":

https://erpnext.com/download

"Once the Virtual Machine boots, use your HOST operating system's browser and go to:

http://localhost:8080

and login using:

user: Administrator
password: admin

"
Should be make change the password or the web page description.

Thanks for pointing it out. Will make amends on this page ( https://erpnext.com/download ) too

@codingCoffee

THX.

BTW:
The virtual appliance uses Ubuntu 16.04.
instead of
Ubuntu 14.04

Yup, I know that @krnkris :P
I am the one working on it :P

@codingCoffee

Just download a new VM Production
the issue is the same, with first
bench update.
It stuck on:
INFO: bench.utils:sudo supervisorctl restart frappe-bench-workers: frappe-bench-web:

After rebooting the VM instance
bench update
goes well.

Thank you!

I don't think this is fixable. The problem lies in Ubuntu or rather Debian I presume. Supervisor does not start properly on reboot. I had bypassed this by using a cron job which executes 20 seconds post reboot. And hence as you mentioned after the 1st reboot it works properly.

https://github.com/frappe/bench/blob/63047730c5cb8a39a4015efc4bb6ade4c555fb1f/vm/scripts/restart_supervisor.sh#L8

I think when you load the virtual machine the 1st time it does not execute the cronjob. And hence the issue. After the 1st boot, you can execute systemctl restart supervisor, and get the bench update working

@codingCoffee

THX.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cradford picture cradford  路  4Comments

jboilesen picture jboilesen  路  3Comments

mubeenmazhar picture mubeenmazhar  路  4Comments

giuseppelamatrice picture giuseppelamatrice  路  3Comments

nabinhait picture nabinhait  路  4Comments