ente-io / ente

Fully open source, End to End Encrypted alternative to Google Photos and Apple Photos
https://ente.io
GNU Affero General Public License v3.0
14.39k stars 743 forks source link

Build Error #2561

Closed LaoJiuYes closed 2 weeks ago

LaoJiuYes commented 1 month ago

Description

Hi everyone, seeking help on what this is and how to fix it. Thank you! Error reported during yarn build: => [web ente-builder 6/6] RUN yarn build 28.4s => => # $ /app/node_modules/.bin/next build
=> => # ▲ Next.js 14.2.4
=> => # - Environments: .env
=> => # Linting and checking validity of types ...
=> => # ⚠ The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/basic-features/eslint#migrating-existing-c => => # onfig

Version

Publishing a version of this help wanted post

What product are you using?

Ente Photos

What platform are you using?

Server

mnvr commented 1 month ago

Do you mean "The Next.js plugin was not detected in your ESLint configuration."? This is a harmless warning, you can ignore it.

LaoJiuYes commented 1 month ago

Do you mean "The Next.js plugin was not detected in your ESLint configuration."? This is a harmless warning, you can ignore it.

Then it's stuck here and won't move. I've tried, it's inaccessible. ▲ Next.js 14.2.4

[10398:0x5fe6f40] 161874 ms: Scavenge 465.2 (485.0) -> 464.0 (485.0) MB, 76.56 / 1.74 ms (average mu = 0.601, current mu = 0.491) allocation failure; [10398:0x5fe6f40] 162095 ms: Scavenge 465.7 (485.0) -> 464.7 (485.0) MB, 16.78 / 0.00 ms (average mu = 0.601, current mu = 0.491) allocation failure; [10398:0x5fe6f40] 162180 ms: Scavenge 465.9 (485.0) -> 464.6 (489.0) MB, 24.84 / 0.00 ms (average mu = 0.601, current mu = 0.491) allocation failure;

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace -----

1: 0xcd8bd6 node::OOMErrorHandler(char const, v8::OOMDetails const&) [/usr/node/node/bin/node] 2: 0x10aedc0 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, v8::OOMDetails const&) [/usr/node/node/bin/node] 3: 0x10af0a7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const*, v8::OOMDetails const&) [/usr/node/node/bin/node] 4: 0x12ce085 [/usr/node/node/bin/node] 5: 0x12e4ba8 [/usr/node/node/bin/node] 6: 0x12bc0ae v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/node/node/bin/node] 7: 0x12bd394 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/node/node/bin/node] 8: 0x129b055 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOr [10398:0x5fe6f40] 162095 ms: Scavenge 465.7 (485.0) -> 464.7 (485.0) MB, 16.78 / 0.00 ms (average mu = 0.601, current mu = 0.491) allocation failur [10398:0x5fe6f40] 162180 ms: Scavenge 465.9 (485.0) -> 464.6 (489.0) MB, 24.84 / 0.00 ms (average mu = 0.601, current mu = 0.491) allocation failur

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory ----- Native stack trace -----

1: 0xcd8bd6 node::OOMErrorHandler(char const, v8::OOMDetails const&) [/usr/node/node/bin/node] 2: 0x10aedc0 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, v8::OOMDetails const&) [/usr/node/node/bin/node] 3: 0x10af0a7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, v8::OOMDetails const&) [/usr/node/node/bin/node] 4: 0x12ce085 [/usr/node/node/bin/node] 5: 0x12e4ba8 [/usr/node/node/bin/node] igin) [/usr/node/node/bin/node] 9: 0x16cb61c v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long, v8::internal::Isolate*) [/usr/node/node/bin/node] 10: 0x1b5b3f6 [/usr/node/node/bin/node] Linting and checking validity of types ... <--- Last few GCs --->

[10391:0x63c5f40] 170769 ms: Scavenge (reduce) 473.0 (483.1) -> 472.5 (483.4) MB, 9.34 / 0.00 ms (average mu = 0.256, current mu = 0.742) allocation failure; [10391:0x63c5f40] 170858 ms: Scavenge (reduce) 473.4 (483.9) -> 472.9 (484.1) MB, 15.85 / 0.00 ms (average mu = 0.256, current mu = 0.742) allocation failure; [10391:0x63c5f40] 171007 ms: Scavenge (reduce) 473.6 (484.1) -> 473.2 (484.4) MB, 34.81 / 0.00 ms (average mu = 0.256, current mu = 0.742) allocation failure;

<--- JS stacktrace --->

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

1: 0xcd8bd6 node::OOMErrorHandler(char const, v8::OOMDetails const&) [/usr/node/node/bin/node] 2: 0x10aedc0 v8::Utils::ReportOOMFailure(v8::internal::Isolate, char const, v8::OOMDetails const&) [/usr/node/node/bin/node] 3: 0x10af0a7 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate, char const, v8::OOMDetails const&) [/usr/node/node/bin/node] 4: 0x12ce085 [/usr/node/node/bin/node] 5: 0x12ce55e [/usr/node/node/bin/node] 6: 0x12e3786 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GarbageCollectionReason, char const) [/usr/node/node/bin/node] 7: 0x12e42a9 [/usr/node/node/bin/node] 8: 0x12e48b8 [/usr/node/node/bin/node] 9: 0x1a34121 [/usr/node/node/bin/node] Linting and checking validity of types ..

mnvr commented 1 month ago

Your node process is running out of memory (yarn build calls next build which internally uses node). I can't say much why that is happening. Perhaps there might be some related issue in the Next.js discussions.

The only suggestion that comes to my mind is to try doing the yarn build on a system with more RAM.

LaoJiuYes commented 1 month ago

Your process is running out of memory ( calls which internally uses ). I can't say much why that is happening. Perhaps there might be some related issue in the Next.js discussions.node``yarn build``next build``node

The only suggestion that comes to my mind is to try doing the on a system with more RAM.yarn build

Thank you for your reply. My device only has RAM: 1024.00 MB, I'll try expanding it!