besscroft / PicImpact

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

docker部署报错了,数据库初始化失败 #43

Closed liufq777 closed 2 months ago

liufq777 commented 3 months ago

初始化数据失败,您可能需要准备干净的数据表,请联系管理员! PrismaClientInitializationError: Error querying the database: FATAL: Tenant or user not found at r (/app/node_modules/.pnpm/@prisma+client@5.14.0_prisma@5.14.0/node_modules/@prisma/client/runtime/library.js:112:2493) at async wt.transaction (/app/node_modules/.pnpm/@prisma+client@5.14.0_prisma@5.14.0/node_modules/@prisma/client/runtime/library.js:111:12070) 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:9458) 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) { clientVersion: '5.14.0', errorCode: undefined } PrismaClientInitializationError: Invalid prisma.tags.findMany() invocation:

github-actions[bot] commented 3 months ago

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

besscroft commented 3 months ago

@liufq777 您好,请仔细检查您的数据库配置,谢谢!

besscroft commented 3 months ago

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

besscroft commented 2 months ago

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