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

[bitnami/mongodb] error converting YAML to JSON: yaml: line 58: block sequence entries are not allowed in this context #25682

Closed
psycotrompus opened this issue May 11, 2024 · 4 comments · Fixed by #26120
Assignees
Labels
mongodb solved tech-issues The user has a technical issue about an application

Comments

@psycotrompus
Copy link

Name and Version

bitnami/mongodb 15.3.0

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Local KIND Cluster in Windows 11
  2. values.yaml file:
architecture: standalone
useStatefulSet: true
auth:
  enabled: false
  rootUser: admin
  rootPassword: Passw0rd
persistence:
  enabled: true
  size: 2Gi
volumePermissions:
  enabled: true
resources:
  requests:
    cpu: 200m
    memory: 250Mi
  1. Run helm install mongodb bitnami/mongodb --values=values.yaml
  2. Error:
Error: INSTALLATION FAILED: YAML parse error on mongodb/templates/standalone/dep-sts.yaml: error converting YAML to JSON: yaml: line 58: block sequence entries are not allowed in this context

Are you using any custom parameters or values?

architecture: standalone
useStatefulSet: true
auth:
  enabled: false
  rootUser: admin
  rootPassword: Passw0rd
persistence:
  enabled: true
  size: 2Gi
volumePermissions:
  enabled: true
resources:
  requests:
    cpu: 200m
    memory: 250Mi

What is the expected behavior?

bitnami/mongodb chart should be installed without any errors.

What do you see instead?

Error message in command prompt:

Error: INSTALLATION FAILED: YAML parse error on mongodb/templates/standalone/dep-sts.yaml: error converting YAML to JSON: yaml: line 58: block sequence entries are not allowed in this context

Additional information

No response

@psycotrompus psycotrompus added the tech-issues The user has a technical issue about an application label May 11, 2024
@github-actions github-actions bot added the triage Triage is needed label May 11, 2024
@github-actions github-actions bot removed the triage Triage is needed label May 13, 2024
@github-actions github-actions bot assigned rafariossaa and unassigned javsalgar May 13, 2024
@psycotrompus
Copy link
Author

unable to reproduce the same error on version 15.2.0

@bpedersen2
Copy link

I also get this error when trying to upgrade from 15.1.7 to 15.4.3

@psycotrompus
Copy link
Author

I also get this error when trying to upgrade from 15.1.7 to 15.4.3

downgrade to version 15.2.0

@MatteoPiovanelli-Laser
Copy link

looks to be an error with the stuff related to volumePermissions that has been moved to helpers.tpl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mongodb solved tech-issues The user has a technical issue about an application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants