FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

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

:heavy_check_mark: Built js/moment-bundle.min.js

:heavy_check_mark: Built js/libs.min.js

Building frappe assets…

:heavy_check_mark: Built js/checkout.min.js

:heavy_check_mark: Built js/dialog.min.js

:heavy_check_mark: Built js/modules.min.js

:heavy_check_mark: Built js/social.min.js

:heavy_check_mark: Built js/web_form.min.js

:heavy_check_mark: Built js/list.min.js

:heavy_check_mark: Built css/printview.css

:heavy_check_mark: Built css/frappe-rtl.css

:heavy_check_mark: 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::factory::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

What do npm version and node -v return?

Hi,

npm 6.13.4
node 12.16.1

Thanks

No problems with those versions here , what does sudo yarn do?
That updated to 1.22.4

Here is the output of sudo yarn:

yarn install v1.5.1
info No lockfile found.
[1/4] Resolving packages...
warning babel-cli > babel-register > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning babel-cli > babel-polyfill > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning babel-cli > babel-runtime > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning babel-cli > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning babel-cli > chokidar > readdirp > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning babel-preset-babili@0.1.4: babili has been renamed to babel-minify. Please update to babel-preset-minify
warning babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
warning babel-preset-es2016@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
warning babel-preset-es2017@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!
warning chromedriver > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
warning less > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
[2/4] Fetching packages...
info fsevents@1.2.12: The platform "linux" is incompatible with this module.
info "fsevents@1.2.12" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "socket.io > engine.io > ws@7.2.3" has unmet peer dependency "bufferutil@^4.0.1".
warning "socket.io > engine.io > ws@7.2.3" has unmet peer dependency "utf-8-validate@^5.0.2".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 18.20s.

What linux distro and version?

try cd ~/frappe-bench then bench setup socketio

Hi!

This is the server output for sudo bench setup socketio. I see that many of the lines involves some permissions, what would be the best permissions for this folders.

$ npm install socket.io redis express superagent cookie babel-core less chokidar babel-cli babel-preset-es2015 babel-preset-es2016 babel-preset-es2017 babel-preset-babili

npm WARN deprecated babel-preset-es2015@6.24.1: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!

npm WARN deprecated babel-preset-es2017@6.24.1: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!

npm WARN deprecated babel-preset-es2016@6.24.1: 🙌 Thanks for using Babel: we recommend using babel-preset-env now: please read https://babeljs.io/env to update!

npm WARN deprecated babel-preset-babili@0.1.4: babili has been renamed to babel-minify. Please update to babel-preset-minify

npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated

npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/abbrev

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/after

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/ansi-regex

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/ansi-styles

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/arr-flatten

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/arr-diff

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/arr-union

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/array-uniq

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/array-union

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/array-unique

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/arraybuffer.slice

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/asap

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/asn1

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/assert-plus

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/assign-symbols

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/async-limiter

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/asynckit

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/atob

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/aws-sign2

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/aws4

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-helper-evaluate-path

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-helper-flip-expressions

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-helper-is-nodes-equiv

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-helper-is-void-0

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-helper-mark-eval-scopes

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-helper-remove-or-void

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-helper-to-multiple-sequence-expressions

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-minify-builtins/node_modules/babel-helper-evaluate-path

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-minify-builtins

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-minify-constant-folding/node_modules/babel-helper-evaluate-path

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-minify-constant-folding

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-minify-flip-comparisons

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-minify-guarded-expressions

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-minify-infinity

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-minify-mangle-names

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-minify-numeric-literals

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-minify-replace

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-minify-simplify

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-minify-type-constructors

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-syntax-async-functions

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-syntax-exponentiation-operator

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-syntax-object-rest-spread

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-syntax-trailing-function-commas

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-transform-inline-consecutive-adds

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-transform-member-expression-literals

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-transform-merge-sibling-variables

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-transform-minify-booleans

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-transform-regexp-constructors

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-transform-remove-console

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-transform-remove-debugger

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-transform-remove-undefined

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-transform-simplify-comparison-operators

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-plugin-transform-undefined-to-void

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-helper-flip-expressions

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-helper-is-void-0

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-helper-mark-eval-scopes

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-helper-remove-or-void

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-helper-to-multiple-sequence-expressions

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-minify-builtins

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-minify-constant-folding

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-minify-dead-code-elimination

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-minify-flip-comparisons

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-minify-guarded-expressions

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-minify-infinity

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-minify-mangle-names

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-minify-numeric-literals

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-minify-replace

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-minify-simplify

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-minify-type-constructors

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-transform-inline-consecutive-adds

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-transform-regexp-constructors

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-preset-minify/node_modules/babel-plugin-transform-remove-undefined

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babel-runtime/node_modules/regenerator-runtime

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/babylon

npm WARN checkPermissions Missing write access to /home/frappe/frappe-bench/node_modules/backo2

That is just part of the output, but it is pretty much the same all the way to the end, shows permission errors.

Did you try bench setup socketio without sudo?

Just tried it and it gives the same output. Also tried it with different sudo user and root, they all give the same output. Should I change the permissions for this folders? If so, what would be a good permission setting.

Thank your for all your help, I really appreciate it. Not too experienced with servers. :flushed:

You shouldn’t need ti change any permissions . The v11 was updating without problems right along?

Try bench switch-to-branch version-12 --upgrade again. without sudo.

I just re-read your previous question: Ubuntu 16.04 on Digitalocean VPS

V11 was upgrading without any problems, it was when upgrading that I encountered the problem.

This is the output for bench switch-to-branch version-12 --upgrade:

LOG: Fetching upstream for erpnext

$ git remote set-branches upstream '*'

$ git fetch --all

Fetching upstream

Fetching origin

Username for 'https://github.com': sonyvec

Password for 'https://sonyvec@github.com': 

Switching for erpnext

$ git checkout version-12

Already on 'version-12'

Your branch is up-to-date with 'upstream/version-12'.

LOG: Fetching upstream for frappe

$ git remote set-branches upstream '*'

$ git fetch --all

Fetching upstream

Fetching origin

Username for 'https://github.com': sonyvec

Password for 'https://sonyvec@github.com': 

Switching for frappe

$ git checkout version-12

Already on 'version-12'

Your branch is up-to-date with 'upstream/version-12'.

SUCCESS: Successfully switched branches for: erpnext, frappe

Please run `bench update --patch` to be safe from any differences in database schema

What is result?

Backing up sites...

Patching sites...

Migrating site1.local

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

Updating DocTypes for erpnext : [========================================]

Updating customizations for Address

Generating Website Theme Files...

Compiling Python Files...

$ 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 (https://frappe.io/bench).

Open source depends on your contributions, so please contribute bug reports, patches, fixes or cash and be a part of the community

Can you login to your ERPNext site now?

No, I’m still unable to login. I cleared the browser data/history/cache also, and the page that displays shows a login link, when I click on the link nothing happens. I mainly use Chrome, but I tried with Safari and Firefox and it shows the same.

This is all I see when I go to the login page:

Hey guys!

I was able to find a solution for this problem. Thanks to @smino for guiding me through additional steps I had not considered when trouble shooting my problem.

Through online research and @smino 's guide, I found this link: https://stackoverflow.com/questions/53230823/fatal-error-ineffective-mark-compacts-near-heap-limit-allocation-failed-javas

On there, they explain that you can add an option to a Node process to expand the memory available by adding the following line to the build process:

–max-old-space-size=8192

I had not managed to enter this line into the code, because when you do a SUDO BENCH UPDATE --RESET, bench checks for the Git files and gets the build file from Git. When I added the above line on to my local files and ran a BENCH BUILD (no sudo), the process did not check the Git files and used the local file and completed the process succesfully.

I hope this helps anyone that may find this error in the future. Thank you again @smino for guiding me through additional steps, they helped me a lot to get to this solution.

Regards,

Sony

4 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.