newrelic / newrelic-node-examples

Working examples of New Relic Node.js agent features
Apache License 2.0
14 stars 19 forks source link

Nexjts App Router Build Process with New Relic not working #261

Open mike-rambil opened 1 month ago

mike-rambil commented 1 month ago

Description

I followed the example from this repo and my build is throwing error.

Steps to Reproduce

I followed the example from this repo and my build is throwing error.

Expected Behavior

build to be successful

Relevant Logs / Console output

   Generating static pages (3/14) 
 ⚠ Sending SIGTERM signal to static worker due to timeout of 60 seconds. Subsequent errors may be a result of the worker exiting.
 ⚠ Restarted static page generation for /_not-found because it took more than 60 seconds
 ⚠ See more info here https://nextjs.org/docs/messages/static-page-generation-timeout
 ⚠ Restarted static page generation for /dashboard/barrel-fill-schedule because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/barrel-inventory/open-locations because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/barrel-inventory because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/barrel-receipts because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/barrel-receipts/purchase-order because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/quality-reporting because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/transfer-in-out because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/upcoming-schedule because it took more than 60 seconds
 ⚠ Restarted static page generation for / because it took more than 60 seconds
 ⚠ Sending SIGTERM signal to static worker due to timeout of 60 seconds. Subsequent errors may be a result of the worker exiting.
 ⚠ Restarted static page generation for /_not-found because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/barrel-fill-schedule because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/barrel-inventory/open-locations because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/barrel-inventory because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/barrel-receipts because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/barrel-receipts/purchase-order because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/quality-reporting because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/transfer-in-out because it took more than 60 seconds
 ⚠ Restarted static page generation for /dashboard/upcoming-schedule because it took more than 60 seconds
 ⚠ Restarted static page generation for / because it took more than 60 seconds
 ⚠ Sending SIGTERM signal to static worker due to timeout of 60 seconds. Subsequent errors may be a result of the worker exiting.

> Build error occurred
Error: Static page generation for /_not-found is still timing out after 3 attempts. See more info here https://nextjs.org/docs/messages/static-page-generation-timeout
    at onRestart (/github/workspace/node_modules/next/dist/build/index.js:297:27)
    at /github/workspace/node_modules/next/dist/lib/worker.js:95:40
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async /github/workspace/node_modules/next/dist/export/index.js:518:20
    at async Span.traceAsyncFn (/github/workspace/node_modules/next/dist/trace/trace.js:151:20)
    at async /github/workspace/node_modules/next/dist/export/index.js:516:24
    at async Promise.all (index 3)
    at async exportAppImpl (/github/workspace/node_modules/next/dist/export/index.js:508:21)
    at async /github/workspace/node_modules/next/dist/export/index.js:681:16
    at async Span.traceAsyncFn (/github/workspace/node_modules/next/dist/trace/trace.js:151:20)
    at async /github/workspace/node_modules/next/dist/build/index.js:1494:42
    at async Span.traceAsyncFn (/github/workspace/node_modules/next/dist/trace/trace.js:151:20)
    at async /github/workspace/node_modules/next/dist/build/index.js:1341:17
    at async Span.traceAsyncFn (/github/workspace/node_modules/next/dist/trace/trace.js:151:20)
    at async build (/github/workspace/node_modules/next/dist/build/index.js:373:9)
    at async main (/github/workspace/node_modules/next/dist/bin/next:155:5)

---End of Oryx build logs--- Oryx has failed to build the solution.

Your Environment

Additional context

workato-integration[bot] commented 1 month ago

https://new-relic.atlassian.net/browse/NR-282389

jsumners-nr commented 1 month ago

👋 thank you for the report. Please provide a minimal reproducible example. Doing so will help us diagnose the issue. It should be the bare minimum code needed to trigger the issue, and easily runnable without any changes or extra code.

You may use a GitHub repository to host the code if it is too much to fit into a code block (or two).