Can't deploy to fly.io: postinstall.js EOF error
See original GitHub issueBug description
Deploying to fly.io fails with the following error (this is the fly.io output):
[Parsing package.json]
[INFO] Parsing package.json
[INFO] No file to start server
[INFO] Using npm v6.14.12 from Node
[INFO] Installing node modules from ./package-lock.json
> @prisma/client@2.21.2 postinstall /workspace/node_modules/@prisma/client
> node scripts/postinstall.js
Prisma schema loaded from prisma/schema.prisma
Error executing lifecycle: unexpected EOF
npm ERR! code ELIFECYCLE
npm ERR! errno 1
Would be nice to know which file has the EOF issue but no logs indicate it.
How to reproduce
Here’s a repo: https://github.com/ryanflorence/fly-prisma
- Set up a simple prisma “getting started” app (https://www.prisma.io/docs/getting-started/quickstart-typescript)
- Follow the fly.io deploy instructions:
flyctl launch flyctl deploy
- You’ll get the error.
Prisma information
My prisma stuff runs fine locally, just followed the getting started guide.
Environment & setup
- OS: I assume fly.io is some *nix variety, uses heroku build pack
- Database: tried both postgres and sqlite, but you really don’t even get that far
- Node.js version: 14.16.1
- Prisma version: 2.21.2
(cc @mrkurt from fly.io)
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
I cannot deploy - Fly.io
I am trying to deploy a Remix Js application but I cannot. Some of the errors are listed below: failed to fetch an...
Read more >Fix list for IBM WebSphere Application Server V8.5
The following is a complete listing of fixes for V8.5 with the most ... with exception java.io.eofexception: unexpected end of zlib input stream...
Read more >Build failed error when deploying to fly.io - Stack Overflow
I just updated from Rails 6 and this app started in Rails 5 and there may be something misconfigured somewhere. What is root-workspace?...
Read more >Troubleshooting operating system and network issues
Troubleshooting an Infrastructure Management deployment ... <Post Install Resolution> Please verify whether file/folder is opened or locked ...
Read more >JDK-8212780.git.comment.patch - Java Bug System
+ */ + +package jdk.jpackage.internal; + +import java.io. ... getString("error.cannot-find-rpmbuild"), + TOOL_RPMBUILD_MIN_VERSION), + MessageFormat.format( ...
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
Oh look at this: https://winter-meadow-5740.fly.dev/prisma Prisma running on a fly.io deployment ❤️
Thanks so much for the collaboration on this @jeromegn. We will add an e2e test for this soon: https://github.com/prisma/e2e-tests/issues/1656 And thanks @pantharshit00 of course for connecting the dots to the Kernel version.
@ryanflorence If you want, you can try your initial project again - that should work now as well.
@janpio thank you for digging into this with us!