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

Node runtime error on Coolify #9147

Closed
neznayer opened this issue Jan 24, 2025 · 2 comments
Closed

Node runtime error on Coolify #9147

neznayer opened this issue Jan 24, 2025 · 2 comments
Assignees
Labels

Comments

@neznayer
Copy link

Describe the bug

I was trying to deploy Unleash Free version to Coolify,
but cannot make it work (see logs from unleash container)
I am deploying Unleash as a Docker container, cloned from this repository, not as a Built-in service in coolify.

My current docker-compose.yml looks like this, but I had same error log for unchanged docker-compose.yml as well.

Steps to reproduce the bug

  1. Fork this repository,
  2. deploy to coolify as Docker Compose

Expected behavior

Unleash works, no runtime errors in the container

Logs, error output, etc.

2025-01-24T03:04:22.925333760Z /unleash/build/dist/lib/create-config.js:231
2025-01-24T03:04:22.925372962Z         const [environment = '*'] = rest.split('.');
2025-01-24T03:04:22.925376791Z                                          ^
2025-01-24T03:04:22.925379674Z 
2025-01-24T03:04:22.925382590Z TypeError: Cannot read properties of undefined (reading 'split')
2025-01-24T03:04:22.925385416Z     at /unleash/build/dist/lib/create-config.js:231:42
2025-01-24T03:04:22.925388150Z     at Array.map (<anonymous>)
2025-01-24T03:04:22.925391211Z     at loadTokensFromString (/unleash/build/dist/lib/create-config.js:229:34)
2025-01-24T03:04:22.925393939Z     at loadInitApiTokens (/unleash/build/dist/lib/create-config.js:248:12)
2025-01-24T03:04:22.925396799Z     at createConfig (/unleash/build/dist/lib/create-config.js:350:27)
2025-01-24T03:04:22.925399478Z     at Object.start (/unleash/build/dist/lib/server-impl.js:137:53)
2025-01-24T03:04:22.925402184Z     at Object.<anonymous> (/unleash/index.js:7:9)
2025-01-24T03:04:22.925405011Z     at Module._compile (node:internal/modules/cjs/loader:1469:14)
2025-01-24T03:04:22.925407716Z     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
2025-01-24T03:04:22.925410441Z     at Module.load (node:internal/modules/cjs/loader:1288:32)
2025-01-24T03:04:22.925413202Z 
2025-01-24T03:04:22.925415749Z Node.js v20.18.1

Screenshots

No response

Additional context

No response

Unleash version

latest

Subscription type

None

Hosting type

Self-hosted

SDK information (language and version)

No response

@neznayer neznayer added the bug label Jan 24, 2025
@FredrikOseberg FredrikOseberg moved this from New to Investigating in Issues and PRs Jan 24, 2025
@FredrikOseberg FredrikOseberg moved this from Investigating to In Progress in Issues and PRs Jan 24, 2025
@FredrikOseberg FredrikOseberg moved this from In Progress to Investigating in Issues and PRs Jan 24, 2025
@chriswk
Copy link
Member

chriswk commented Jan 24, 2025

Hi, from your error message it seems like your tokens are not valid. tokens should be formatted like
PROJECT:ENVIRONMENT.<randomstring>, from your error message it seems like you have a token without a : since the extraction of the environment is undefined.

@neznayer
Copy link
Author

neznayer commented Jan 24, 2025

@chriswk Thank you! I couldn't run it with separate PG, but it worked with db service included in the compose file.

@github-project-automation github-project-automation bot moved this from Investigating to Done in Issues and PRs Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

No branches or pull requests

2 participants