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.

Better error message when our binaries do not support the OS they are running on

See original GitHub issue

When you are using an Alpine based docker image (e.g. image: node:10-alpine) you get this error message right now:

$ npx prisma2 generate
Error: Error: Command failed with ENOENT: /builds/myorg/myproj/node_modules/prisma2/query-engine-debian-openssl-1.1.x cli --dmmf
spawn /builds/myorg/myproj/node_modules/prisma2/query-engine-debian-openssl-1.1.x ENOENT
ERROR: Job failed: exit code 1

(via https://prisma.slack.com/archives/CKQTGR6T0/p1582043358493500)

We know we do not support Alpine (https://github.com/prisma/prisma2/issues/702). Can we provide a more helpful error message here?

(Another example of user reaction: https://github.com/prisma/prisma2/issues/899#issuecomment-551594015)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
Jolg42commented, Apr 15, 2020

It works! Screen Shot 2020-04-15 at 11 48 50

0reactions
janpiocommented, Mar 26, 2020

If you are getting this error message in an unexpected way (Alpine not working is expected, see https://github.com/prisma/prisma2/issues/702) please open a new issue and describe the whole problem. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Better runtime error handling for missing binaries #466 - GitHub
It's important that this error handling happens "lazily" i.e. not before the query engine is spawned which would result in an potential IO ......
Read more >
Why are some error messages in executable binary
Answering another question about how const string data was stored in an executable a question occured: Why are run time error messages stored...
Read more >
How can I resolve the error "cannot execute binary file"?
Usually that error message means Linux doesn't recognize the file as a shell script or as an executable file. Typically the cause is...
Read more >
Binary translation is incompatible with long mod...
1, A better error message than the text above would be a BIG HELP for your user ... Mac OS X is not...
Read more >
Windows Installer Error Messages (for Developers)
Message codes, message text, and remarks for Windows Installer error messages. Errors include ship errors, internal errors, ...
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