I’m getting the following error when I do bench start:
bench start
19:57:43 system | workerbeat.1 started (pid=14481)
19:57:43 system | socketio.1 started (pid=14485)
19:57:43 socketio.1 | /usr/bin/env: node: No such file or directory
19:57:43 system | socketio.1 stopped (rc=127)
19:57:43 system | redis_cache.1 started (pid=14488)
19:57:43 redis_cache.1 | [14492] 17 Aug 19:57:43.727 # Fatal error, can't open config file 'config/redis_cache.conf'
19:57:43 system | redis_cache.1 stopped (rc=1)
19:57:43 system | worker.1 started (pid=14489)
19:57:43 system | redis_async_broker.1 started (pid=14497)
19:57:43 system | web.1 started (pid=14496)
19:57:43 system | sending SIGTERM to workerbeat.1 (pid 14481)
19:57:43 system | sending SIGTERM to worker.1 (pid 14489)
19:57:43 system | sending SIGTERM to web.1 (pid 14496)
19:57:43 system | sending SIGTERM to redis_async_broker.1 (pid 14497)
19:57:43 system | worker.1 stopped (rc=-15)
19:57:43 system | workerbeat.1 stopped (rc=-15)
19:57:43 system | web.1 stopped (rc=-15)
19:57:43 redis_async_broker.1 | [14500] 17 Aug 19:57:43.786 # Fatal error, can't open config file 'config/redis_async_broker.conf'
19:57:43 system | redis_async_broker.1 stopped (rc=1)
So if I’ve looked in the config folder and there is only the one redis related file which is called redis.conf
I also have nginx.conf (along with a few saved versions) and supervisor.conf
So I thought perhaps the upgrade didn’t complete correctly, even though there were no errors reported, so I then ran:
bench setup socketio
bench setup supervisor
bench setup nginx
service nginx reload
supervisorctl reload
I re-ran bench update --upgrade and now I get this error:
bench update --upgrade
Already up-to-date.
From https://github.com/frappe/frappe
* branch develop -> FETCH_HEAD
Already up-to-date.
From https://github.com/frappe/erpnext
* branch develop -> FETCH_HEAD
Already up-to-date.
Database backed up /home/eamonn/frappe-bench/sites/new-site1.local/private/backups/20150817_50819592_database.sql.gz
Database backed up /home/eamonn/frappe-bench/sites/site1.local/private/backups/20150817_73929522_database.sql.gz
Migrating new-site1.local
Updating frappe : [========================================]
Migrating site1.local
Updating frappe : [========================================]
Updating erpnext : [========================================]
Wrote ./assets/js/print_format_v3.min.js - 18k
Wrote ./assets/js/frappe-web.min.js - 274k
Wrote ./assets/js/form.min.js - 94k
Wrote ./assets/js/report.min.js - 155k
Wrote ./assets/js/erpnext.min.js - 33k
Wrote ./assets/css/list.min.css - 5k
Wrote ./assets/js/erpnext-web.min.js - 1k
Wrote ./assets/css/report.min.css - 7k
Wrote ./assets/css/frappe-web.css - 54k
Wrote ./assets/js/list.min.js - 60k
Wrote ./assets/js/desk.min.js - 854k
Wrote ./assets/css/form.min.css - 1k
Wrote ./assets/js/editor.min.js - 26k
Wrote ./assets/css/erpnext.css - 1k
Wrote ./assets/css/desk.min.css - 254k
Wrote ./assets/js/module.min.js - 5k
Wrote ./assets/css/module.min.css - 0k
error: <class 'xmlrpclib.Fault'>, <Fault 10: 'BAD_NAME: frappe'>: file: /usr/lib/python2.7/xmlrpclib.py line: 794
Traceback (most recent call last):
File "/usr/local/bin/bench", line 9, in <module>
load_entry_point('bench==0.1', 'console_scripts', 'bench')()
File "/home/eamonn/bench-repo/bench/cli.py", line 60, in cli
bench()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 664, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 644, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 991, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 837, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 464, in invoke
return callback(*args, **kwargs)
File "/home/eamonn/bench-repo/bench/cli.py", line 241, in _update
update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
File "/home/eamonn/bench-repo/bench/cli.py", line 277, in update
restart_supervisor_processes(bench=bench_path)
File "/home/eamonn/bench-repo/bench/utils.py", line 303, in restart_supervisor_processes
exec_cmd(cmd, cwd=bench)
File "/home/eamonn/bench-repo/bench/utils.py", line 104, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: sudo supervisorctl restart frappe:
So I’m a little bit stuck now.
Any help appreciated.