-
Notifications
You must be signed in to change notification settings - Fork 269
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
config folder permission #114
Comments
same here |
AHA! I have been trying to figure this out for months, and this has to be the cause! I understand how frustrating this is, because it can also affect your backups. I don't have a fix, but maybe a workaround. 🤔 So, I don't know why it's created as root, but I do know that recently the community introduced a securityContext feature, that should let you force the container and/or pod to run as a different user, for instance I currently have an issue open where I'm troubleshooting this in #335 if you have issues with it. |
@steled and @benedikt-bartscher how are you both deploying k8s? Are you using k3s? Are you using NFS? |
Hi @jessebot, sorry for the late response. I'm starting with a fresh new installation of the helm release 6.1.0 and the problem still exists. nextcloud:
securityContext:
runAsGroup: 33
runAsUser: 33
runAsNonRoot: true
readOnlyRootFilesystem: false
podSecurityContext:
fsGroup: 33 But this also didn't helped. My workaround is to create the folder before running nextcloud installation: sudo mkdir --mode 0755 -p /ext/persistent/nextcloud-staging/backup
sudo chown 1001:1001 -R /ext/persistent/nextcloud-staging/backup/
sudo mkdir --mode 0755 -p /ext/persistent/nextcloud-staging/server
sudo chown 1000:1000 -R /ext/persistent/nextcloud-staging/server/
sudo mkdir --mode 0755 -p /ext/persistent/nextcloud-staging/server/config
sudo chown www-data:www-data -R /ext/persistent/nextcloud-staging/server/config/
sudo mkdir --mode 0755 -p /ext/persistent/nextcloud-staging/server/custom_apps
sudo chown www-data:www-data -R /ext/persistent/nextcloud-staging/server/custom_apps/
sudo mkdir --mode 0755 -p /ext/persistent/nextcloud-staging/server/data
sudo chown www-data:www-data -R /ext/persistent/nextcloud-staging/server/data/
sudo mkdir --mode 0755 -p /ext/persistent/nextcloud-staging/server/html
sudo chown www-data:www-data -R /ext/persistent/nextcloud-staging/server/html/
sudo mkdir --mode 0755 -p /ext/persistent/nextcloud-staging/server/themes
sudo chown www-data:www-data -R /ext/persistent/nextcloud-staging/server/themes/
sudo mkdir --mode 0755 -p /ext/persistent/nextcloud-staging/postgresql
sudo chown 1001:1001 -R /ext/persistent/nextcloud-staging/postgresql/ |
Describe the bug
When I configure
configs
for the first start in myvalues.yaml
file the permissions of theconfig
folder are set toroot:root
Version of Helm and Kubernetes:
Which chart:
nextcloud:2.6.1
What happened:
I wanted to set
overwritehost
andoverwriteprotocol
via an extra config file created in/var/www/html/config/
.What you expected to happen:
nextcloud starts with
config.php
andcustom.config.php
How to reproduce it (as minimally and precisely as possible):
Put the following lines of code into the
values.yaml
file:Anything else we need to know:
The following error is seen in logs:
After applying the configuration the file/folder permissions looks like:
As a workaroung I can set the values via
extraEnv
:But this is not how I expect that it should work like.
The text was updated successfully, but these errors were encountered: