Install frappe very very slow

Hi all,

I follow this guide:

when i did:
bench new-site site1.local

"Updating DocTypes for frappe " become very very slow, maybe will take one hour, is normal?

================================================================================
(erpnext) malijie@bogon:~/erpnext/frappe-bench$ bench get-app erpnext GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
INFO:bench.app:getting app erpnext
INFO:bench.utils:git clone GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP) --depth 1 --origin upstream
Cloning into ‘erpnext’…
remote: Counting objects: 6829, done.
remote: Compressing objects: 100% (6045/6045), done.
remote: Total 6829 (delta 1340), reused 3633 (delta 615), pack-reused 0
Receiving objects: 100% (6829/6829), 213.96 MiB | 1.67 MiB/s, done.
Resolving deltas: 100% (1340/1340), done.
(‘installing’, u’erpnext’)
INFO:bench.app:installing erpnext
INFO:bench.utils:./env/bin/pip install -q -e ./apps/erpnext --no-cache-dir
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘pypi.org’, port=443): Read timed out. (read timeout=15)”,)’: /simple/unidecode/

frappe@ production /Users/malijie/erpnext/frappe-bench/apps/frappe
FRAPPE_ENV=production node rollup/build.js

module.js:538
throw err;
^

Error: Cannot find module ‘chalk’
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object. (/Users/malijie/erpnext/frappe-bench/apps/frappe/rollup/build.js:3:15)
at Module._compile (module.js:635:30)
at Object.Module._extensions…js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! frappe@ production: FRAPPE_ENV=production node rollup/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the frappe@ production script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/malijie/.npm/_logs/2018-05-05T23_28_23_706Z-debug.log
(erpnext) malijie@bogon:~/erpnext/frappe-bench$ bench new-site site1.local
MySQL root password:

Installing frappe…
Updating DocTypes for frappe : [======== ]

Yes,we need a bench start working in parallel!
Having Redis Cache enabled helps to speed up things.

1 Like

@feitas

running bench start in parallel was the solution I assume.