22.02 yarn errors on build in develop branch?

Hi there, still can’t get to work, i’m on latest (built from scratch). It seems to be not getting js and css correctly:

Can you please double check and fix?

@netchampfaris any hint on how to solve this? thx

Stuck on this for days!..upgraded npm, node nothing

Can’t get to work …it’s kind of frustrating …

Any one have a solution / workaround for this?

Hi @JoEz,

we have several similar issues, but not the exact same one… As it is a vanilla system, can you comment on the config (which OS are you using)? Steps to reproduce?

On a clean install perfomed yesterday (Debian 8.7 amd64), with easy install production, the installer failed at first attempt, passed on second (no changes, simply rerun). The system was then in a bad state, which was resolved with

$ sudo npm install -g yarn
$ sudo npm install babel-core
$ sudo npm install less
$ sudo npm install chokidar
$ sudo npm install touch

Seems like there are still some dependency issues (is the yarn.lock now in a good state?).

Same problem as of:

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 was because bench setup requirements command was broken.
Just pushed a fix.

so is this one resolved with this fix?

how do i resolve this error during installation, i have tried all stated methods but i can’t seem to get it right #git issue . am getting this error

09:27:02 watch.1 | Wrote js/item-dashboard.min.js - 8.42 KB
09:27:05 watch.1 | events.js:160
09:27:05 watch.1 | throw er; // Unhandled ‘error’ event
09:27:05 watch.1 | ^
09:27:05 watch.1 |
09:27:05 watch.1 | Error: watch /home/mansonkibe/frappe-bench/apps/frappe/node_modules/core-js/es7/object.js ENOSPC
09:27:05 watch.1 | at exports._errnoException (util.js:1020:11)
09:27:05 watch.1 | at FSWatcher.start (fs.js:1451:19)
09:27:05 watch.1 | at Object.fs.watch (fs.js:1478:11)
09:27:05 watch.1 | at createFsWatchInstance (/home/mansonkibe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:37:15)
09:27:05 watch.1 | at setFsWatchListener (/home/mansonkibe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:80:15)
09:27:05 watch.1 | at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/mansonkibe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:228:14)
09:27:05 watch.1 | at FSWatcher.NodeFsHandler._handleFile (/home/mansonkibe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:255:21)
09:27:05 watch.1 | at FSWatcher. (/home/mansonkibe/frappe-bench/apps/frappe/node_modules/chokidar/lib/nodefs-handler.js:473:21)
09:27:05 watch.1 | at FSReqWrap.oncomplete (fs.js:123:15)
09:27:05 system | watch.1 stopped (rc=0)
09:27:05 system | sending SIGTERM to redis_socketio.1 (pid 5539)
09:27:05 system | sending SIGTERM to worker_long.1 (pid 5532)
09:27:05 system | sending SIGTERM to redis_queue.1 (pid 5533)
09:27:05 system | sending SIGTERM to web.1 (pid 5534)
09:27:05 system | sending SIGTERM to schedule.1 (pid 5535)
09:27:05 system | sending SIGTERM to worker_default.1 (pid 5540)
09:27:05 system | sending SIGTERM to socketio.1 (pid 5541)
09:27:05 system | sending SIGTERM to redis_cache.1 (pid 5558)
09:27:05 system | sending SIGTERM to worker_short.1 (pid 5556)

No way, same errors :frowning: …really frustrating …

Pushed yet another fix. Please confirm if it is fixed.

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'

@netchampfaris thanks for the fix. am now up and running

@netchampfaris same error here …ubuntu 16

got the issue, thought:

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:

https://discuss.frappe.io/uploads/default/original/2X/4/4045d663d7dfede28eaa871fbd706eb68b84a269.png

I’m getting the honcho error in a new docker build. Also some formatting issues:

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)

Hi,

Any updates on this one?

Unable to install erpnext. Please help.

Any updates??

I had an bench update few mins ago and last seems back to be working fine.

Can someone double check and confirm?