Closed chuanbizhe closed 4 months ago
非常感谢您提交了 issues,我们很高兴能够与您一起合作解决这个问题。我们将尽快进行审核,并会在 24 小时内回复您。在此期间,如有任何问题,请随时联系我们。再次感谢您的贡献!
@chuanbizhe 您方便在这里贴上脱敏后的后端日志吗?它可能来着 Vercel log、nodejs log 或者 docker log。
根据经验,部署出问题的,大概率是数据库部分没有配置好的。您可以先检查一下,有不明白的再问我。
Application error: a server-side exception has occurred (see the server logs for more information). Digest: 4195431812
Application error: a server-side exception has occurred (see the server logs for more information). Digest: 4195431812
https://github.com/besscroft/PicImpact/issues/49#issue-2333363285
PrismaClientKnownRequestError:
Invalid prisma.$executeRaw()
invocatio
Raw query failed. Code: 42P01
. Message: relation "public.User" does not exist
at In.handleRequestError (/app/node_modules/.pnpm/@prisma+client@5.14.0_prisma@5.14.0/node_modules/@prisma/client/runtime/library.js:122:6877)
at In.handleAndLogRequestError (/app/node_modules/.pnpm/@prisma+client@5.14.0_prisma@5.14.0/node_modules/@prisma/client/runtime/library.js:122:6211)
at In.request (/app/node_modules/.pnpm/@prisma+client@5.14.0_prisma@5.14.0/node_modules/@prisma/client/runtime/library.js:122:5919)
at async l (/app/node_modules/.pnpm/@prisma+client@5.14.0_prisma@5.14.0/node_modules/@prisma/client/runtime/library.js:127:11167)
at async /app/.next/server/instrumentation.js:1:387
at async Proxy._transactionWithCallback (/app/node_modules/.pnpm/@prisma+client@5.14.0_prisma@5.14.0/node_modules/@prisma/client/runtime/library.js:127:9534)
at async Module.t (/app/.next/server/instrumentation.js:1:356)
at async NextNodeServer.prepareImpl (/app/node_modules/.pnpm/next@14.2.3_react-dom@18.3.1_react@18.3.1/node_modules/next/dist/server/next-server.js:475:17) {
code: 'P2010',
clientVersion: '5.14.0',
meta: { code: '42P01', message: 'relation "public.User" does not exist' }
}
请问下您的部署方式?
使用的docker
请问能看出来哪里的问题嘛 QAQ
根据日志判断,我认为是数据库没连接上,或者是数据库用户无操作权限,导致的数据库表结构和数据初始化失败。容器化部署启动时,程序会自动去初始化,您尝试先从这方向排查看看,有问题再来问俺,我尽量提供帮助。
我来录制一个部署视频,稍等一会。
好的好的 感谢感谢
长时间未收到反馈,如您有疑问,可重新打开!
Application error: a server-side exception has occurred (see the server logs for more information). Digest: 4195431812