a year ago
Hello,
I am trying to upload a next.js app. The build finishes without errors ("build": "prisma generate && NODE_OPTIONS='--max-old-space-size=2048' next build").
However, the deploy logs end with an error:
...
Collecting page data ...
Generating static pages (0/23) ...
Generating static pages (5/23)
Generating static pages (11/23)
thread '<unnamed>' panicked at /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokio-1.38.1/src/runtime/scheduler/multi_thread/worker.rs:455:13:
OS can't spawn worker thread: Resource temporarily unavailable (os error 11)
stack backtrace:
0: 0x7f7e71466359 - <unknown>
1: 0x7f7e70bec4e3 - <unknown>
2: 0x7f7e7143e302 - <unknown>
3: 0x7f7e7146af33 - <unknown>
4: 0x7f7e7146b4b6 - <unknown>
5: 0x7f7e7146b008 - <unknown>
6: 0x7f7e7146af69 - <unknown>
7: 0x7f7e7146af5c - <unknown>
8: 0x7f7e70aaec2f - <unknown>
9: 0x7f7e70f5d809 - <unknown>
10: 0x7f7e70f5c449 - <unknown>
11: 0x7f7e70f5f980 - <unknown>
12: 0x7f7e70f77be9 - <unknown>
13: 0x7f7e70ab81ed - <unknown>
14: 0x7f7e70f69288 - napi_register_module_v1
15: 0xa9b5bd - Z30napimodule_register_by_symbolN2v85LocalINS_6ObjectEEENS0_INS_5ValueEEENS0_INS_7ContextEEEPFP12napi_value__P10napi_env__S8_Ei
16: 0xaa2dc3 - ZNSt17Function_handlerIFbPN4node7binding4DLibEEZNS1_6DLOpenERKN2v820FunctionCallbackInfoINS5_5ValueEEEEUlS3_E_E9_M_invokeERKSt9_Any_dataOS3_
17: 0xa5039b - ZN4node11Environment12TryLoadAddonEPKciRKSt8functionIFbPNS7binding4DLibEEE
18: Generating static pages (17/23)
✓ Generating static pages (23/23)
⨯ Next.js build worker exited with code: null and signal: SIGABRT
Then, it seems to restart and finish with the same error for a few times.
The start command is "start": "next build && next start".
Does anyone have an idea what the reason could be?
2 Replies
a year ago
Fix: remove "next build" from start command.
a year ago
You should not be doing next build inside your start command. Remove the next build and put that as part of your build command
Status changed to Awaiting User Response Railway • about 1 year ago
7 months ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • 7 months ago