only in develop
can be execute the
bench update --reset
with this output, nothing else works
in VM virtual image
frappe@erpnext:~/frappe-bench$ bench update --reset
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Already up-to-date.
INFO:bench.utils:./env/bin/pip install Pillow
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
Requirement already satisfied: olefile in ./env/lib/python2.7/site-packages (from Pillow)
INFO:bench.app:pulling frappe
INFO:bench.utils:git fetch --all
Fetching upstream
INFO:bench.utils:git reset --hard upstream/develop
HEAD is now at 8de4ebe Merge pull request #5072 from achillesrasquinha/py3
INFO:bench.utils:find . -name "*.pyc" -delete
INFO:bench.app:pulling erpnext
INFO:bench.utils:git fetch --all
Fetching upstream
INFO:bench.utils:git reset --hard upstream/develop
Checking out files: 100% (6556/6556), done.
HEAD is now at 4a0d270 optimize patch for faster execution (#13068)
INFO:bench.utils:find . -name "*.pyc" -delete
INFO:bench.app:pulling erpnext_demo
INFO:bench.utils:git fetch --all
Fetching upstream
INFO:bench.utils:git reset --hard upstream/master
HEAD is now at 5567d19 Merge pull request #25 from neilLasrado/master
INFO:bench.utils:find . -name "*.pyc" -delete
Updating Python libraries...
INFO:bench.utils:./env/bin/pip install --upgrade pip
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
INFO:bench.utils:./env/bin/pip install -q -r /home/frappe/bench-repo/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/erpnext/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/erpnext_demo/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/frappe/requirements.txt
Updating node packages...
INFO:bench.utils:yarn install
yarn install v1.3.2
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 13.12s.
Backing up sites...
Patching sites...
Migrating erpnext.vm
Updating DocTypes for frappe : [========================================]
Updating DocTypes for erpnext : [========================================]
Syncing help database...
/home/frappe/frappe-bench/apps/frappe/frappe/build.py:108: UserWarning: Source /home/frappe/frappe-bench/apps/erpnext_demo/erpnext_demo/docs does not exist.
warnings.warn('Source {source} does not exist.'.format(source = source))
> frappe@ production /home/frappe/frappe-bench/apps/frappe
> FRAPPE_ENV=production rollup -c
[!] SyntaxError: Unexpected token {
SyntaxError: Unexpected token {
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.require.extensions..js (/home/frappe/frappe-bench/apps/frappe/node_modules/rollup/bin/rollup:2757:19)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at /home/frappe/frappe-bench/apps/frappe/node_modules/rollup/bin/rollup:2764:32
at process._tickCallback (internal/process/next_tick.js:103:7)
at Function.Module.runMain (module.js:449:11)
npm ERR! Linux 3.13.0-79-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "production"
npm ERR! node v5.12.0
npm ERR! npm v3.8.6
npm ERR! code ELIFECYCLE
npm ERR! frappe@ production: `FRAPPE_ENV=production rollup -c`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frappe@ production script 'FRAPPE_ENV=production rollup -c'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the frappe package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! FRAPPE_ENV=production rollup -c
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs frappe
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls frappe
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/frappe/frappe-bench/apps/frappe/npm-debug.log
INFO:bench.utils:sudo supervisorctl restart frappe-bench-workers: frappe-bench-web:
frappe-bench-frappe-schedule: stopped
frappe-bench-frappe-default-worker-0: stopped
frappe-bench-frappe-long-worker-0: stopped
frappe-bench-frappe-short-worker-0: stopped
frappe-bench-frappe-web: stopped
frappe-bench-node-socketio: stopped
frappe-bench-frappe-schedule: started
frappe-bench-frappe-default-worker-0: started
frappe-bench-frappe-long-worker-0: started
frappe-bench-frappe-short-worker-0: started
frappe-bench-node-socketio: started
frappe-bench-frappe-web: 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
()
frappe@erpnext:~/frappe-bench$
This is the error i faced when installing on clean machine.
Updating node packages...
Traceback (most recent call last):
File "/home/serveru/.local/bin/bench", line 9, in <module>
load_entry_point('bench==4.1.0', 'console_scripts', 'bench')()
File "/home/serveru/frappe/bench-repo/bench/cli.py", line 40, in cli
bench_command()
File "/home/serveru/.local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/serveru/.local/lib/python2.7/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/serveru/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/serveru/.local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/serveru/.local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/serveru/frappe/bench-repo/bench/commands/make.py", line 28, in init
python = python)
File "/home/serveru/frappe/bench-repo/bench/utils.py", line 75, in init
update_node_packages(bench_path=path)
File "/home/serveru/frappe/bench-repo/bench/utils.py", line 436, in update_node_packages
v = semantic_version.Version(get_current_version('frappe'))
File "/home/serveru/frappe/bench-repo/bench/app.py", line 257, in get_current_version
with open(os.path.join(repo_dir, os.path.basename(repo_dir), '__init__.py')) as f:
IOError: [Errno 2] No such file or directory: './apps/frappe/frappe/__init__.py'
v = semantic_version.Version(get_current_version('frappe'))
should be:
v = semantic_version.Version(get_current_version('frappe', bench_path))
isn’t it?
UPDATE:
changing to get_current_version('frappe', bench_path) init will end successfully, but still getting yarn errors and on bench start keep getting honcho error:
$ bench start
11:18:15 system | watch.1 started (pid=1012)
11:18:15 system | worker_long.1 started (pid=1008)
11:18:15 system | socketio.1 started (pid=1016)
11:18:15 system | web.1 started (pid=1013)
11:18:15 system | schedule.1 started (pid=1014)
11:18:15 system | worker_short.1 started (pid=1017)
11:18:15 system | worker_default.1 started (pid=1015)
11:18:23 socketio.1 | listening on *: 9000
11:19:23 worker_long.1 | 11:19:23 RQ worker u'rq:worker:89109a053cde.1021.long' started, version 0.10.0
11:19:23 worker_short.1 | 11:19:23 RQ worker u'rq:worker:89109a053cde.1027.short' started, version 0.10.0
11:19:23 worker_short.1 | 11:19:23 *** Listening on short...
11:19:23 worker_long.1 | 11:19:23 *** Listening on long...
11:19:23 worker_long.1 | 11:19:23 Cleaning registries for queue: long
11:19:23 worker_short.1 | 11:19:23 Cleaning registries for queue: short
11:19:23 worker_default.1 | 11:19:23 RQ worker u'rq:worker:89109a053cde.1036.default' started, version 0.10.0
11:19:23 worker_default.1 | 11:19:23 *** Listening on default...
11:19:23 worker_default.1 | 11:19:23 Cleaning registries for queue: default
11:19:25 watch.1 |
11:19:25 watch.1 | > frappe@ watch /home/frappe/frappe-bench/apps/frappe
11:19:25 watch.1 | > rollup -c -w
11:19:25 watch.1 |
11:19:26 web.1 | * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
11:19:26 web.1 | * Restarting with inotify reloader
Traceback (most recent call last):
File "/usr/local/bin/honcho", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/honcho/command.py", line 287, in main
COMMANDS[args.command](args)
File "/usr/local/lib/python2.7/dist-packages/honcho/command.py", line 233, in command_start
manager.loop()
File "/usr/local/lib/python2.7/dist-packages/honcho/manager.py", line 116, in loop
self._printer.write(msg)
File "/usr/local/lib/python2.7/dist-packages/honcho/printer.py", line 61, in write
self.output.write(prefix + line + "\n")
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2728' in position 41: ordinal not in range(128)
running the site on chrome, still having issues with css and js, it seems package not loaded correctly:
23:28:20 web.1 | * Debugger PIN: 330-808-860
Traceback (most recent call last):
File "/usr/local/bin/honcho", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/honcho/command.py", line 287, in main
COMMANDS[args.command](args)
File "/usr/local/lib/python2.7/dist-packages/honcho/command.py", line 233, in command_start
manager.loop()
File "/usr/local/lib/python2.7/dist-packages/honcho/manager.py", line 116, in loop
self._printer.write(msg)
File "/usr/local/lib/python2.7/dist-packages/honcho/printer.py", line 61, in write
self.output.write(prefix + line + "\n")
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2728' in position 41: ordinal not in range(128)
To allow others to comment as well. Your issue may be resolved, but the others who posted here may not be up and running. Since they have already posted here, allowing them to continue posting here rather than starting a new thread is reasonable.
thing is …it is solved not just for me but for all …and honcho problem is nothing to do with bench update but it’s a frappe docker problem …so again this can be closed.