Hi,
Here’s what I tried:
bench switch-to-branch version-12 --upgrade
That worked succesfully and I get back:
$ bench switch-to-branch version-12 --upgrade
Switching for frappe
INFO:bench.utils:git config --unset-all remote.upstream.fetch
INFO:bench.utils:git config --add remote.upstream.fetch ‘+refs/heads/:refs/remotes/upstream/’
INFO:bench.utils:git fetch upstream
INFO:bench.utils:git checkout version-12
Already on ‘version-12’
Your branch is up to date with ‘upstream/version-12’.
INFO:bench.utils:git merge upstream/version-12
Already up to date.
Switching for erpnext
INFO:bench.utils:git config --unset-all remote.upstream.fetch
INFO:bench.utils:git config --add remote.upstream.fetch ‘+refs/heads/:refs/remotes/upstream/’
INFO:bench.utils:git fetch upstream
INFO:bench.utils:git checkout version-12
Already on ‘version-12’
Your branch is up to date with ‘upstream/version-12’.
INFO:bench.utils:git merge upstream/version-12
Already up to date.
Successfully switched branches for:
frappe
erpnext
Switched to version-12
Please run bench update --patch
to be safe from any differences in database schema
Then i try to run:
$ bench update --patch
Backing up sites...
Patching sites...
Migrating site1
Executing erpnext.patches.v12_0.rename_tolerance_fields in site1 (site1)
Traceback (most recent call last):
File "/usr/lib64/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
....
...
File "/erp/frappe-bench/env/lib/python2.7/site-packages/redis/connection.py", line 489, in connect
raise ConnectionError(self._error_message(e))
redis.exceptions.ConnectionError: Error 111 connecting to localhost:13000. Connection refused.
I try starting the site with:
$ bench start
but that fails as well with the following error:
16:18:12 watch.1 | > node rollup/watch.js
16:18:12 watch.1 |
16:18:13 web.1 | * Debugger is active!
16:18:13 web.1 | * Debugger PIN: 202-501-760
16:18:13 watch.1 | module.js:549
16:18:13 watch.1 | throw err;
16:18:13 watch.1 | ^
16:18:13 watch.1 |
16:18:13 watch.1 | Error: Cannot find module 'rollup-plugin-terser'
16:18:13 watch.1 | at Function.Module._resolveFilename (module.js:547:15)
16:18:13 watch.1 | at Function.Module._load (module.js:474:25)
16:18:13 watch.1 | at Module.require (module.js:596:17)
16:18:13 watch.1 | at require (internal/module.js:11:18)
16:18:13 watch.1 | at Object.<anonymous> (/erp/frappe-bench/apps/frappe/rollup/config.js:11:20)
16:18:13 watch.1 | at Module._compile (module.js:652:30)
16:18:13 watch.1 | at Object.Module._extensions..js (module.js:663:10)
16:18:13 watch.1 | at Module.load (module.js:565:32)
16:18:13 watch.1 | at tryModuleLoad (module.js:505:12)
16:18:13 watch.1 | at Function.Module._load (module.js:497:3)
16:18:13 watch.1 | npm ERR! code ELIFECYCLE
16:18:13 watch.1 | npm ERR! errno 1
16:18:13 watch.1 | npm ERR! frappe@ watch: `node rollup/watch.js`
16:18:13 watch.1 | npm ERR! Exit status 1
16:18:13 watch.1 | npm ERR!
16:18:13 watch.1 | npm ERR! Failed at the frappe@ watch script.
16:18:13 watch.1 | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
16:18:13 watch.1 |
16:18:13 watch.1 | npm ERR! A complete log of this run can be found in:
16:18:13 watch.1 | npm ERR! /home/erp/.npm/_logs/2019-08-06T14_18_13_876Z-debug.log
Does this mean I need to update my npm? or is it something else?
Thanks for your help.