AutoGPT-Next-Web icon indicating copy to clipboard operation
AutoGPT-Next-Web copied to clipboard

Prisma problem when when running production docker compose

Open mjzhaochenyi opened this issue 1 year ago • 0 comments

Please check that this issue hasn't been reported before

请检查之前没有报告过此问题

  • [X] I searched previous Bug Reports didn't find any similar reports.我搜索了以前的 Bug Reports 没有找到任何类似的报告。

Expected Behavior/预期行为

Expect prisma/client works

Current behaviour/当前行为

docker compose -f docker-compose.prod.yml up                         
WARN[0000] The "NEXT_PUBLIC_FF_AUTH_ENABLED" variable is not set. Defaulting to a blank string. 
WARN[0000] The "GITHUB_CLIENT_SECRET" variable is not set. Defaulting to a blank string. 
WARN[0000] The "GOOGLE_CLIENT_SECRET" variable is not set. Defaulting to a blank string. 
WARN[0000] The "GOOGLE_CLIENT_ID" variable is not set. Defaulting to a blank string. 
WARN[0000] The "GITHUB_CLIENT_ID" variable is not set. Defaulting to a blank string. 
WARN[0000] The "DISCORD_CLIENT_ID" variable is not set. Defaulting to a blank string. 
WARN[0000] The "DISCORD_CLIENT_SECRET" variable is not set. Defaulting to a blank string. 
[+] Running 1/0
 ✔ Container pwc-autogpt  Created                                                                                                                                                                                                                                                                                                                                                                                    0.0s 
Attaching to pwc-autogpt
autogpt  | Environment variables loaded from .env
autogpt  | Prisma schema loaded from prisma/schema.prisma
autogpt  | Error: Generator "/app/node_modules/@prisma/client/generator-build/index.js" failed:
autogpt  | 
autogpt  | node:internal/modules/cjs/loader:1093
autogpt  |   throw err;
autogpt  |   ^
autogpt  | Error: Cannot find module '/app/node_modules/@prisma/client/generator-build/index.js'
autogpt  |     at Module._resolveFilename (node:internal/modules/cjs/loader:1090:15)
autogpt  |     at Module._load (node:internal/modules/cjs/loader:934:27)
autogpt  |     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
autogpt  |     at node:internal/main/run_main_module:23:47 {
autogpt  |   code: 'MODULE_NOT_FOUND',
autogpt  |   requireStack: []
autogpt  | }
autogpt  | Node.js v19.9.0
autogpt  | 
autogpt  | 
autogpt  |   ▲ Next.js 13.5.3
autogpt  |   - Local:        http://xxx:3000
autogpt  |   - Network:      http://xxx:3000
autogpt  | 
autogpt  |  ✓ Ready in 615ms
autogpt  | 

Steps to reproduce/重现步骤

docker compose -f docker-compose.prod.yml up --build --remove-orphans

Possible solution/可能的解决方案

No response

Which Operating Systems are you using?您使用的是哪种操作系统?

  • [ ] Android
  • [ ] iPhone/iPad
  • [ ] Linux
  • [X] macOS
  • [ ] Windows

Acknowledgements致谢

  • [X] My issue title is concise, descriptive, and in title casing.我的问题标题简明扼要,具有描述性,并且使用标题框
  • [X] I have searched the existing issues to make sure this bug has not been reported yet.我已经搜索了现有问题以确保尚未报告此错误。
  • [X] I am using the latest version of AutoGPT-Next-Web.我使用的是最新版本的 AutoGPT-Next-Web
  • [X] I have provided enough information for the maintainers to reproduce and diagnose the issue.我已经为维护者提供了足够的信息来重现和诊断问题。

mjzhaochenyi avatar Oct 15 '23 11:10 mjzhaochenyi