question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Migration engine error

See original GitHub issue

Bug description

An error is thrown while running migrations using npx prisma migrate dev

How to reproduce

  1. Install the Prisma library and client using yarn add prisma @prisma/client.
  2. Initialize the prisma using npx prisma init
  3. Add the prisma schema.
  4. 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:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
azzazkhancommented, Mar 30, 2022

@tomhoule I had installed Anaconda and the openssl package was being mirrored from anaconda, after removing anaconda, it worked! Thanks!

1reaction
tomhoulecommented, Mar 30, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found