Skip to content

Conversation

@ggtrd
Copy link
Contributor

@ggtrd ggtrd commented Nov 10, 2025

Description of the change

Fix "chown: missing operand after '1001:1001'" on master and volume

Benefits

After activated persistence, and when using volumePermissions, both master and volume pods are failing due to "chown: missing operand after '1001:1001'"

Also, it seems the volume "data-0" doesn't work (maybe SeaweedFS waits for "data" and not "data-0" ?), but i've solved this on my own by setting "data" in values since i need only one volume. This last point is not part of the PR, just wanted to inform you.

Possible drawbacks

None

Applicable issues

None

Additional information

None

Checklist

  • Chart version bumped in Chart.yaml according to semver. This is not necessary when the changes only affect README.md files.
  • Title of the pull request follows this pattern [bitnami/<name_of_the_chart>] Descriptive title
  • All commits signed off and in agreement of Developer Certificate of Origin (DCO)

@carrodher
Copy link
Member

Thank you for initiating this pull request. We appreciate your effort. This is just a friendly reminder that signing your commits is important. Your signature certifies that you either authored the patch or have the necessary rights to contribute to the changes. You can find detailed information on how to do this in the “Sign your work” section of our contributing guidelines.

Feel free to reach out if you have any questions or need assistance with the signing process.

@ggtrd ggtrd force-pushed the main branch 2 times, most recently from fad2e62 to 4e5a6bc Compare November 12, 2025 09:57
@ggtrd
Copy link
Contributor Author

ggtrd commented Nov 12, 2025

hi @carrodher
Is it ok now ?

@carrodher carrodher added verify Execute verification workflow for these changes in-progress labels Nov 12, 2025
@github-actions github-actions bot removed the triage Triage is needed label Nov 12, 2025
@github-actions github-actions bot removed the request for review from carrodher November 12, 2025 11:53
@github-actions github-actions bot requested a review from fmulero November 12, 2025 11:53
Copy link
Collaborator

@fmulero fmulero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @ggtrd for bringing this issue to our attention and apply this fix.

I've just left a comment proposing a change, could you give it a glance?

- |
find {{ .Values.master.persistence.mountPath }} -mindepth 1 -maxdepth 1 -not -name ".snapshot" -not -name "lost+found" | xargs chown -R {{ .Values.master.containerSecurityContext.runAsUser }}:{{ .Values.master.podSecurityContext.fsGroup }}
mkdir -p {{ .Values.master.persistence.mountPath }}
chown -R {{ .Values.master.containerSecurityContext.runAsUser }}:{{ .Values.master.podSecurityContext.fsGroup }} {{ .Values.master.persistence.mountPath }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is not needed and we could face issues with special volumes like lost+found and .snapshot

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally agree, i've removed the find command

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The line not needed was the chown, not the find. I've just created a follow up for this PR #36397

Signed-off-by: Geoffrey Gontard <geoffrey.gontard@cosmotech.com>
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
@ggtrd
Copy link
Contributor Author

ggtrd commented Nov 24, 2025

Hey @fmulero i've removed the unwanted command as mentioned in your suggestion. I don't know if the failed job is a problem for you to go further? If yes, i'd like to understand what is the error

@fmulero fmulero added verify Execute verification workflow for these changes and removed verify Execute verification workflow for these changes labels Dec 1, 2025
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
Copy link
Collaborator

@fmulero fmulero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fmulero fmulero merged commit 20ad0ef into bitnami:main Dec 2, 2025
9 checks passed
@fmulero
Copy link
Collaborator

fmulero commented Dec 2, 2025

Hey @fmulero i've removed the unwanted command as mentioned in your suggestion. I don't know if the failed job is a problem for you to go further? If yes, i'd like to understand what is the error

The error was not related to your change, was an internal issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

seaweedfs solved verify Execute verification workflow for these changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants