Skip to content

fix KUBERO_USERS variable in .env.template - #799

Open
marcel2012 wants to merge 1 commit into
kubero-dev:mainfrom
marcel2012:fix-KUBERO_USERS-variable-in-.env.template
Open

marcel2012 wants to merge 1 commit into
kubero-dev:mainfrom
marcel2012:fix-KUBERO_USERS-variable-in-.env.template

Conversation

@marcel2012

Copy link
Copy Markdown

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

This fix the issue in .env.template. Uncommenting that line caused error:

[Kubero] 30898  - 09/14/2026, 12:50:01 AM     LOG [DatabaseService] Admin user created successfully.
<anonymous_script>:1
[{id:1,method:local,username:qwer,password:qwer,apitoken:nJZ5S1S7dbx8a6hjSU4n,insecure:true}]
  ^

SyntaxError: Expected property name or '}' in JSON at position 2 (line 1 column 3)
    at JSON.parse (<anonymous>)
    at DatabaseService.MigrateLegacyUsers (/home/test/kuber-local/server/src/database/database.service.ts:260:24)
    at async DatabaseService.DBinit (/home/test/kuber-local/server/src/database/database.service.ts:33:5)
    at async bootstrap (/home/test/kuber-local/server/src/main.ts:33:3)

Type of change

Please delete options that are not relevant.

  • Template (non-breaking change which adds a template)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • I've started dev server with yarn dev

Test Configuration:

  • Operator Version:
  • Kubernetes Version:
  • Kubero CLI Version (if applicable):

Checklist:

  • I removed unnecessary debug logs
  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I documented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

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

Successfully merging this pull request may close these issues.

1 participant