Comments (6)
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.
do you have a package-lock.json
?
from blues-stack.
I managed to check in package-lock.json
manually but it now fails with 404
not found.
from blues-stack.
did you create an app on fly and does it match what's in fly.toml?
from blues-stack.
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.
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)
- Hydration error: Initial UI does not match server HOT 3
- New Defer API does not work with blues-stack HOT 11
- When Using Express Adapter Throwing Responses will break the app HOT 1
- great repro
- Race condition in npm run dev HOT 5
- Base Repo OOMs on Fly.io HOT 7
- Fly.io -> Error: Can't reach database server HOT 7
- `npm run typecheck` fails on fresh project HOT 7
- blues-stack 2.0.0-pre.5 - LiveReload is not working HOT 2
- v2_dev leaves one node process behind after shutdown HOT 1
- Scripts variant in README to support the Yarn inclined
- Deployment issue. Node version >18 needed
- Update server.ts to watch version.txt
- Error when trying to run the docker image HOT 3
- Latest server.js code breaks HDR HOT 1
- Some URLs in the `/build` path were 404 not found after making changes in development mode HOT 1
- Vite support
- Build failed while running npm run build on blues stack HOT 2
- Install an esm package dependency
- Error Code 134 on Deploy of Base Repo HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blues-stack.