Deployment crashed
awart
HOBBYOP

2 years ago

Hi,
It's been now few days that our connection is lost, and recover by itself without any obvious reason. I tried to look through the chat but I couldn't find anything like the following error log. Any idea? Thank you very much

Error: Prisma error: Server has closed the connection.
at Object.prismaError (/app/nodemodules/@keystone-6/core/dist/graphql-errors-d408b25e.cjs.prod.js:16:10) at Object.runWithPrisma (/app/nodemodules/@keystone-6/core/dist/types-for-lists-2f8b1685.cjs.prod.js:31:25)
at async getFilteredItem (/app/nodemodules/@keystone-6/core/dist/createSystem-30490a72.cjs.prod.js:377:16) at async getAccessControlledItemForUpdate (/app/nodemodules/@keystone-6/core/dist/createSystem-30490a72.cjs.prod.js:538:16)
at async updateSingle (/app/nodemodules/@keystone-6/core/dist/createSystem-30490a72.cjs.prod.js:918:16) at async Promise.all (index 0) at async /app/nodemodules/@keystone-6/core/dist/types-for-lists-2f8b1685.cjs.prod.js:393:20
at async updateLastBlock (/app/.keystone/config.js:2172:3)
at async JsonRpcProvider. (/app/.keystone/config.js:2168:5)
error Command failed with exit code 1.

6 Replies

awart
HOBBYOP

2 years ago

Better with a screenshot, sorry.

Attachments


brody
EMPLOYEE

2 years ago

please make sure you aren't keeping idle connections around and close all connections when done with them.


awart
HOBBYOP

2 years ago

Hi Brody, thanks for your quick answer.
The deployment crashes, and we have to redeploy it manually.
Even after redeployment it's not able to connect, there are no idle connection at this time as the deployment was crashed.


brody
EMPLOYEE

2 years ago

how long after deployment does it crash again?


awart
HOBBYOP

2 years ago

Few seconds after it launched. See file attached

Attachments


brody
EMPLOYEE

2 years ago

please make sure your database is accessible publicly and that you have all your database related variables set correctly


Loading...