nicholaswilde / helm-charts

My collection of Helm charts.
https://artifacthub.io/packages/search?repo=nicholaswilde
Apache License 2.0
70 stars 32 forks source link

[WikiJS] Running as wrong user #22

Closed mattkgwhite closed 3 years ago

mattkgwhite commented 3 years ago

WikiJS is running as the wrong user, and currently runs as user abc as shown the below printscreen:

https://i.imgur.com/0AKAbFh.png

This then results in the below error:

https://i.imgur.com/oDVpfOF.png

nicholaswilde commented 3 years ago

I believe this may be a problem with the linuxserver.io image. Perhaps the issue needs to made over there? https://github.com/linuxserver/docker-wikijs/issues

nicholaswilde commented 3 years ago

Perhaps you just need to change the PUID and GPID values. https://docs.linuxserver.io/general/understanding-puid-and-pgid

ChipWolf commented 3 years ago

Surely the PUID or GPID should match whatever the securityContext is on the mount @nicholaswilde? Can you successfully run this chart on your end?

nicholaswilde commented 3 years ago

I will take a look at it tonight.

nicholaswilde commented 3 years ago

I'm getting the same error when trying to run the installation both on my cluster as well as just running the image using docker-compose.yaml with an empty volume. I'll try to mount a volume tomorrow and see how it goes. :wink:

nicholaswilde commented 3 years ago

It looks like this might related to this pr.

ChipWolf commented 3 years ago

It looks like this might related to this pr.

Turns out it's not, already verified, not applicable to k8s deployments. @krangence and I have tested this thoroughly. It's due to the securityContext.fsGroup not set in accordance with the application user (abc, uid#911) in the container.