Set Nextcloud cronjob securityContext to run as www-data#589
Open
Set Nextcloud cronjob securityContext to run as www-data#589
Conversation
The cronjob was failing because it runs as root (uid 0) but config.php is owned by www-data (uid 33): Console has to be executed with the user that owns the file config/config.php Current user id: 0 Owner id of config.php: 33 On vanilla Kubernetes explicitly set runAsUser/runAsGroup to 33. On OpenShift leave empty to let SCC handle UID assignment. Ref: nextcloud/helm#740
3 tasks
Contributor
|
Member
Author
|
Tested on: |
mikeshootzz
approved these changes
Feb 13, 2026
TheBigLee
reviewed
Feb 13, 2026
| "enabled": comp.GetInstances() > 0, | ||
| "type": "cronjob", | ||
| "cronjob": map[string]any{ | ||
| "securityContext": cronjobSecurityContext, |
Member
There was a problem hiding this comment.
I assume that this won't have an impact and replace whatever the helm chart sets as default, if isOpenshift is true and therefore an empty map?
TheBigLee
approved these changes
Feb 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The cronjob was failing because it runs as root (uid 0) but config.php is owned by www-data (uid 33):
On vanilla Kubernetes explicitly set runAsUser/runAsGroup to 33.
On OpenShift leave empty to let SCC handle UID assignment.
Ref: nextcloud/helm#740
Checklist
/mergecomment.Component PR: vshn/component-appcat#1071