truenas / charts

TrueNAS SCALE Apps Catalogs & Charts
BSD 3-Clause "New" or "Revised" License
256 stars 250 forks source link

[BUG] Paperless-ngx #2137

Closed pabloeisenhut closed 5 months ago

pabloeisenhut commented 5 months ago

Fresh installation with Host Path Volumes

Back-off restarting failed container paperless-ngx in pod paperless-ngx

stavros-k commented 5 months ago

Hello, please check https://github.com/truenas/charts/issues/1997

pabloeisenhut commented 5 months ago

Hey, I'm not sure if I've understood everything correctly... But I tried the following and it didn't work: Fresh installation even without Host Path volumes. GID 1000 did not work either and is somehow not a nice solution. I use fast SSDs so the problem can't be narrowed down to HDD.

pabloeisenhut commented 5 months ago

But I have also come across a new error: Startup probe failed: Get "http://ip:port/": dial tcp ip:port: connect: connection refused

stavros-k commented 5 months ago

In this case, I'd need more information. eg logs from the container. The probes failing are a side effect, but we'd need the logs to see why those are failing.

Thanks

pabloeisenhut commented 5 months ago

I also get the:

Paperless-ngx docker container starting...
Mapping UID and GID for paperless:paperless to 568:568

But this makes no sense if I only use ixVolumes.

pabloeisenhut commented 5 months ago

After a while it worked, but with Host Path volumes it still doesn't work. Do I understand correctly that you can only use paperless-ngx with your own host path if you have created a user/group with the GID 1000 and applied it to the directories?

stavros-k commented 5 months ago

After a while it worked, but with Host Path volumes it still doesn't work. Do I understand correctly that you can only use paperless-ngx with your own host path if you have created a user/group with the GID 1000 and applied it to the directories?

You can use other UID/GID, but if you do paperless will re-map those id's and it will take significant time to start. Paperless container do this on every startup.

It does not make a different if you are using hostpath or ixVolumes. as the re-mapping is being done even on non-persistent files.