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.

Can't deploy to fly.io: postinstall.js EOF error

See original GitHub issue

Bug 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

  1. Set up a simple prisma “getting started” app (https://www.prisma.io/docs/getting-started/quickstart-typescript)
  2. Follow the fly.io deploy instructions:
    flyctl launch
    flyctl deploy
    
  3. 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:closed
  • Created 2 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
janpiocommented, May 7, 2021

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.

4reactions
mrkurtcommented, May 7, 2021

@janpio thank you for digging into this with us!

Read more comments on GitHub >

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

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