Better error message when our binaries do not support the OS they are running on
See original GitHub issueWhen 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:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top 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 >
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 Free
Top 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

It works!
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.