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.

Error: Migration engine exited.

See original GitHub issue
<div type='discussions-op-text'>

Originally posted by Thebluedragon7 September 16, 2022 Local Node version: v16.17.0 Cpanel node version: v16.17.0 Prisma & prisma/client: v4.2.1

I’m using MySQL as my db for Prisma. I set the exact same user, password and database name on local SQL server and Cpanel’s SQL server

When I run migration in my local machine.

npx prisma migrate dev --name init

It works great. but I had no luck doing so in remote server.

I used SSH terminal to do so.

Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": MySQL database "myDB" at "127.0.0.1:3306"

Error: Migration engine exited.

on my SSH Shell, I run

npx prisma -v

I get the following output

Environment variables loaded from .env
prisma                  : 4.3.1
@prisma/client          : 4.3.1
Current platform        : debian-openssl-1.1.x
Query Engine (Node-API) : libquery-engine c875e43600dfe042452e0b868f7a48b817b9640b (at ../nodevenv/dilmayatrek.com/16/lib/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node)
Migration Engine        : migration-engine-cli c875e43600dfe042452e0b868f7a48b817b9640b (at ../nodevenv/dilmayatrek.com/16/lib/node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x)
Introspection Engine    : introspection-core c875e43600dfe042452e0b868f7a48b817b9640b (at ../nodevenv/dilmayatrek.com/16/lib/node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x)
Format Binary           : prisma-fmt c875e43600dfe042452e0b868f7a48b817b9640b (at ../nodevenv/dilmayatrek.com/16/lib/node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x)
Format Wasm             : @prisma/prisma-fmt-wasm 4.3.0-32.c875e43600dfe042452e0b868f7a48b817b9640b
Default Engines Hash    : c875e43600dfe042452e0b868f7a48b817b9640b
Studio                  : 0.473.0
</div>

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Thebluedragon7commented, Sep 22, 2022

Hi, could you please tell us more about the server you’re currently connecting to? I.e., the CPanel version, the exact operating system it’s running on, and which host it’s installed in. Thanks.

Hi, The Cpanel version was 106.0, running on Cloudlinux OS. I thought it was some sort of problem with the database there, but even when I tried sqlite as my datasource provider, it would still give me the same error.

It’s almost been a week, so I cancelled the cpanel hosting. I’m using a VPS and it works great with it.

0reactions
janpiocommented, Sep 22, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Migration engine error · Issue #12570 · prisma/prisma - GitHub
Bug description An error is thrown while running migrations using npx prisma migrate dev How to reproduce Install the Prisma library and ...
Read more >
Error message reference - Prisma
Prisma Client throws a PrismaClientRustPanicError exception if the underlying engine crashes and exits with a non-zero exit code. In this case, the Prisma ......
Read more >
Migration Manager Exit Codes - Tranxition
Exit codes are used during Migration Manager automation to provide the technician performing the automation more information that can assist in resolving ...
Read more >
Consequences of Different Error or Exit Codes (Sun N1 Grid ...
16. Releasing processor set. t. Job ran, processor set could not be released ; 24. Migrating (checkpointing jobs). t. Job ran, job will...
Read more >
2 Server Error Message Reference - MySQL :: Developer Zone
Message: Got error %d - '%s' from storage engine. Check the %d value to see what the OS error means. ... Message: Can...
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