Fatal Errors During Update

Does anyone encounter this error during update?

:heavy_check_mark: Built css/web_form.css
:heavy_check_mark: Built css/desk.min.css

<— Last few GCs —>

[11337:0x3fe56f0] 95978 ms: Scavenge 761.0 (788.6) → 757.1 (789.1) MB, 80.6 / 9.2 ms allocation failure
[11337:0x3fe56f0] 103502 ms: Scavenge 762.1 (789.6) → 758.7 (782.6) MB, 203.0 / 67.9 ms allocation failure
[11337:0x3fe56f0] 103745 ms: Scavenge 759.2 (783.1) → 758.8 (784.1) MB, 90.7 / 7.5 ms allocation failure
[11337:0x3fe56f0] 103987 ms: Scavenge 759.8 (784.1) → 759.2 (784.1) MB, 111.5 / 22.0 ms allocation failure

<— JS stacktrace —>

==== JS stack trace =========================================

Security context: 0x2b9b6a325891
1: set(aka set) [/home/octo5/frappe-bench/apps/frappe/node_modules/rollup/dist/rollup.js:~6217] [pc=0x24e24c7419cd](this=0x124efd2022d1 ,collection=0x186f4250e189 ,key=0x186f4250d491 ,value=0x3fb28f77ff49 )
2: /* anonymous */ [/home/octo5/frappe-bench/apps/frappe/node_modules/rollup/dist/rol…

FATAL ERROR: Committing semi space failed. Allocation failed - process out of memory
1: node::Abort() [/usr/bin/node]
2: 0x8cd49c [/usr/bin/node]
3: v8::Utils::ReportOOMFailure(char const*, bool) [/usr/bin/node]
4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [/usr/bin/node]
5: v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [/usr/bin/node]
6: v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
7: v8::internal::factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [/usr/bin/node]
8: v8::internal::Runtime_AllocateInNewSpace(int, v8::internal::Object**, v8::internal::Isolate*) [/usr/bin/node]
9: 0x24e24c0842fd
Aborted (core dumped)
error Command failed with exit code 134.

The update continues and completes but this error suggests something is wrong. Can anyone tell me how to fix it?

Can you describe the operating environment: OS, versions Bench and Erpnext, if a VM or not and if so the amount of memory available. The error message mentions Allocation failed - process out of memory

Host: DigitalOcean
Config: 1cpu, 2GB RAM, 50GB SSD
OS: Ubuntu 18.04
ERPNext Version: 12.1.1

The error seems to be nodejs related. If top, in a terminal, shows there is in fact 2G memory at hand and not all all being used by other processes, i might try reinstalling node, bench setup requirements --nodejs, and bench setup socketio.

@flexy2ky- Your RAM looks a bit low…perhaps consider getting 4GB