GithubHelp home page GithubHelp logo

Comments (6)

mcansh avatar mcansh commented on April 26, 2024 1

sorry for the delay @vivekimsit

2022-09-02T04:25:28.527 app[782a03cf] sin [info] Error: Invariant failed

means you're missing a secret on fly, the DATABASE_URL should be handled automatically by fly, but you'll need to set a SESSION_SECRET manually

from blues-stack.

mcansh avatar mcansh commented on April 26, 2024

do you have a package-lock.json?

from blues-stack.

vivekimsit avatar vivekimsit commented on April 26, 2024

I managed to check in package-lock.json manually but it now fails with 404 not found.

from blues-stack.

mcansh avatar mcansh commented on April 26, 2024

did you create an app on fly and does it match what's in fly.toml?

from blues-stack.

vivekimsit avatar vivekimsit commented on April 26, 2024

I think there is a limit on number of fly instanced in free tier. It seems I cannot have both app and app-staging both in free tier as I need to have db instance as well. I have only app-staging and not app and I am trying to deploy to dev.

from blues-stack.

vivekimsit avatar vivekimsit commented on April 26, 2024

I cleaned up everything, created new app and db from scratch but the deployment is still failing with new errors:

2022-09-02T04:25:27.699 app[782a03cf] sin [info] Starting init (commit: 249766e)...

2022-09-02T04:25:27.713 app[782a03cf] sin [info] Preparing to run: `docker-entrypoint.sh npm start` as root

2022-09-02T04:25:27.727 app[782a03cf] sin [info] 2022/09/02 04:25:27 listening on [fdaa:0:90ed:a7b:a754:782a:3cf:2]:22 (DNS: [fdaa::3]:53)

2022-09-02T04:25:28.205 app[782a03cf] sin [info] > start

2022-09-02T04:25:28.205 app[782a03cf] sin [info] > cross-env NODE_ENV=production node ./build/server.js

2022-09-02T04:25:28.511 app[782a03cf] sin [info] 🔌 setting up prisma client to sin.top2.nearest.of.dnb-db.internal:5432

2022-09-02T04:25:28.527 app[782a03cf] sin [info] /myapp/node_modules/tiny-invariant/dist/tiny-invariant.cjs.js:10

2022-09-02T04:25:28.527 app[782a03cf] sin [info] throw new Error(prefix);

2022-09-02T04:25:28.527 app[782a03cf] sin [info] ^

2022-09-02T04:25:28.527 app[782a03cf] sin [info] Error: Invariant failed

2022-09-02T04:25:28.527 app[782a03cf] sin [info] at invariant (/myapp/node_modules/tiny-invariant/dist/tiny-invariant.cjs.js:10:15)

2022-09-02T04:25:28.527 app[782a03cf] sin [info] at Object.<anonymous> (/myapp/build/index.js:138:36)

2022-09-02T04:25:28.527 app[782a03cf] sin [info] at Module._compile (node:internal/modules/cjs/loader:1126:14)

2022-09-02T04:25:28.527 app[782a03cf] sin [info] at Object.Module._extensions..js (node:internal/modules/cjs/loader:1180:10)

2022-09-02T04:25:28.527 app[782a03cf] sin [info] at Module.load (node:internal/modules/cjs/loader:1004:32)

2022-09-02T04:25:28.527 app[782a03cf] sin [info] at Function.Module._load (node:internal/modules/cjs/loader:839:12)

2022-09-02T04:25:28.527 app[782a03cf] sin [info] at Module.require (node:internal/modules/cjs/loader:1028:19)

2022-09-02T04:25:28.527 app[782a03cf] sin [info] at require (node:internal/modules/cjs/helpers:102:18)

2022-09-02T04:25:28.527 app[782a03cf] sin [info] at Object.<anonymous> (/myapp/build/server.js:41700:78)

2022-09-02T04:25:28.527 app[782a03cf] sin [info] at Module._compile (node:internal/modules/cjs/loader:1126:14)

2022-09-02T04:25:30.724 app[782a03cf] sin [info] Starting clean up.

from blues-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.