besscroft / PicImpact

PicImpact 是一个摄影师专用的摄影作品展示网站,基于 Next.js + Hono.js 开发。今天又是想当二次元摄影高手的一天呢!
https://pic.besscroft.com
MIT License
718 stars 107 forks source link

部署报错 没看懂日志问题 是否方便帮忙看一下 #49

Closed chuanbizhe closed 4 months ago

chuanbizhe commented 5 months ago

Application error: a server-side exception has occurred (see the server logs for more information). Digest: 4195431812

github-actions[bot] commented 5 months ago

非常感谢您提交了 issues,我们很高兴能够与您一起合作解决这个问题。我们将尽快进行审核,并会在 24 小时内回复您。在此期间,如有任何问题,请随时联系我们。再次感谢您的贡献!

besscroft commented 5 months ago

@chuanbizhe 您方便在这里贴上脱敏后的后端日志吗?它可能来着 Vercel log、nodejs log 或者 docker log。

根据经验,部署出问题的,大概率是数据库部分没有配置好的。您可以先检查一下,有不明白的再问我。

chuanbizhe commented 5 months ago

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

chuanbizhe commented 5 months ago

PrismaClientKnownRequestError: Invalid prisma.$executeRaw() invocatio

chuanbizhe commented 5 months ago

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' } }

besscroft commented 5 months ago

请问下您的部署方式?

chuanbizhe commented 5 months ago

使用的docker

chuanbizhe commented 5 months ago

请问能看出来哪里的问题嘛 QAQ

besscroft commented 5 months ago

根据日志判断,我认为是数据库没连接上,或者是数据库用户无操作权限,导致的数据库表结构和数据初始化失败。容器化部署启动时,程序会自动去初始化,您尝试先从这方向排查看看,有问题再来问俺,我尽量提供帮助。

besscroft commented 5 months ago

我来录制一个部署视频,稍等一会。

chuanbizhe commented 5 months ago

好的好的 感谢感谢

besscroft commented 5 months ago

您可参考:https://github.com/besscroft/PicImpact/issues/50

besscroft commented 4 months ago

长时间未收到反馈,如您有疑问,可重新打开!