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]v1.17.3以后的版本在vercel上部署都失败了 #3992

Open
szdbin opened this issue Sep 16, 2024 · 8 comments
Open

[Bug]v1.17.3以后的版本在vercel上部署都失败了 #3992

szdbin opened this issue Sep 16, 2024 · 8 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@szdbin
Copy link

szdbin commented Sep 16, 2024

📦 Environment

Vercel

📌 Version

v1.17.7

💻 Operating System

Windows

🌐 Browser

Chrome

🐛 Bug Description

error: script "build" was terminated by signal SIGKILL (Forced quit)
Error: Command "bun run build" exited with SIGKILL

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@szdbin szdbin added the 🐛 Bug Something isn't working | 缺陷 label Sep 16, 2024
@lobehubbot
Copy link
Member

👀 @szdbin

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 Sep 16, 2024

Hello, @szdbin! I'm here to assist you with any bugs, questions, or contributions. Let's work together to resolve the issue you're facing.

I found several similar issues and discussions related to deployment failures on Vercel:

  1. Closed Issues:

  2. Discussions:

For your specific issue with the SIGKILL signal during the build process, you might want to try the following steps:

  1. Check the vercel.json Configuration:
    Ensure that your vercel.json file is correctly configured. For example:

    {
      "installCommand": "bun install"
    }
  2. Pin the bun Version:
    Modify your vercel.json to use a specific version of bun that is known to work:

    {
      "installCommand": "npx [email protected] install"
    }
  3. Redeploy:
    Sometimes, simply redeploying can resolve transient issues.

If these steps do not resolve the issue, you may need to investigate further by checking the build logs for more detailed error messages or considering if any recent changes in dependencies could be causing the problem.

To continue talking to Dosu, mention @dosu.

@szdbin
Copy link
Author

szdbin commented Sep 17, 2024

[09:20:53.401] Running build in Washington, D.C., USA (East) – iad1
[09:20:53.495] Cloning github.com/szdbin/lobe-chat (Branch: main, Commit: 8bbddec)
[09:20:53.831] Previous build cache not available
[09:20:54.165] Cloning completed: 669.96ms
[09:20:54.631] Running "vercel build"
[09:20:55.089] Vercel CLI 37.4.0
[09:20:55.632] Running "install" command: bun install...
[09:20:55.677] bun install v1.1.26 (0a37423b)
[09:20:55.687] Resolving dependencies
[09:21:12.045] Resolved, downloaded and extracted [9878]
[09:21:12.045] warn: incorrect peer dependency "[email protected]"
[09:21:12.045]
[09:21:12.046] warn: incorrect peer dependency "[email protected]"
[09:21:12.046]
[09:21:12.046] warn: incorrect peer dependency "[email protected]"
[09:21:12.046]
[09:21:12.046] warn: incorrect peer dependency "@octokit/[email protected]"
[09:21:12.046]
[09:21:12.046] warn: incorrect peer dependency "[email protected]"
[09:21:12.046]
[09:21:12.046] warn: incorrect peer dependency "[email protected]"
[09:21:41.860] Saved lockfile
[09:21:41.860]
[09:21:41.860] $ husky
[09:21:41.918]
[09:21:41.919] + @commitlint/[email protected]
[09:21:41.919] + @ducanh2912/[email protected]
[09:21:41.919] + @edge-runtime/[email protected]
[09:21:41.919] + @lobehub/[email protected]
[09:21:41.919] + @lobehub/[email protected]
[09:21:41.919] + @lobehub/[email protected]
[09:21:41.919] + @next/[email protected]
[09:21:41.919] + @next/[email protected]
[09:21:41.919] + @peculiar/[email protected]
[09:21:41.920] + @testing-library/[email protected]
[09:21:41.920] + @testing-library/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @types/[email protected]
[09:21:41.920] + @vitest/[email protected]
[09:21:41.920] + [email protected]
[09:21:41.920] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.921] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + [email protected]
[09:21:41.922] + @ant-design/[email protected]
[09:21:41.922] + @ant-design/[email protected]
[09:21:41.923] + @anthropic-ai/[email protected]
[09:21:41.923] + @auth/[email protected]
[09:21:41.923] + @aws-sdk/[email protected]
[09:21:41.923] + @aws-sdk/[email protected]
[09:21:41.923] + @aws-sdk/[email protected]
[09:21:41.923] + @azure/[email protected]
[09:21:41.923] + @azure/[email protected]
[09:21:41.923] + @cfworker/[email protected]
[09:21:41.923] + @clerk/[email protected]
[09:21:41.924] + @clerk/[email protected]
[09:21:41.924] + @clerk/[email protected]
[09:21:41.924] + @cyntler/[email protected]
[09:21:41.924] + @google/[email protected]
[09:21:41.924] + @icons-pack/[email protected]
[09:21:41.924] + @khmyznikov/[email protected]
[09:21:41.924] + @langchain/[email protected]
[09:21:41.924] + @lobehub/[email protected]
[09:21:41.924] + @lobehub/[email protected]
[09:21:41.924] + @lobehub/[email protected]
[09:21:41.924] + @lobehub/[email protected]
[09:21:41.924] + @lobehub/[email protected]
[09:21:41.924] + @neondatabase/[email protected]
[09:21:41.924] + @next/[email protected]
[09:21:41.924] + @react-spring/[email protected]
[09:21:41.924] + @sentry/[email protected]
[09:21:41.924] + @t3-oss/[email protected]
[09:21:41.924] + @tanstack/[email protected]
[09:21:41.924] + @trpc/[email protected]
[09:21:41.924] + @trpc/[email protected]
[09:21:41.924] + @trpc/[email protected]
[09:21:41.925] + @trpc/[email protected]
[09:21:41.925] + @vercel/[email protected]
[09:21:41.926] + @vercel/[email protected]
[09:21:41.926] + @vercel/[email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.926] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.927] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.928] + [email protected]
[09:21:41.929] + [email protected]
[09:21:41.929] + [email protected]
[09:21:41.929] + [email protected]
[09:21:41.929] + [email protected]
[09:21:41.929] + [email protected]
[09:21:41.929] + [email protected]
[09:21:41.929] + [email protected]
[09:21:41.929] + [email protected]
[09:21:41.929] + [email protected]
[09:21:41.929] + [email protected]
[09:21:41.930] + [email protected]
[09:21:41.930] + [email protected]
[09:21:41.930] + [email protected]
[09:21:41.930] + [email protected]
[09:21:41.930]
[09:21:41.930] 2680 packages installed [46.27s]
[09:21:41.930]
[09:21:41.930] Blocked 6 postinstalls. Run bun pm untrusted for details.
[09:21:41.975] Detected Next.js version: 14.2.8
[09:21:41.985] Running "bun run build"
[09:21:41.990] $ next build
[09:21:44.094] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[09:21:44.094] This information is used to shape Next.js' roadmap and prioritize features.
[09:21:44.094] 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:
[09:21:44.095] https://nextjs.org/telemetry
[09:21:44.095]
[09:21:44.150] ▲ Next.js 14.2.8
[09:21:44.150]
[09:21:44.242] Creating an optimized production build ...
[09:21:44.741] ✓ (pwa) Compiling for server...
[09:21:44.751] ✓ (pwa) Compiling for server...
[09:21:44.761] ✓ (pwa) Compiling for client (static)...
[09:21:44.764] ○ (pwa) Service worker: /vercel/path0/public/sw.js
[09:21:44.764] ○ (pwa) URL: /sw.js
[09:21:44.764] ○ (pwa) Scope: /
[09:26:02.867] ✓ Compiled successfully
[09:26:02.868] Linting and checking validity of types ...
[09:26:37.385] error: script "build" was terminated by signal SIGKILL (Forced quit)
[09:26:37.410] Error: Command "bun run build" exited with SIGKILL
[09:26:45.170] ▲ Build system report
[09:26:45.170] ▲ To always completely log this report, add VERCEL_BUILD_SYSTEM_REPORT=1 as an Environment Variable to your project.
[09:26:45.170] • At least one "Out of Memory" ("OOM") event was detected during the build.
[09:26:45.170] • 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.
[09:26:45.170] • Read this troubleshooting guide for more information: https://vercel.link/troubleshoot-build-errors

@BertramRay
Copy link

同样遇到相同报错

@lobehubbot
Copy link
Member

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


Encountered the same error

@TONY-STARK-TECH
Copy link
Contributor

NODE_OPTIONS=--max-old-space-size=6144 next build

Read this troubleshooting guide for more information: https://vercel.link/troubleshoot-build-errors

image

have a try.

@TONY-STARK-TECH
Copy link
Contributor

image

@BertramRay
Copy link

image

It works for me, thanks!

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: Roadmap - Chat 1.x
Development

No branches or pull requests

4 participants