Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preflight (exit status 1; not expected) #206

Open
spiner2000 opened this issue Nov 12, 2024 · 1 comment
Open

preflight (exit status 1; not expected) #206

spiner2000 opened this issue Nov 12, 2024 · 1 comment

Comments

@spiner2000
Copy link

Hello!

Default setup with zitadel. I'm getting a lot of spam in the log:

datalens-us  | 2024-11-12 14:24:53,516 INFO exited: preflight (exit status 1; not expected)
datalens-us  | 2024-11-12 14:24:54,518 INFO spawned: 'preflight' with pid 241
datalens-us  | 2024-11-12 14:24:54,520 INFO success: preflight entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
datalens-us  | 2024-11-12 14:24:55,217 INFO exited: preflight (exit status 1; not expected)

When I run the command '/bin/sh scripts/preflight.sh' from inside the container, I get the following output (maybe this might be the cause of the problem):

....
[14:26:42 UTC] INFO: AppConfig details
    appName: "united-storage"
    appEnv: "prod"
    appInstallation: "opensource"
    appDevMode: true
[14:26:42 UTC] INFO: Core-db is up and running!
node:internal/modules/cjs/loader:1228
  throw err;
  ^

Error: Cannot find module 'source-map-support'
Require stack:
- /opt/app/dist/server/index.js
- /opt/app/dist/server/db/scripts/migrate.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1225:15)
    at Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/opt/app/dist/server/index.js:25:5)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Module.require (node:internal/modules/cjs/loader:1311:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/opt/app/dist/server/index.js',
    '/opt/app/dist/server/db/scripts/migrate.js'
 ]
}

Node.js v20.18.0
@spiner2000
Copy link
Author

As far as I can see from the pull requests, the issue might already be resolved in the latest builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant