You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running it, it says that the database isn't running - however it is, my app is live, I'm able to connect through MySQL Workbench, etc.
2024-Nov-26 15:05:27.207981
> [nextjs 8/10] RUN npx prisma generate --sql:
2024-Nov-26 15:05:27.207981
6.964 Error: Errors while reading sql files:
2024-Nov-26 15:05:27.207981
6.964
2024-Nov-26 15:05:27.207981
6.964 In prisma/sql/getBestSellingProductsByPeriod.sql:
2024-Nov-26 15:05:27.207981
6.964 Error: P1001
2024-Nov-26 15:05:27.207981
6.964
2024-Nov-26 15:05:27.207981
6.964 Can't reach database server at `x.y.z.w:5432`
2024-Nov-26 15:05:27.207981
6.964
2024-Nov-26 15:05:27.207981
6.964 Please make sure your database server is running at `x.y.z.w:5432`.
I've tried using both internal URL from Coolify and the public database URL, neither of them work. The database is also hosted on the same coolify instance.
@vendramini this is by design, docker build containers are not connected to any network, they run on the host
if you have mapped to host then serverip:5432 should still work, or you can use your db hostname if you add entry in /etc/hosts either manually or using a script
Error Message and Logs
Hello there!
I'm using new Prisma TypedSQL feature, which relies on an active database connection to generate its types: https://www.prisma.io/docs/orm/prisma-client/using-raw-sql/typedsql
When running it, it says that the database isn't running - however it is, my app is live, I'm able to connect through MySQL Workbench, etc.
I've tried using both internal URL from Coolify and the public database URL, neither of them work. The database is also hosted on the same coolify instance.
Steps to Reproduce
npx prisma generate --sql
during Dockerfile build time.Example Repository URL
No response
Coolify Version
v4.0.0-beta.372
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Alpine 3.20.3
Additional Information
No response
The text was updated successfully, but these errors were encountered: