Migration engine error
See original GitHub issueBug description
An error is thrown while running migrations using npx prisma migrate dev
How to reproduce
- Install the Prisma library and client using
yarn add prisma @prisma/client
. - Initialize the prisma using
npx prisma init
- Add the prisma schema.
- Run the migration using
npx prisma migrate dev
Expected behavior
Should run migrations without any errors.
Prisma information
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
model User {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
name String
email String
password String
}
model Bookmark {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
title String
description String?
link String
}
Environment & setup
- OS: Ubuntu 20.04 (WSL)
- Database: MySQL
- Node.js version: 16.13.2
Prisma Version
$ npx prisma -v
Error: Command failed with exit code 127: /home/azzazkhan/Documents/Development/books-api/node_modules/@prisma/engines/migration-engine-debian-openssl-1.0.x --version
/home/azzazkhan/Documents/Development/books-api/node_modules/@prisma/engines/migration-engine-debian-openssl-1.0.x: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory
"dependencies": {
"@prisma/client": "^3.11.1",
"prisma": "^3.11.1"
},
Issue Analytics
- State:
- Created a year ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Migration troubleshooting in production - Prisma
The following guide describes issues relating to Prisma Migrate that can occur in production, and how to resolve them. This guide does not...
Read more >2506981 - Error in phase RUN-OFFLINE-MIGRATION
During an upgrade using Software Update manager ( SUM ) tool stops in RUN-OFFLINE-MIGRATION phase with similar error messages in following logs: Directory: ......
Read more >Diagnose issues for MySQL | Database Migration Service
This error can occur when the replication process is paused for a long time, which causes the binlog position to be lost. Migration...
Read more >Prisma migration fail with supabase - Stack Overflow
I also asked this question on Prisma repo : https://github.com/prisma/prisma/issues/10575. The solution is to create a shadow database as ...
Read more >Common SQL errors during migration - See how to fix them
During database migration alot of SQL queries are run, temporary tables are created, data is moved etc. Sometimes errors happen during these queries...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tomhoule I had installed Anaconda and the
openssl
package was being mirrored from anaconda, after removing anaconda, it worked! Thanks!Hi @azzazkhan , do you have openssl installed? (
sudo apt install openssl
). If it’s there, in what version? It looks like the runtime path of the shared library isn’t reachable.