Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 新版本部署在Vercel上失败 exited with SIGKILL #4628

Closed
Miku2G opened this issue Nov 6, 2024 · 7 comments
Closed

[Bug] 新版本部署在Vercel上失败 exited with SIGKILL #4628

Miku2G opened this issue Nov 6, 2024 · 7 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@Miku2G
Copy link

Miku2G commented Nov 6, 2024

📦 Environment

Vercel

📌 Version

1.28.0

💻 Operating System

Windows

🌐 Browser

Edge

🐛 Bug Description

新版本更新报错:
error: script "build" was terminated by signal SIGKILL (Forced quit)
Error: Command "bun run build" exited with SIGKILL
使用NODE_OPTIONS=--max-old-space-size=6144 next build构建后依旧报错:
Error: Command "NODE_OPTIONS=--max-old-space-size=6144 next build" exited with SIGKILL

vercel log:
[22:50:27.029] Running build in Washington, D.C., USA (East) – iad1
[22:50:27.143] Skipping build cache, deployment was triggered without cache.
[22:50:28.207] Cloning completed: 1.071s
[22:50:29.640] Running "vercel build"
[22:50:30.045] Vercel CLI 37.14.0
[22:50:30.659] Running "install" command: bun install...
[22:50:30.835] bun install v1.1.33 (247456b6)
[22:50:30.850] Resolving dependencies
[22:50:45.847] Resolved, downloaded and extracted [9738]
[22:50:45.847] warn: incorrect peer dependency "[email protected]"
[22:50:45.847]
[22:50:45.847] warn: incorrect peer dependency "[email protected]"
[22:50:45.848]
[22:50:45.848] warn: incorrect peer dependency "[email protected]"
[22:50:45.848]
[22:50:45.848] warn: incorrect peer dependency "[email protected]"
[22:50:45.848]
[22:50:45.848] warn: incorrect peer dependency "[email protected]"
[22:50:45.848]
[22:50:45.848] warn: incorrect peer dependency "[email protected]"
[22:50:45.848]
[22:50:45.848] warn: incorrect peer dependency "@octokit/[email protected]"
[22:51:17.679] Saved lockfile
[22:51:17.679]
[22:51:17.679] $ husky
[22:51:17.739]
[22:51:17.739] + @commitlint/[email protected]
[22:51:17.739] + @edge-runtime/[email protected]
[22:51:17.739] + @huggingface/[email protected]
[22:51:17.739] + @lobehub/[email protected]
[22:51:17.739] + @lobehub/[email protected]
[22:51:17.740] + @lobehub/[email protected]
[22:51:17.740] + @next/[email protected]
[22:51:17.740] + @next/[email protected]
[22:51:17.740] + @peculiar/[email protected]
[22:51:17.740] + @testing-library/[email protected]
[22:51:17.740] + @testing-library/[email protected]
[22:51:17.740] + @types/[email protected]
[22:51:17.740] + @types/[email protected]
[22:51:17.740] + @types/[email protected]
[22:51:17.740] + @types/[email protected]
[22:51:17.740] + @types/[email protected]
[22:51:17.740] + @types/[email protected]
[22:51:17.740] + @types/[email protected]
[22:51:17.740] + @types/[email protected]
[22:51:17.740] + @types/[email protected]
[22:51:17.740] + @types/[email protected]
[22:51:17.740] + @types/[email protected]
[22:51:17.740] + @types/[email protected]
[22:51:17.741] + @types/[email protected]
[22:51:17.741] + @types/[email protected]
[22:51:17.741] + @types/[email protected]
[22:51:17.742] + @types/[email protected]
[22:51:17.742] + @types/[email protected]
[22:51:17.742] + @types/[email protected]
[22:51:17.742] + @types/[email protected]
[22:51:17.742] + @vitest/[email protected]
[22:51:17.742] + [email protected]
[22:51:17.742] + [email protected]
[22:51:17.742] + [email protected]
[22:51:17.742] + [email protected]
[22:51:17.742] + [email protected]
[22:51:17.742] + [email protected]
[22:51:17.742] + [email protected]
[22:51:17.742] + [email protected]
[22:51:17.742] + [email protected]
[22:51:17.742] + [email protected]
[22:51:17.742] + [email protected]
[22:51:17.742] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.743] + [email protected]
[22:51:17.744] + @ant-design/[email protected]
[22:51:17.744] + @ant-design/[email protected]
[22:51:17.744] + @anthropic-ai/[email protected]
[22:51:17.744] + @auth/[email protected]
[22:51:17.744] + @aws-sdk/[email protected]
[22:51:17.744] + @aws-sdk/[email protected]
[22:51:17.744] + @aws-sdk/[email protected]
[22:51:17.744] + @azure/[email protected]
[22:51:17.744] + @azure/[email protected]
[22:51:17.744] + @baiducloud/[email protected]
[22:51:17.744] + @cfworker/[email protected]
[22:51:17.744] + @clerk/[email protected]
[22:51:17.745] + @clerk/[email protected]
[22:51:17.745] + @clerk/[email protected]
[22:51:17.745] + @codesandbox/[email protected]
[22:51:17.745] + @cyntler/[email protected]
[22:51:17.745] + @google/[email protected]
[22:51:17.745] + @huggingface/[email protected]
[22:51:17.745] + @icons-pack/[email protected]
[22:51:17.745] + @khmyznikov/[email protected]
[22:51:17.745] + @langchain/[email protected]
[22:51:17.745] + @lobehub/[email protected]
[22:51:17.745] + @lobehub/[email protected]
[22:51:17.745] + @lobehub/[email protected]
[22:51:17.745] + @lobehub/[email protected]
[22:51:17.745] + @lobehub/[email protected]
[22:51:17.745] + @neondatabase/[email protected]
[22:51:17.745] + @next/[email protected]
[22:51:17.745] + @react-spring/[email protected]
[22:51:17.745] + @sentry/[email protected]
[22:51:17.745] + @serwist/[email protected]
[22:51:17.745] + @t3-oss/[email protected]
[22:51:17.745] + @tanstack/[email protected]
[22:51:17.745] + @trpc/[email protected]
[22:51:17.745] + @trpc/[email protected]
[22:51:17.745] + @trpc/[email protected]
[22:51:17.746] + @trpc/[email protected]
[22:51:17.746] + @vercel/[email protected]
[22:51:17.746] + @vercel/[email protected]
[22:51:17.746] + @vercel/[email protected]
[22:51:17.746] + [email protected]
[22:51:17.746] + [email protected]
[22:51:17.746] + [email protected]
[22:51:17.746] + [email protected]
[22:51:17.746] + [email protected]
[22:51:17.746] + [email protected]
[22:51:17.746] + [email protected]
[22:51:17.746] + [email protected]
[22:51:17.746] + [email protected]
[22:51:17.746] + [email protected]
[22:51:17.746] + [email protected]
[22:51:17.746] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.747] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.748] + [email protected]
[22:51:17.749] + [email protected]
[22:51:17.749] + [email protected]
[22:51:17.749] + [email protected]
[22:51:17.749] + [email protected]
[22:51:17.749] + [email protected]
[22:51:17.749] + [email protected]
[22:51:17.749] + [email protected]
[22:51:17.749] + [email protected]
[22:51:17.749] + [email protected]
[22:51:17.749] + [email protected]
[22:51:17.750] + [email protected]
[22:51:17.750] + [email protected]
[22:51:17.750] + [email protected]
[22:51:17.750] + [email protected]
[22:51:17.750] + [email protected]
[22:51:17.750] + [email protected]
[22:51:17.750] + [email protected]
[22:51:17.750] + [email protected]
[22:51:17.750] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751] + [email protected]
[22:51:17.751]
[22:51:17.751] 2646 packages installed [46.93s]
[22:51:17.751]
[22:51:17.752] Blocked 7 postinstalls. Run bun pm untrusted for details.
[22:51:17.790] Detected Next.js version: 14.2.8
[22:51:17.791] Running "NODE_OPTIONS=--max-old-space-size=6144 next build"
[22:51:18.638] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[22:51:18.638] This information is used to shape Next.js' roadmap and prioritize features.
[22:51:18.638] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[22:51:18.639] https://nextjs.org/telemetry
[22:51:18.639]
[22:51:18.705] ▲ Next.js 14.2.8
[22:51:18.705]
[22:51:18.813] Creating an optimized production build ...
[22:51:19.356] ○ (serwist) The service worker will not be automatically registered, please call 'window.serwist.register()' in 'componentDidMount' or 'useEffect'.
[22:51:19.362] ✓ (serwist) Bundling the service worker script with the URL '/sw.js' and the scope '/'...
[22:55:43.751] ✓ Compiled successfully
[22:55:43.752] Linting and checking validity of types ...
[22:56:16.435] Error: Command "NODE_OPTIONS=--max-old-space-size=6144 next build" exited with SIGKILL
[22:56:23.274] ▲ Build system report
[22:56:23.274] ▲ To always completely log this report, add VERCEL_BUILD_SYSTEM_REPORT=1 as an Environment Variable to your project.
[22:56:23.274] • At least one "Out of Memory" ("OOM") event was detected during the build.
[22:56:23.274] • This occurs when processes or applications running during the build completely fill up the available memory (RAM) in the build container. When this happens, the build container terminates one of the processes during the build with a SIGKILL signal.
[22:56:23.274] • Read this troubleshooting guide for more information: https://vercel.link/troubleshoot-build-errors

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@Miku2G Miku2G added the 🐛 Bug Something isn't working | 缺陷 label Nov 6, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Nov 6, 2024
@lobehubbot
Copy link
Member

👀 @Miku2G

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Copy link

dosubot bot commented Nov 6, 2024

@Miku2G 你好!我是Dosu,一个可以帮助你解决bug、回答问题,并成为贡献者的机器人。在等待人类维护者的期间,我会尽力帮助你解决问题。

There are similar issues related to deployment failures on Vercel due to "Out of Memory" (OOM) events. Here are some solutions that have been suggested:

  1. Increase Memory Allocation: You can try increasing the memory allocation for Node.js by setting the NODE_OPTIONS environment variable to --max-old-space-size=6144. However, since you've already tried this and it didn't resolve the issue, you might need to explore other options.

  2. Optimize Your Build: Consider optimizing your build process to reduce memory usage. This might involve:

    • Reducing the number of dependencies or optimizing them.
    • Splitting your build into smaller parts if possible.
    • Checking for any large files or assets that could be optimized or deferred.
  3. Vercel's Troubleshooting Guide: Refer to Vercel's troubleshooting guide for more detailed steps on handling build errors, especially those related to memory issues: Vercel Troubleshooting Guide.

For more context, you can check similar discussions and issues:

These resources might provide additional insights or solutions that could be applicable to your situation.

To continue talking to Dosu, mention @dosu.

@arvinxx
Copy link
Contributor

arvinxx commented Nov 6, 2024

重试下?

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Try again?

@Miku2G
Copy link
Author

Miku2G commented Nov 7, 2024

可以了,谢谢

@Miku2G Miku2G closed this as completed Nov 7, 2024
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Nov 7, 2024
@lobehubbot
Copy link
Member

@Miku2G

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


That's ok, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Done
Development

No branches or pull requests

3 participants