invoiceninja / dockerfiles

Docker files for Invoice Ninja
https://hub.docker.com/r/invoiceninja/invoiceninja
GNU General Public License v2.0
398 stars 264 forks source link

Permissions Error with Lost+Found Directory #553

Closed dlford closed 7 months ago

dlford commented 7 months ago

Setup information

Helm

Describe the bug 500 error on landing page

To reproduce Steps to reproduce the behavior:

  1. Set up a k8s cluster
  2. Install Longhorn storage controller
  3. Deploy the Helm chart
  4. Visit the landing page
  5. See the 500 error

Expected behavior The site has no errors

Screenshots/logs

production.ERROR: RecursiveDirectoryIterator::__construct(/var/www/app/public/lost+found): Failed to open directory: Permission denied {"exception":"[object] (UnexpectedValueException(code: 0): RecursiveDirectoryIterator::__construct(/var/www/app/public/lost+found): Failed to open directory: Permission denied at /var/www/app/app/Utils/SystemHealth.php:134)

Docker/Kubernetes/Helm:

Additional context

Longhorn creates an ext4 partitioned volume for each pv, so the lost+found directory exists at the root of each volume and cannot be removed.

lwj5 commented 7 months ago

Could you set volumePermissions.enabled to true

maybe longhorn does not support fsgroup

dlford commented 7 months ago

Could you set volumePermissions.enabled to true

maybe longhorn does not support fsgroup

Well that was my bad, volumePermissions.enabled does the trick, sorry for wasting your time!