lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
44.94k stars 10.11k forks source link

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

Closed szdbin closed 2 months ago

szdbin commented 2 months ago

📦 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

lobehubbot commented 2 months ago

👀 @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。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

dosubot[bot] commented 2 months ago

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 bun@1.0.15 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 commented 2 months ago

[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 "eslint@8.57.1" [09:21:12.045] [09:21:12.046] warn: incorrect peer dependency "stylelint@15.11.0" [09:21:12.046] [09:21:12.046] warn: incorrect peer dependency "stylelint@15.11.0" [09:21:12.046] [09:21:12.046] warn: incorrect peer dependency "@octokit/core@5.2.0" [09:21:12.046] [09:21:12.046] warn: incorrect peer dependency "stylelint@15.11.0" [09:21:12.046] [09:21:12.046] warn: incorrect peer dependency "stylelint@15.11.0" [09:21:41.860] Saved lockfile [09:21:41.860] [09:21:41.860] $ husky [09:21:41.918] [09:21:41.919] + @commitlint/cli@19.5.0 [09:21:41.919] + @ducanh2912/next-pwa@10.2.8 [09:21:41.919] + @edge-runtime/vm@4.0.3 [09:21:41.919] + @lobehub/i18n-cli@1.20.0 [09:21:41.919] + @lobehub/lint@1.24.4 [09:21:41.919] + @lobehub/seo-cli@1.4.2 [09:21:41.919] + @next/bundle-analyzer@14.2.11 [09:21:41.919] + @next/eslint-plugin-next@14.2.11 [09:21:41.919] + @peculiar/webcrypto@1.5.0 [09:21:41.920] + @testing-library/jest-dom@6.5.0 [09:21:41.920] + @testing-library/react@16.0.1 [09:21:41.920] + @types/chroma-js@2.4.4 [09:21:41.920] + @types/debug@4.1.12 [09:21:41.920] + @types/diff@5.2.2 [09:21:41.920] + @types/ip@1.1.3 [09:21:41.920] + @types/json-schema@7.0.15 [09:21:41.920] + @types/lodash@4.17.7 [09:21:41.920] + @types/lodash-es@4.17.12 [09:21:41.920] + @types/node@20.16.5 [09:21:41.920] + @types/numeral@2.0.5 [09:21:41.920] + @types/pg@8.11.10 [09:21:41.920] + @types/react@18.3.6 [09:21:41.920] + @types/react-dom@18.3.0 [09:21:41.920] + @types/rtl-detect@1.0.3 [09:21:41.920] + @types/semver@7.5.8 [09:21:41.920] + @types/systemjs@6.15.1 [09:21:41.920] + @types/ua-parser-js@0.7.39 [09:21:41.920] + @types/uuid@10.0.0 [09:21:41.920] + @types/ws@8.5.12 [09:21:41.920] + @vitest/coverage-v8@1.2.2 [09:21:41.920] + ajv-keywords@5.1.0 [09:21:41.920] + commitlint@19.5.0 [09:21:41.921] + consola@3.2.3 [09:21:41.921] + dotenv@16.4.5 [09:21:41.921] + dpdm@3.14.0 [09:21:41.921] + drizzle-kit@0.24.2 [09:21:41.921] + eslint@8.57.1 [09:21:41.921] + eslint-plugin-mdx@2.3.4 [09:21:41.921] + eslint-plugin-unused-imports@4.0.1 [09:21:41.921] + fake-indexeddb@6.0.0 [09:21:41.921] + glob@11.0.0 [09:21:41.921] + gray-matter@4.0.3 [09:21:41.921] + happy-dom@15.7.4 [09:21:41.921] + husky@9.1.6 [09:21:41.921] + just-diff@6.0.2 [09:21:41.921] + lint-staged@15.2.10 [09:21:41.921] + lodash@4.17.21 [09:21:41.921] + markdown-table@3.0.3 [09:21:41.921] + node-fetch@3.3.2 [09:21:41.922] + node-gyp@10.2.0 [09:21:41.922] + openapi-typescript@6.7.6 [09:21:41.922] + p-map@7.0.2 [09:21:41.922] + prettier@3.3.3 [09:21:41.922] + remark-cli@11.0.0 [09:21:41.922] + remark-parse@10.0.2 [09:21:41.922] + semantic-release@21.1.2 [09:21:41.922] + stylelint@15.11.0 [09:21:41.922] + supports-color@8.1.1 [09:21:41.922] + tsx@4.19.1 [09:21:41.922] + typescript@5.6.2 [09:21:41.922] + unified@11.0.5 [09:21:41.922] + unist-util-visit@5.0.0 [09:21:41.922] + vite@5.4.6 [09:21:41.922] + vitest@1.2.2 [09:21:41.922] + vitest-canvas-mock@0.3.3 [09:21:41.922] + @ant-design/icons@5.4.0 [09:21:41.922] + @ant-design/pro-components@2.7.18 [09:21:41.923] + @anthropic-ai/sdk@0.27.3 [09:21:41.923] + @auth/core@0.34.2 [09:21:41.923] + @aws-sdk/client-bedrock-runtime@3.651.1 [09:21:41.923] + @aws-sdk/client-s3@3.651.1 [09:21:41.923] + @aws-sdk/s3-request-presigner@3.651.1 [09:21:41.923] + @azure/core-rest-pipeline@1.16.0 [09:21:41.923] + @azure/openai@1.0.0-beta.12 [09:21:41.923] + @cfworker/json-schema@2.0.1 [09:21:41.923] + @clerk/localizations@2.0.0 [09:21:41.924] + @clerk/nextjs@5.5.4 [09:21:41.924] + @clerk/themes@2.1.30 [09:21:41.924] + @cyntler/react-doc-viewer@1.17.0 [09:21:41.924] + @google/generative-ai@0.16.1 [09:21:41.924] + @icons-pack/react-simple-icons@9.6.0 [09:21:41.924] + @khmyznikov/pwa-install@0.3.9 [09:21:41.924] + @langchain/community@0.2.33 [09:21:41.924] + @lobehub/chat-plugin-sdk@1.32.4 [09:21:41.924] + @lobehub/chat-plugins-gateway@1.9.0 [09:21:41.924] + @lobehub/icons@1.33.7 [09:21:41.924] + @lobehub/tts@1.24.3 [09:21:41.924] + @lobehub/ui@1.150.5 [09:21:41.924] + @neondatabase/serverless@0.9.5 [09:21:41.924] + @next/third-parties@14.2.11 [09:21:41.924] + @react-spring/web@9.7.4 [09:21:41.924] + @sentry/nextjs@7.119.0 [09:21:41.924] + @t3-oss/env-nextjs@0.11.1 [09:21:41.924] + @tanstack/react-query@5.56.2 [09:21:41.924] + @trpc/client@11.0.0-rc.502 [09:21:41.924] + @trpc/next@11.0.0-rc.502 [09:21:41.924] + @trpc/react-query@11.0.0-rc.502 [09:21:41.925] + @trpc/server@11.0.0-rc.502 [09:21:41.925] + @vercel/analytics@1.3.1 [09:21:41.926] + @vercel/edge-config@1.3.0 [09:21:41.926] + @vercel/speed-insights@1.0.12 [09:21:41.926] + ahooks@3.8.1 [09:21:41.926] + ai@3.3.39 [09:21:41.926] + antd@5.20.6 [09:21:41.926] + antd-style@3.6.3 [09:21:41.926] + brotli-wasm@3.0.1 [09:21:41.926] + chroma-js@2.6.0 [09:21:41.926] + dayjs@1.11.13 [09:21:41.926] + debug@4.3.7 [09:21:41.926] + dexie@3.2.7 [09:21:41.926] + diff@5.2.0 [09:21:41.926] + drizzle-orm@0.33.0 [09:21:41.926] + drizzle-zod@0.5.1 [09:21:41.926] + fast-deep-equal@3.1.3 [09:21:41.926] + file-type@19.5.0 [09:21:41.926] + framer-motion@11.5.4 [09:21:41.926] + gpt-tokenizer@2.2.3 [09:21:41.926] + i18next@23.15.1 [09:21:41.926] + i18next-browser-languagedetector@7.2.1 [09:21:41.926] + i18next-resources-to-backend@1.2.1 [09:21:41.927] + idb-keyval@6.2.1 [09:21:41.927] + immer@10.1.1 [09:21:41.927] + ip@2.0.1 [09:21:41.927] + jose@5.9.2 [09:21:41.927] + js-sha256@0.11.0 [09:21:41.927] + jsonl-parse-stringify@1.0.3 [09:21:41.927] + langchain@0.2.20 [09:21:41.927] + langfuse@3.24.0 [09:21:41.927] + langfuse-core@3.24.0 [09:21:41.927] + lodash-es@4.17.21 [09:21:41.927] + lucide-react@0.441.0 [09:21:41.927] + mammoth@1.8.0 [09:21:41.927] + modern-screenshot@4.4.39 [09:21:41.927] + nanoid@5.0.7 [09:21:41.927] + next@14.2.8 [09:21:41.927] + next-auth@5.0.0-beta.21 [09:21:41.927] + next-sitemap@4.2.3 [09:21:41.927] + numeral@2.0.6 [09:21:41.927] + nuqs@1.19.1 [09:21:41.927] + officeparser@4.1.1 [09:21:41.927] + ollama@0.5.9 [09:21:41.927] + openai@4.61.1 [09:21:41.927] + openapi-fetch@0.9.8 [09:21:41.927] + partial-json@0.1.7 [09:21:41.927] + pdf-parse@1.1.1 [09:21:41.928] + pdfjs-dist@4.4.168 [09:21:41.928] + pg@8.12.0 [09:21:41.928] + pino@9.4.0 [09:21:41.928] + polished@4.3.1 [09:21:41.928] + posthog-js@1.161.5 [09:21:41.928] + pwa-install-handler@2.6.0 [09:21:41.928] + query-string@9.1.0 [09:21:41.928] + random-words@2.0.1 [09:21:41.928] + react@18.3.1 [09:21:41.928] + react-confetti@6.1.0 [09:21:41.928] + react-dom@18.3.1 [09:21:41.928] + react-fast-marquee@1.6.5 [09:21:41.928] + react-hotkeys-hook@4.5.1 [09:21:41.928] + react-i18next@14.0.2 [09:21:41.928] + react-layout-kit@1.9.0 [09:21:41.928] + react-lazy-load@4.0.1 [09:21:41.928] + react-pdf@9.1.0 [09:21:41.928] + react-virtuoso@4.10.4 [09:21:41.928] + react-wrap-balancer@1.1.1 [09:21:41.928] + remark@14.0.3 [09:21:41.928] + remark-gfm@3.0.1 [09:21:41.928] + remark-html@15.0.2 [09:21:41.928] + resolve-accept-language@3.1.7 [09:21:41.928] + rtl-detect@1.1.2 [09:21:41.928] + semver@7.6.3 [09:21:41.928] + sharp@0.33.5 [09:21:41.928] + stripe@15.12.0 [09:21:41.928] + superjson@2.2.1 [09:21:41.928] + svix@1.34.0 [09:21:41.928] + swr@2.2.5 [09:21:41.928] + systemjs@6.15.1 [09:21:41.928] + ts-md5@1.3.1 [09:21:41.929] + ua-parser-js@1.0.39 [09:21:41.929] + unstructured-client@0.16.0 [09:21:41.929] + url-join@5.0.0 [09:21:41.929] + use-merge-value@1.2.0 [09:21:41.929] + utility-types@3.11.0 [09:21:41.929] + uuid@10.0.0 [09:21:41.929] + ws@8.18.0 [09:21:41.929] + y-protocols@1.0.6 [09:21:41.929] + y-webrtc@10.3.0 [09:21:41.929] + yaml@2.5.1 [09:21:41.930] + yjs@13.6.19 [09:21:41.930] + zod@3.23.8 [09:21:41.930] + zustand@4.5.5 [09:21:41.930] + zustand-utils@1.3.2 [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 commented 2 months ago

同样遇到相同报错

lobehubbot commented 2 months ago

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


Encountered the same error

C-L-STARK commented 2 months ago
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.

C-L-STARK commented 2 months ago
image
BertramRay commented 2 months ago
image

It works for me, thanks!

arvinxx commented 2 months ago

plz try again now, I think it's fixed as antd release the 5.21.0. If it still occurs, just reopen it.

lobehubbot commented 2 months ago

✅ @szdbin

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