[GH-ISSUE #515] Cannot run npx prisma migrate deploy #134

Closed
opened 2026-02-26 18:45:30 +03:00 by kerem · 3 comments
Owner

Originally created by @e7172 on GitHub (Oct 3, 2023).
Original GitHub issue: https://github.com/documenso/documenso/issues/515

Hi, im trying to deploy Documenso but i need some help.

Im following this tutorial

And when i get to:
npx prisma migrate deploy

It says:

Prisma schema loaded from schema.prisma
Datasource "db": PostgreSQL database "postgres", schema "public" at "aws-0-us-east-1.pooler.supabase.com:6543"
Error: P1017: Server has closed the connection.

First I checked that the connection to the database was correct, which is fine, then I looked at the logs and found no errors.
I guess it's a schema error, but I can't figure out how to solve it and move on.

Any help is appreciate

Originally created by @e7172 on GitHub (Oct 3, 2023). Original GitHub issue: https://github.com/documenso/documenso/issues/515 Hi, im trying to deploy Documenso but i need some help. Im following this [tutorial](https://dev.to/documenso/deploying-documenso-with-vercel-supabase-and-resend-foi) **And when i get to:** `npx prisma migrate deploy` **It says:** ```Environment variables loaded from .env Prisma schema loaded from schema.prisma Datasource "db": PostgreSQL database "postgres", schema "public" at "aws-0-us-east-1.pooler.supabase.com:6543" Error: P1017: Server has closed the connection. ``` First I checked that the connection to the database was correct, which is fine, then I looked at the logs and found no errors. I guess it's a schema error, but I can't figure out how to solve it and move on. _Any help is appreciate_
kerem closed this issue 2026-02-26 18:45:30 +03:00
Author
Owner

@ephraimduncan commented on GitHub (Oct 5, 2023):

@e7172 Can you try npx prisma db push?

<!-- gh-comment-id:1749802025 --> @ephraimduncan commented on GitHub (Oct 5, 2023): @e7172 Can you try `npx prisma db push`?
Author
Owner

@e7172 commented on GitHub (Oct 8, 2023):

Same problem!

Environment variables loaded from .env
Prisma schema loaded from schema.prisma
Datasource "db": PostgreSQL database "postgres", schema "public" at "aws-0-us-east-1.pooler.supabase.com:6543"

Error: P1017: Server has closed the connection.
<!-- gh-comment-id:1752151672 --> @e7172 commented on GitHub (Oct 8, 2023): Same problem! ``` Environment variables loaded from .env Prisma schema loaded from schema.prisma Datasource "db": PostgreSQL database "postgres", schema "public" at "aws-0-us-east-1.pooler.supabase.com:6543" Error: P1017: Server has closed the connection. ```
Author
Owner

@e7172 commented on GitHub (Oct 8, 2023):

Solved, it was a problem with default port in Supabase connection string which is 6543, instead db is in port 5432.
Thank you all,

<!-- gh-comment-id:1752158748 --> @e7172 commented on GitHub (Oct 8, 2023): Solved, it was a problem with default port in Supabase connection string which is 6543, instead db is in port 5432. Thank you all,
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/documenso#134
No description provided.