Thanks, I created a password for the account and continued without adding erpnext to the sudo group and this generated this error:
[sudo] password for erpnext:
erpnext is not in the sudoers file. This incident will be reported.
Traceback (most recent call last):
File "/home/erpnext/.local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/erpnext/.bench/bench/cli.py", line 40, in cli
bench_command()
File "/home/erpnext/.local/lib/python2.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/erpnext/.local/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/erpnext/.local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/erpnext/.local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/erpnext/.local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/erpnext/.bench/bench/commands/update.py", line 60, in update
_update(pull, patch, build, bench, auto, restart_supervisor, restart_systemd, requirements, no_backup, force=force, reset=reset)
File "/home/erpnext/.bench/bench/commands/update.py", line 100, in _update
restart_supervisor_processes(bench_path=bench_path)
File "/home/erpnext/.bench/bench/utils.py", line 389, in restart_supervisor_processes
supervisor_status = subprocess.check_output(['sudo', 'supervisorctl', 'status'], cwd=bench_path)
File "/usr/lib/python2.7/subprocess.py", line 219, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['sudo', 'supervisorctl', 'status']' returned non-zero exit status 1
I then added erpnext to the sudo group, exited, did a su - erpnext again to ensure that the updated groups were loaded and then I got:
bench update --patch
remote: Enumerating objects: 23, done.
remote: Counting objects: 100% (23/23), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 25 (delta 16), reused 19 (delta 16), pack-reused 2
Unpacking objects: 100% (25/25), done.
From https://github.com/frappe/frappe
7598c37a2..a60cb001f develop -> upstream/develop
dc2cc5c17..306ca0f44 staging -> upstream/staging
8c0fead00..306ca0f44 staging-fixes -> upstream/staging-fixes
* [new tag] v11.0.3-beta.35 -> v11.0.3-beta.35
Backing up sites...
Patching sites...
Migrating erpnext.example.org
Updating DocTypes for frappe : [========================================]
Updating DocTypes for erpnext : [========================================]
Syncing help database...
INFO:bench.utils:sudo supervisorctl restart frappe-bench-workers: frappe-bench-web:
frappe-bench-web:frappe-bench-node-socketio: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: ERROR (no such file)
frappe-bench-workers:frappe-bench-frappe-default-worker-0: ERROR (no such file)
frappe-bench-workers:frappe-bench-frappe-long-worker-0: ERROR (no such file)
frappe-bench-workers:frappe-bench-frappe-short-worker-0: ERROR (no such file)
frappe-bench-web:frappe-bench-frappe-web: started
frappe-bench-web:frappe-bench-node-socketio: started
________________________________________________________________________________
Bench: Deployment tool for Frappe and ERPNext (https://erpnext.org).
Open source depends on your contributions, so please contribute bug reports, patches, fixes or cash and be a part of the community
()
And I have:
tail /var/log/supervisor/supervisord.log
2018-12-10 12:08:33,210 INFO spawnerr: can't find command 'None'
2018-12-10 12:08:33,210 INFO gave up: frappe-bench-frappe-short-worker-0 entered FATAL state, too many start retries too quickly
2018-12-10 13:07:11,741 INFO waiting for frappe-bench-frappe-web to stop
2018-12-10 13:07:11,743 INFO waiting for frappe-bench-node-socketio to stop
2018-12-10 13:07:11,758 INFO stopped: frappe-bench-node-socketio (terminated by SIGTERM)
2018-12-10 13:07:12,264 INFO stopped: frappe-bench-frappe-web (exit status 0)
2018-12-10 13:07:13,284 INFO spawned: 'frappe-bench-frappe-web' with pid 4792
2018-12-10 13:07:13,304 INFO spawned: 'frappe-bench-node-socketio' with pid 4793
2018-12-10 13:07:14,308 INFO success: frappe-bench-frappe-web entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2018-12-10 13:07:14,308 INFO success: frappe-bench-node-socketio entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
So this appear to have solved some, but not all of the problems I reported in another thread…