ERPNext Conference 2019* ERPNext.com Blog

Error while bench start (from Foundation)


#1

I installed the ERPNext with Master branch of apps. However while bench start I am gettting the following error. I think the error is from the foundation.

git clone https://github.com/frappe/bench bench-repo --branch master
pip install --user -e bench-repo

bench init frappe-bench --frappe-branch master --apps_path “/home/frappe/bench-repo/install_scripts/erpnext-apps-master.json” && cd frappe-bench

bench new-site site1.local
bench install-app erpnext
bench migrate
bench build
bench start

While starting the bench I got following error.

09:29:07 watch.1 | Wrote css/web_form.css - 24.74 KB
09:29:07 watch.1 | Wrote js/print_format_v3.min.js - 25.92 KB
09:29:07 watch.1 | Wrote frappe_io/js/docs.js - 1.27 KB
09:29:07 watch.1 | Wrote css/erpnext.css - 8.1 KB
09:29:07 watch.1 | Wrote js/erpnext-web.min.js - 4.26 KB
09:29:07 watch.1 | Wrote js/erpnext.min.js - 171.26 KB
09:29:07 watch.1 | Wrote js/item-dashboard.min.js - 8.53 KB
09:29:13 watch.1 | events.js:160
09:29:13 watch.1 | throw er; // Unhandled ‘error’ event
09:29:13 watch.1 | ^
09:29:13 watch.1 |
09:29:13 watch.1 | Error: watch /home/frappe/frappe-bench/apps/foundation/foundation/www/docs/current/models/healthcare/patient_relation.html ENOSPC
09:29:13 watch.1 | at exports._errnoException (util.js:1020:11)
09:29:13 watch.1 | at FSWatcher.start (fs.js:1451:19)
09:29:13 watch.1 | at Object.fs.watch (fs.js:1478:11)
09:29:13 watch.1 | at createFsWatchInstance (/home/frappe/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:37:15)
09:29:13 watch.1 | at setFsWatchListener (/home/frappe/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:80:15)
09:29:13 watch.1 | at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/frappe/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:228:14)
09:29:13 watch.1 | at FSWatcher.NodeFsHandler._handleFile (/home/frappe/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:255:21)
09:29:13 watch.1 | at FSWatcher. (/home/frappe/frappe-bench/node_modules/chokidar/lib/nodefs-handler.js:473:21)
09:29:13 watch.1 | at FSReqWrap.oncomplete (fs.js:123:15)
09:29:13 system | watch.1 stopped (rc=0)
09:29:13 system | sending SIGTERM to redis_socketio.1 (pid 5114)
09:29:13 system | sending SIGTERM to worker_long.1 (pid 5116)
09:29:13 system | sending SIGTERM to redis_queue.1 (pid 5130)

Please let me know what am I missing?

Regards,
Koshish


#2

You might be missing bench setup requirements

Best to run bench update than running all separately


#3

It was the new installation and I haven’t modified any application. As per @rmehta’s suggestion, while doing the bench update I was surprised to found that there were uncommitted changes on frappe and frappe_io app. :astonished:

[frappe@hcentos frappe]$ git status
on branch master
modified: frappe/public/css/docs.css
modified: frappe/public/css/lists
modified: frappe/public/css/mobile.css
modified: frappe/public/css/navbar.css
modified: frappe/public/css/page.css

[frappe@hcentos frappe]$ git checkout .

[frappe@hcentos frappe_io]$ git status
on branch master
modified: frappe_io/public/js/docs.js

[frappe@hcentos frappe_io]$ git checkout .

[frappe@hcentos frappe-bench-]$ bench update
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
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
INFO:bench.app:pulling frappe
INFO:bench.utils:git pull upstream master
From https://github.com/frappe/frappe
branch master -> FETCH_HEAD
Already up-to-date.
INFO:bench.utils:find . -name “.pyc" -delete
INFO:bench.app:pulling frappe_io
INFO:bench.utils:git pull upstream master
From https://github.com/frappe/frappe_io
branch master -> FETCH_HEAD
Already up-to-date.
INFO:bench.utils:find . -name "
.pyc” -delete
INFO:bench.app:pulling erpnext
INFO:bench.utils:git pull upstream master
From https://github.com/frappe/erpnext
branch master -> FETCH_HEAD
Already up-to-date.
INFO:bench.utils:find . -name “.pyc" -delete
INFO:bench.app:pulling foundation
INFO:bench.utils:git pull upstream master
remote: Counting objects: 10, done.
remote: Total 10 (delta 9), reused 10 (delta 9), pack-reused 0
Unpacking objects: 100% (10/10), done.
From https://github.com/erpnext/foundation
branch master -> FETCH_HEAD
Updating 8724083…0534ce5
Fast-forward
foundation/www/docs/user/manual/en/stock/index.md | 2 ±
1 file changed, 1 insertion(+), 1 deletion(-)
INFO:bench.utils:find . -name "
.pyc” -delete
Updating Python libraries…
INFO:bench.utils:./env/bin/pip install --upgrade pip==9.0.3
Requirement already up-to-date: pip==9.0.3 in ./env/lib/python2.7/site-packages
You are using pip version 9.0.3, however version 10.0.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
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/frappe/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/frappe_io/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/foundation/requirements.txt
Updating node packages…
INFO:bench.utils:npm install
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
npm WARN frappe@ No description
Backing up sites…
Patching sites…
Migrating erpnext…sa
Updating DocTypes for frappe : [========================================]
Updating DocTypes for erpnext : [========================================]
Syncing help database…
/home/frappe//frappe-bench-/apps/frappe/frappe/build.py:106: UserWarning: Source /home/frappe//frappe-bench-/apps/frappe_io/frappe_io/docs does not exists.
warnings.warn(‘Source {source} does not exists.’.format(source = source))
/home/frappe//frappe-bench-/apps/frappe/frappe/build.py:106: UserWarning: Source /home/frappe//frappe-bench-/apps/foundation/foundation/docs does not exists.
warnings.warn(‘Source {source} does not exists.’.format(source = source))
SyntaxError: Unexpected end of JSON input
at Object.parse (native)
at make_build_map (/home/frappe//frappe-bench-/apps/frappe/frappe/build.js:193:22)
at Object. (/home/frappe//frappe-bench-/apps/frappe/frappe/build.js:22:17)
at Module._compile (module.js:570:32)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:383:7)
Wrote css/frappe-web.css - 65.11 KB
Wrote js/frappe-web.min.js - 132.75 KB
Wrote js/control.min.js - 77.04 KB
Wrote js/dialog.min.js - 116.9 KB
Wrote css/desk.min.css - 309.04 KB
Wrote css/frappe-rtl.css - 32.49 KB
Wrote js/libs.min.js - 1.13 MB
Wrote js/desk.min.js - 462.49 KB
Wrote css/module.min.css - 2.08 KB
Wrote css/form.min.css - 4.47 KB
Wrote js/form.min.js - 196.67 KB
Wrote css/list.min.css - 13.35 KB
Wrote js/list.min.js - 154.71 KB
Wrote css/report.min.css - 7.89 KB
Wrote js/report.min.js - 260.26 KB
Wrote js/web_form.min.js - 247.55 KB
Wrote css/web_form.css - 24.42 KB
Wrote js/print_format_v3.min.js - 23.39 KB
Wrote frappe_io/js/docs.js - 1.62 KB
Wrote css/erpnext.css - 8 KB
Wrote js/erpnext-web.min.js - 3.8 KB
Wrote js/erpnext.min.js - 166.05 KB
Wrote js/item-dashboard.min.js - 8.13 KB
INFO:bench.utils:sudo supervisorctl restart frappe:
frappe: ERROR (no such group)
frappe: ERROR (no such group)
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@hcentos frappe-bench-]$ bench start



10:40:33 watch.1 | Wrote frappe_io/js/docs.js - 1.27 KB
10:40:33 watch.1 | Wrote css/erpnext.css - 8.1 KB
10:40:33 watch.1 | Wrote js/erpnext-web.min.js - 4.26 KB
10:40:33 watch.1 | Wrote js/erpnext.min.js - 171.26 KB
10:40:33 watch.1 | Wrote js/item-dashboard.min.js - 8.53 KB
10:40:38 watch.1 | events.js:160
10:40:38 watch.1 | throw er; // Unhandled ‘error’ event
10:40:38 watch.1 | ^
10:40:38 watch.1 |
10:40:38 watch.1 | Error: watch /home/frappe//frappe-bench-/apps/foundation/foundation/www/docs/current/models/education/fee_category.html ENOSPC
10:40:38 watch.1 | at exports._errnoException (util.js:1020:11)
10:40:38 watch.1 | at FSWatcher.start (fs.js:1451:19)
10:40:38 watch.1 | at Object.fs.watch (fs.js:1478:11)
10:40:38 watch.1 | at createFsWatchInstance (/home/frappe//frappe-bench-/node_modules/chokidar/lib/nodefs-handler.js:37:15)
10:40:38 watch.1 | at setFsWatchListener (/home/frappe//frappe-bench-/node_modules/chokidar/lib/nodefs-handler.js:80:15)
10:40:38 watch.1 | at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/frappe//frappe-bench-/node_modules/chokidar/lib/nodefs-handler.js:228:14)
10:40:38 watch.1 | at FSWatcher.NodeFsHandler._handleFile (/home/frappe//frappe-bench-/node_modules/chokidar/lib/nodefs-handler.js:255:21)
10:40:38 watch.1 | at FSWatcher. (/home/frappe//frappe-bench-/node_modules/chokidar/lib/nodefs-handler.js:473:21)
10:40:38 watch.1 | at FSReqWrap.oncomplete (fs.js:123:15)
10:40:38 system | watch.1 stopped (rc=0)
10:40:38 system | sending SIGTERM to redis_socketio.1 (pid 7145)
10:40:38 system | sending SIGTERM to worker_long.1 (pid 7147)


Earlier the error was coming from healthcare model of foundation apps now it is showing from education model of foundation apps . Something has changed. :smile:

I did

bench update
bench setup requirements
bench migrate
bench build
bench clear-cache

Am I still missing something?

Regards,
Koshish


#4

Were those uncommited changes conflicts ?


#5

yes. even after removing those changes (which I didn’t make). could’t start the bench


#6

“Error: watch /home/frappe//frappe-bench-/apps/foundation/foundation/www/docs/current/models/education/fee_category.html ENOSPC”

you have seen this it may help Error while Bench start Error: ENOSPC