truenas / apps

GNU Lesser General Public License v3.0
74 stars 22 forks source link

Cannot install Paperless-ngx when Postgres Data Storage type set to Host Path #869

Closed ramondsq closed 3 days ago

ramondsq commented 3 days ago

Affected App: Paperless-ngx App Version: 2.13.4 Version: 1.1.1 TrueNAS version: ElectricEel-24.10.0.2

Issue description:

I created a dataset with Apps preset for the Postgres Data Storage of Paperless-ngx. But once it is set, the Paperless-ngx can not be installed unless change the type back to ixVolume. image

Log

/var/log/app_lifecycle.log

paperless Pulled 
 Network ix-paperless-ngx_default  Creating
 Network ix-paperless-ngx_default  Created
 Volume "ix-paperless-ngx_redis-data"  Creating
 Volume "ix-paperless-ngx_redis-data"  Created
 Container ix-paperless-ngx-permissions-1  Creating
time="2024-11-11T00:26:47+08:00" level=warning msg="config `uid`, `gid` and `mode` are not supported, they will be ignored"
time="2024-11-11T00:26:47+08:00" level=warning msg="config `uid`, `gid` and `mode` are not supported, they will be ignored"
 Container ix-paperless-ngx-permissions-1  Created
 Container ix-paperless-ngx-redis-1  Creating
 Container ix-paperless-ngx-postgres-1  Creating
 Container ix-paperless-ngx-postgres-1  Created
 Container ix-paperless-ngx-redis-1  Created
 Container ix-paperless-ngx-paperless-1  Creating
 Container ix-paperless-ngx-paperless-1  Created
 Container ix-paperless-ngx-permissions-1  Starting
 Container ix-paperless-ngx-permissions-1  Started
 Container ix-paperless-ngx-permissions-1  Waiting
 Container ix-paperless-ngx-permissions-1  Waiting
 Container ix-paperless-ngx-permissions-1  Exited
 Container ix-paperless-ngx-redis-1  Starting
 Container ix-paperless-ngx-permissions-1  Exited
 Container ix-paperless-ngx-postgres-1  Starting
 Container ix-paperless-ngx-redis-1  Started
 Container ix-paperless-ngx-postgres-1  Started
 Container ix-paperless-ngx-permissions-1  Waiting
 Container ix-paperless-ngx-postgres-1  Waiting
 Container ix-paperless-ngx-redis-1  Waiting
 Container ix-paperless-ngx-permissions-1  Exited
 Container ix-paperless-ngx-postgres-1  Error
 Container ix-paperless-ngx-redis-1  Healthy
dependency failed to start: container ix-paperless-ngx-postgres-1 is unhealthy
S1lencio commented 3 days ago

Use a terminal and SSH / your server console to go to the folder and do sudo chown 999:999 postgres-path

ramondsq commented 3 days ago

Use a terminal and SSH / your server console to go to the folder and do sudo chown 999:999 postgres-path

it works for me, thank you.