prisma migrate dev (prisma+postgres://accelerate.prisma-data) P1011: Error opening a TLS connection

Hi team, I have setup a prisma-data db and recently I'm getting error when prisma migrate, don't know if it's something of my computer setup or it's happening to others. pnpm prisma migrate dev Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma Datasource "db": PostgreSQL database "postgres", schema "public" at "accelerate.prisma-data.net" Error: P1011: Error opening a TLS connection: The certificate was not trusted.
10 Replies
Prisma AI Help
You decided to hold for human wisdom. We'll chime in soon! Meanwhile, #ask-ai is there if you need a quick second opinion.
Nurul
Nurul7d ago
Hey @Juan Raya Can you share with me your GitHub handle or the email id with which you signed up? I would like to take a look at the logs to debug this
Juan Raya
Juan RayaOP7d ago
I signed with [email protected] to prisma postgres more context: prisma and prisma/client 6.6.0 using prisma-data: DATABASE_URL="prisma+postgres://accelerate.prisma-data.net/?api_key=ey... the db is working, i can connect through tunnel, but i can not update schema through migrate i tried a few things with my computer certificates but none of that worked (mac)
Nurul
Nurul7d ago
Thanks for sharing the email. This is happening on production environment of project "petricor"? I am sharing this with our Prisma Postgres team to check
Juan Raya
Juan RayaOP7d ago
yess both development and production environments can not prisma migrate
Nurul
Nurul7d ago
Thank you for confirming. I have raised this with team internally. The team would like to know if you were getting this same error before you made changes with certificates, or was it a different error?
i tried a few things with my computer certificates
Can you elaborate on what you tried? Based on our logs, everything is looking normal so any additional information you can provide will be very helpful
Juan Raya
Juan RayaOP7d ago
yeah I tried different things but I still have the same error. I think I updated openssl and few more things, if all looks normal on your end i will try with other computer and see what happen, thanks for the help!
Nurul
Nurul6d ago
Do let us know in case the same error occurs in other computer as well
Juan Raya
Juan RayaOP6d ago
it worked in my linux machine! so something I messed up with certificates/openssl in my mac, I will try to figure out, thanks!! do you know by chance which certificates ssl tsl prisma+postgres are required? nvm it's working now, I think I didn't change anything but it works now 🙂
Nurul
Nurul5d ago
Glad to hear that! 🙏

Did you find this page helpful?