I was installed ERPNext Production and Restored yesterday’s backup.
But now showing these windows.
Guys, Please help me. my all work is stopped.
It may help to say the version ERPNext and the operating environment.
Try: bench update --build
I think Letest production version.
I tried this code but shows below erorr.
root@ip-172-31-32-102:/home/frappe/frappe-bench# bench update --build
WARN: bench is installed in editable mode!
This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`
Backing up sites...
$ bench build
WARN: bench is installed in editable mode!
This is not the recommended mode of installation for production. Instead, install the package from PyPI with: `pip install frappe-bench`
yarn run v1.22.10
$ 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 frappe/css/email.css
✔ Built js/chat.js
<--- Last few GCs --->
[7924:0x483dd30] 88389 ms: Mark-sweep 484.5 (490.9) -> 484.1 (490.7) MB, 1397.3 / 0.0 ms (average mu = 0.179, current mu = 0.099) allocation failure GC in old space requested
[7924:0x483dd30] 89597 ms: Mark-sweep 484.6 (490.9) -> 484.5 (491.2) MB, 1206.6 / 0.0 ms (average mu = 0.098, current mu = 0.001) allocation failure GC in old space requested
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0x140a8f9]
Security context: 0x0dda60e808d1 <JSObject>
1: /* anonymous */(aka /* anonymous */) [0x21d5b0a0cb11] [/home/frappe/frappe-bench/apps/frappe/node_modules/rollup/dist/rollup.js:~1914] [pc=0x31f41e8e35c](this=0x1b010e3804b1 <undefined>,0x0afb436fd0d1 <Chunk map = 0x752fe5699c9>)
2: eachNext [0x2a7fefccf629] [/home/frappe/frappe-bench/apps/frappe/node_modules/rollup/dist/rollup.js:~848] [pc=0x31f4200c0...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xa18150 node::Abort() [/usr/bin/node]
2: 0xa1855c node::OnFatalError(char const*, char const*) [/usr/bin/node]
3: 0xb9715e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
4: 0xb974d9 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
5: 0xd54755 [/usr/bin/node]
6: 0xd54de6 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/bin/node]
7: 0xd616a5 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/bin/node]
8: 0xd62555 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
9: 0xd6500c v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
10: 0xd2ba2b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/bin/node]
11: 0x106e15c v8::internal::Runtime_AllocateInOldGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
12: 0x140a8f9 [/usr/bin/node]
Aborted (core dumped)
error Command failed with exit code 134.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
$ 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 do give back by submitting bug reports, patches and fixes and be a part of the community :)
root@ip-172-31-32-102:/home/frappe/frappe-bench#
It looks like you are running as root, and that may be part of the problem. Is this a new installation and if so what method was used to install ERPNext?
1 Like
I was used easy installation method.