Svelte kit deployment is failing for "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" #3808
Replies: 1 comment
|
updating the coolify version fixed the memory issue. I am still facing issue unrelated but svelete project is getting build now. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
`
2024-Oct-09 06:50:24.733605
#13 200.3
2024-Oct-09 06:50:24.733605
#13 200.3 <--- Last few GCs --->
2024-Oct-09 06:50:24.733605
#13 200.3
2024-Oct-09 06:50:24.733605
#13 200.3 [20:0x426e6d0] 196245 ms: Mark-sweep 2001.4 (2082.6) -> 1989.1 (2083.1) MB, 894.2 / 0.1 ms (average mu = 0.233, current mu = 0.095) task; scavenge might not succeed
2024-Oct-09 06:50:24.733605
#13 200.3 [20:0x426e6d0] 197210 ms: Mark-sweep 2002.0 (2083.1) -> 1989.6 (2083.6) MB, 852.2 / 0.1 ms (average mu = 0.180, current mu = 0.117) task; scavenge might not succeed
2024-Oct-09 06:50:24.733605
#13 200.3 [20:0x426e6d0] 198872 ms: Mark-sweep 2003.4 (2083.9) -> 1990.2 (2084.4) MB, 1559.3 / 0.1 ms (average mu = 0.108, current mu = 0.062) task; scavenge might not succeed
2024-Oct-09 06:50:24.733605
#13 200.3
2024-Oct-09 06:50:24.733605
#13 200.3
2024-Oct-09 06:50:24.733605
#13 200.3 <--- JS stacktrace --->
2024-Oct-09 06:50:24.733605
#13 200.3
2024-Oct-09 06:50:24.733605
#13 200.3 FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
2024-Oct-09 06:50:24.733605
#13 200.3 1: 0xac22d8 node::Abort() [node]
2024-Oct-09 06:50:24.733605
#13 200.3 2: 0x9ad387 [node]
2024-Oct-09 06:50:24.733605
#13 200.3 3: 0xcccdd0 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
2024-Oct-09 06:50:24.733605
#13 200.3 4: 0xccd1ab v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
2024-Oct-09 06:50:24.733605
#13 200.3 5: 0xec4a45 [node]
2024-Oct-09 06:50:24.733605
#13 200.3 6: 0xec4b31 [node]
2024-Oct-09 06:50:24.733605
#13 200.3 7: 0xed9e62 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const*, v8::GCCallbackFlags) [node]
2024-Oct-09 06:50:24.733605
#13 200.3 8: 0xedaa2a v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
2024-Oct-09 06:50:24.733605
#13 200.3 9: 0xf5638c v8::internal::ScavengeJob::Task::RunInternal() [node]
2024-Oct-09 06:50:24.733605
#13 200.3 10: 0xb3c5b5 node::PerIsolatePlatformData::RunForegroundTask(std::unique_ptr<v8::Task, std::default_deletev8::Task >) [node]
2024-Oct-09 06:50:24.733605
#13 200.3 11: 0xb3e322 node::PerIsolatePlatformData::FlushForegroundTasksInternal() [node]
2024-Oct-09 06:50:24.733605
#13 200.3 12: 0x77cdb9624193 [/nix/store/dj8kam8075n6p2fff1icwfk2vq1r72k3-libuv-1.48.0/lib/libuv.so.1]
2024-Oct-09 06:50:24.733605
#13 200.3 13: 0x77cdb9638892 [/nix/store/dj8kam8075n6p2fff1icwfk2vq1r72k3-libuv-1.48.0/lib/libuv.so.1]
2024-Oct-09 06:50:24.733605
#13 200.3 14: 0x77cdb9624eb0 uv_run [/nix/store/dj8kam8075n6p2fff1icwfk2vq1r72k3-libuv-1.48.0/lib/libuv.so.1]
2024-Oct-09 06:50:24.733605
#13 200.3 15: 0x9e3ac0 node::SpinEventLoop(node::Environment*) [node]
2024-Oct-09 06:50:24.733605
#13 200.3 16: 0xb10263 node::NodeMainInstance::Run(int*, node::Environment*) [node]
2024-Oct-09 06:50:24.733605
#13 200.3 17: 0xb106bf node::NodeMainInstance::Run() [node]
2024-Oct-09 06:50:24.733605
#13 200.3 18: 0xa760c6 node::LoadSnapshotDataAndRun(node::SnapshotData const**, node::InitializationResult const*) [node]
2024-Oct-09 06:50:24.733605
#13 200.3 19: 0xa7a3c5 node::Start(int, char**) [node]
2024-Oct-09 06:50:24.733605
#13 200.3 20: 0x77cdb68ab14e [/nix/store/m71p7f0nymb19yn1dascklyya2i96jfw-glibc-2.39-52/lib/libc.so.6]
2024-Oct-09 06:50:24.733605
#13 200.3 21: 0x77cdb68ab209 __libc_start_main [/nix/store/m71p7f0nymb19yn1dascklyya2i96jfw-glibc-2.39-52/lib/libc.so.6]
2024-Oct-09 06:50:24.733605
#13 200.3 22: 0x9e1975 _start [node]
2024-Oct-09 06:50:24.733605
#13 200.9 Aborted (core dumped)
2024-Oct-09 06:50:24.733605
#13 ERROR: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 134
2024-Oct-09 06:50:24.733605
2024-Oct-09 06:50:24.733605
2024-Oct-09 06:50:24.733605
2024-Oct-09 06:50:24.733605
2 warnings found (use --debug to expand):
2024-Oct-09 06:50:24.733605
2024-Oct-09 06:50:24.733605
2024-Oct-09 06:50:24.733605
Dockerfile:24
2024-Oct-09 06:50:24.733605
2024-Oct-09 06:50:24.733605
22 | # build phase
2024-Oct-09 06:50:24.733605
23 | COPY . /app/.
2024-Oct-09 06:50:24.733605
24 | >>> RUN npm run build
2024-Oct-09 06:50:24.733605
25 |
2024-Oct-09 06:50:24.733605
26 |
2024-Oct-09 06:50:24.733605
2024-Oct-09 06:50:24.733605
ERROR: failed to solve: process "/bin/bash -ol pipefail -c npm run build" did not complete successfully: exit code: 134
2024-Oct-09 06:50:24.739447
Deployment failed. Removing the new version of your application.
`
root@ash-1-coolify:~# free -h
total used free shared buff/cache available
Mem: 7.6Gi 1.0Gi 5.2Gi 39Mi 1.7Gi 6.6Gi
Swap: 24Gi 467Mi 24Gi
All reactions