Hi Guys!
Trying to update from Version 11 to Version 12.
Did a bench switch-to-branch version-12 and everything was running smoothly until the process quit due to an Error: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory.
I’ve been researching on possible options to solve this, I already have the latest version of Nodejs and Yarn 1.5.1.
Any idea of how I would be able to solve this. I’ve read a couple of blogs where they say that the ```
–max-old-space-size=4096 should be put before calling the node process, but I don’t see how I can get that to work when the files are being requested from frappe.io.
Also, I believe this maybe more Yarn related, but I do not have the sufficient knowledge with either software to be able to get to a proper solution.
Any help is greatly appreciated!
Thanks!
Backing up sites…
INFO:bench.app:pulling frappe
$ git fetch --all
Fetching upstream
Fetching origin
Username for ‘https://github.com’: sonyvec
Password for ‘https://sonyvec@github.com’:
$ git reset --hard upstream/version-12
HEAD is now at 0f0d3eb Merge branch ‘v12-pre-release’ into version-12
$ find . -name “*.pyc” -delete
INFO:bench.app:pulling erpnext
$ git fetch --all
Fetching upstream
Fetching origin
Username for ‘https://github.com’: sonyvec
Password for ‘https://sonyvec@github.com’:
$ git reset --hard upstream/version-12
HEAD is now at 84a5e34 Merge branch ‘v12-pre-release’ into version-12
$ find . -name “*.pyc” -delete
Updating Python libraries…
$ /home/frappe/frappe-bench/env/bin/pip install -q -U pip
INFO:bench.app:installing frappe
$ /home/frappe/frappe-bench/env/bin/pip install -q -U -e /home/frappe/frappe-bench/apps/frappe
$ sudo supervisorctl restart frappe-bench-workers: frappe-bench-web:
frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-workers:frappe-bench-frappe-default-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-web:frappe-bench-node-socketio: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: started
frappe-bench-workers:frappe-bench-frappe-default-worker-0: started
frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
frappe-bench-web:frappe-bench-frappe-web: started
frappe-bench-web:frappe-bench-node-socketio: started
INFO:bench.app:installing erpnext
$ /home/frappe/frappe-bench/env/bin/pip install -q -U -e /home/frappe/frappe-bench/apps/erpnext
$ sudo supervisorctl restart frappe-bench-workers: frappe-bench-web:
frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-workers:frappe-bench-frappe-default-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-web:frappe-bench-node-socketio: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: started
frappe-bench-workers:frappe-bench-frappe-default-worker-0: started
frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
frappe-bench-web:frappe-bench-frappe-web: started
frappe-bench-web:frappe-bench-node-socketio: started
Updating node packages…
$ yarn install
yarn install v1.5.1
[1/4] Resolving packages…
success Already up-to-date.
Done in 0.27s.
$ yarn install
yarn install v1.5.1
[1/4] Resolving packages…
success Already up-to-date.
Done in 2.32s.
Patching sites…
Migrating site1.local
Updating DocTypes for frappe : [========================================]
Updating DocTypes for erpnext : [========================================]
Updating customizations for Address
Generating Website Theme Files…
Compiling Python Files…
$ bench build
yarn run v1.5.1
$ FRAPPE_ENV=production node rollup/build.js
Production mode
Built js/moment-bundle.min.js
Built js/libs.min.js
Building frappe assets…
Built js/checkout.min.js
Built js/dialog.min.js
Built js/modules.min.js
Built js/social.min.js
Built js/web_form.min.js
Built js/list.min.js
Built css/printview.css
Built css/frappe-rtl.css
Built js/chat.js
<— Last few GCs —>
[11493:0x36f93f0] 89318 ms: Mark-sweep 493.5 (497.4) → 493.2 (497.9) MB, 1514.4 / 0.0 ms (average mu = 0.106, current mu = 0.023) allocation failure scavenge might not succeed
[11493:0x36f93f0] 90950 ms: Mark-sweep 493.8 (497.9) → 493.6 (498.2) MB, 1592.6 / 0.0 ms (average mu = 0.065, current mu = 0.024) allocation failure scavenge might not succeed
<— JS stacktrace —>
==== JS stack trace =========================================
0: ExitFrame [pc: 0x13a71b9]
Security context: 0x23919de808d1
1: /* anonymous */ [0xf6c42dc5b39] [/home/frappe/frappe-bench/apps/frappe/node_modules/rollup/dist/rollup.js:~14983] [pc=0x158554394279](this=0x333f3a8443d1 ,3908,47,0x063dd91804b1 )
2: /* anonymous */ [0xf6c42dc5b39] [/home/frappe/frappe-bench/apps/frappe/node_modules/rollup/dist/rollup.js:~14983] [pc=0x158554393c5e]…
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Writing Node.js report to file: report.20200408.155057.11493.0.001.json
Node.js report completed
1: 0x9ef190 node::Abort() [node]
2: 0x9f13b2 node::OnFatalError(char const*, char const*) [node]
3: 0xb5da9e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xb5de19 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xd0a765 [node]
6: 0xd0adf6 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
7: 0xd1760a v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
8: 0xd18515 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
9: 0xd1afcc v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
10: 0xce19bb v8::internal::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
11: 0x10246ce v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
12: 0x13a71b9 [node]
Aborted (core dumped)
error An unexpected error occurred: "Command failed.
Exit code: 134
Command: sh
Arguments: -c FRAPPE_ENV=production node rollup/build.js
Directory: /home/frappe/frappe-bench/apps/frappe
Output:
".
info If you think this is a bug, please open a bug report with the information provided in “/home/frappe/frappe-bench/apps/frappe/yarn-error.log”.
info Visit yarn run | Yarn for documentation about this command.
$ sudo supervisorctl restart frappe-bench-workers: frappe-bench-web:
frappe-bench-workers:frappe-bench-frappe-schedule: stopped
frappe-bench-workers:frappe-bench-frappe-default-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-long-worker-0: stopped
frappe-bench-workers:frappe-bench-frappe-short-worker-0: stopped
frappe-bench-web:frappe-bench-node-socketio: stopped
frappe-bench-web:frappe-bench-frappe-web: stopped
frappe-bench-workers:frappe-bench-frappe-schedule: started
frappe-bench-workers:frappe-bench-frappe-default-worker-0: started
frappe-bench-workers:frappe-bench-frappe-long-worker-0: started
frappe-bench-workers:frappe-bench-frappe-short-worker-0: started
frappe-bench-web:frappe-bench-frappe-web: started
frappe-bench-web:frappe-bench-node-socketio: started
Bench: Deployment tool for Frappe and Frappe Applications (CLI to Manage Frappe Deployments).
Open source depends on your contributions, so please contribute bug reports, patches, fixes or cash and be a part of the community