opennextjs-netlify: Enterprise escalation: v4.3.0 plugin installation fails (before build is run) with seeming Node.js out of memory issue

Two separate enterprise reports of this failure mode during plugin installation of version 4.3.0 (and I don’t see anything in the version 4.3.1 changelog that seems relevant to memory usage, so have not asked for a repro on 4.3.1):

11:56:59 AM: ❯ Installing plugins
11:56:59 AM:    - @netlify/plugin-nextjs@4.3.0
12:10:42 PM: ​
12:10:42 PM: ────────────────────────────────────────────────────────────────
12:10:42 PM:   Dependencies installation error                               
12:10:42 PM: ────────────────────────────────────────────────────────────────
12:10:42 PM: ​
12:10:42 PM:   Error message
12:10:42 PM:   Error while installing dependencies in /opt/build/repo/web/.netlify/plugins/
12:10:42 PM: ​
12:10:42 PM:   <--- Last few GCs --->
12:10:42 PM: ​
12:10:42 PM:   [1424:0x5a8d240]   816925 ms: Scavenge 2024.4 (2080.2) -> 2009.2 (2080.2) MB, 3.7 / 0.0 ms  (average mu = 0.158, current mu = 0.030) allocation failure
12:10:42 PM:   [1424:0x5a8d240]   816967 ms: Scavenge 2024.6 (2080.2) -> 2009.4 (2080.4) MB, 4.8 / 0.0 ms  (average mu = 0.158, current mu = 0.030) allocation failure
12:10:42 PM:   [1424:0x5a8d240]   819393 ms: Mark-sweep 2024.7 (2080.4) -> 2008.6 (2080.7) MB, 2393.5 / 0.0 ms  (average mu = 0.173, current mu = 0.190) allocation failure scavenge might not succeed
12:10:42 PM: ​​
12:10:43 PM: Creating deploy upload records
12:10:42 PM:   <--- JS stacktrace --->
12:10:42 PM: ​
12:10:42 PM:   FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
12:10:42 PM:    1: 0xb00d90 node::Abort() [npm install @netlify/plugin-nextjs@4.3.0]
12:10:42 PM:    2: 0xa1823b node::FatalError(char const*, char const*) [npm install @netlify/plugin-nextjs@4.3.0]
12:10:43 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
12:10:42 PM:    3: 0xcedbce v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [npm install @netlify/plugin-nextjs@4.3.0]
12:10:42 PM:    4: 0xcedf47 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [npm install @netlify/plugin-nextjs@4.3.0]
12:10:42 PM:    5: 0xea6105  [npm install @netlify/plugin-nextjs@4.3.0]
12:10:42 PM:    6: 0xea6be6  [npm install @netlify/plugin-nextjs@4.3.0]
12:10:42 PM:    7: 0xeb4b1e  [npm install @netlify/plugin-nextjs@4.3.0]
12:10:42 PM:    8: 0xeb5560 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [npm install @netlify/plugin-nextjs@4.3.0]
12:10:42 PM:    9: 0xeb84de v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [npm install @netlify/plugin-nextjs@4.3.0]
12:10:42 PM:   10: 0xe7990a v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [npm install @netlify/plugin-nextjs@4.3.0]
12:10:42 PM:   11: 0x11f2f06 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [npm install @netlify/plugin-nextjs@4.3.0]
12:10:42 PM:   12: 0x15e7819  [npm install @netlify/plugin-nextjs@4.3.0]
12:10:42 PM: ​
12:10:42 PM:   Resolved config
12:10:42 PM:   build:
12:10:42 PM:     base: /opt/build/repo/web
12:10:42 PM:     command: npm run build
12:10:42 PM:     commandOrigin: config

Both customers have submitted support tickets so here are the (only visible to netlify employees) tickets with links to affected deploys. Both customers report this as a behavior change since 4.2.7.

https://netlify.zendesk.com/agent/tickets/88342 https://netlify.zendesk.com/agent/tickets/88343 https://netlify.zendesk.com/agent/tickets/88434 https://netlify.zendesk.com/agent/tickets/88424 https://netlify.zendesk.com/agent/tickets/88364

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (3 by maintainers)

Commits related to this issue

Most upvoted comments

I just updated to 4.2.8 and this happened for me too. I also see no option to downgrade in the UI.

image

image

Edit: I downgraded to 4.2.7 via manually installing plugin and it works now.

Just tried deploying a git repo normally and it results in same error with v4.2.8 after waiting for 15 minutes.

image