truenas / charts

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

nextcloud-redis mkdir: cannot create directory '/opt/bitnami/redis/tmp': Permission denied #2555

Closed alpharesearch closed 3 months ago

alpharesearch commented 3 months ago

This is a new install, following this guide: https://www.truenas.com/docs/scale/scaletutorials/apps/communityapps/installnextcloudmedia/

OS Version:TrueNAS-SCALE-23.10.2

Name: nextcloud App Version: 29.0.1 Chart Version: 2.0.7 Last Updated: N/A

I created these 5 data sets using app profile: /mnt/.../nextcloud/ /mnt/.../nextcloud/appdata /mnt/.../nextcloud/userdata /mnt/.../nextcloud/pgdata /mnt/.../nextcloud/pgbackup

I added www-data and admin user to ACL of these: /mnt/.../nextcloud/ /mnt/.../nextcloud/appdata /mnt/.../nextcloud/userdata

Nextcloud is stuck in Deploying.

Here an excerpt from the logs:

2024-06-09 12:25:09 Back-off restarting failed container nextcloud in pod nextcloud-redis-6b47cbc86c-gg2b9_ix-nextcloud(b8aa5d0f-8547-4d8a-944e-bc3505acf145)

2024-06-09 12:25:40.040220-04:00mkdir: cannot create directory '/opt/bitnami/redis/tmp': Permission denied

Here are the full logs:

2024-06-09 12:33:50
Job has reached the specified backoff limit
2024-06-09 12:33:50
Saw completed job: nextcloud-nextcloud-cron-28632510, status: Failed
2024-06-09 12:33:27
Started container nextcloud
2024-06-09 12:33:26
Created container nextcloud
2024-06-09 12:33:25
Add eth0 [172.16.1.141/16] from ix-net
2024-06-09 12:33:25
Container image "nextcloud:29.0.1" already present on machine
2024-06-09 12:33:24
Created pod: nextcloud-nextcloud-cron-28632510-pj8rk
2024-06-09 12:33:24
Successfully assigned ix-nextcloud/nextcloud-nextcloud-cron-28632510-pj8rk to ix-truenas
2024-06-09 12:31:54
Container image "nextcloud:29.0.1" already present on machine
2024-06-09 12:31:54
Created container nextcloud
2024-06-09 12:31:54
Started container nextcloud
2024-06-09 12:31:53
Created pod: nextcloud-nextcloud-cron-28632510-hlrnz
2024-06-09 12:31:53
Successfully assigned ix-nextcloud/nextcloud-nextcloud-cron-28632510-hlrnz to ix-truenas
2024-06-09 12:31:53
Add eth0 [172.16.1.140/16] from ix-net
2024-06-09 12:31:04
Created container nextcloud
2024-06-09 12:31:04
Started container nextcloud
2024-06-09 12:31:03
Add eth0 [172.16.1.139/16] from ix-net
2024-06-09 12:31:03
Container image "nextcloud:29.0.1" already present on machine
2024-06-09 12:31:02
Created pod: nextcloud-nextcloud-cron-28632510-ll8fp
2024-06-09 12:31:02
Successfully assigned ix-nextcloud/nextcloud-nextcloud-cron-28632510-ll8fp to ix-truenas
2024-06-09 12:30:33
Container image "nextcloud:29.0.1" already present on machine
2024-06-09 12:30:33
Created container nextcloud
2024-06-09 12:30:33
Started container nextcloud
2024-06-09 12:30:32
Created pod: nextcloud-nextcloud-cron-28632510-rmcb2
2024-06-09 12:30:32
Successfully assigned ix-nextcloud/nextcloud-nextcloud-cron-28632510-rmcb2 to ix-truenas
2024-06-09 12:30:32
Add eth0 [172.16.1.138/16] from ix-net
2024-06-09 12:30:15
Started container nextcloud
2024-06-09 12:30:14
Container image "nextcloud:29.0.1" already present on machine
2024-06-09 12:30:14
Created container nextcloud
2024-06-09 12:30:13
Created pod: nextcloud-nextcloud-cron-28632510-ccsdz
2024-06-09 12:30:13
Successfully assigned ix-nextcloud/nextcloud-nextcloud-cron-28632510-ccsdz to ix-truenas
2024-06-09 12:30:13
Add eth0 [172.16.1.137/16] from ix-net
2024-06-09 12:30:02
Created container nextcloud
2024-06-09 12:30:02
Started container nextcloud
2024-06-09 12:30:00
Created job nextcloud-nextcloud-cron-28632510
2024-06-09 12:30:00
Created pod: nextcloud-nextcloud-cron-28632510-645mz
2024-06-09 12:30:00
Successfully assigned ix-nextcloud/nextcloud-nextcloud-cron-28632510-645mz to ix-truenas
2024-06-09 12:30:00
Add eth0 [172.16.1.136/16] from ix-net
2024-06-09 12:30:00
Container image "nextcloud:29.0.1" already present on machine
2024-06-09 12:25:20
Created container nextcloud-init-redis-wait
2024-06-09 12:25:20
Started container nextcloud-init-redis-wait
2024-06-09 12:25:19
Container image "bitnami/redis:7.0.11" already present on machine
2024-06-09 12:25:09
Back-off restarting failed container nextcloud in pod nextcloud-redis-6b47cbc86c-gg2b9_ix-nextcloud(b8aa5d0f-8547-4d8a-944e-bc3505acf145)
2024-06-09 12:25:01
Created container nextcloud
2024-06-09 12:25:01
Started container nextcloud
2024-06-09 12:25:00
Started container nextcloud-init-postgres-wait
2024-06-09 12:25:00
Created container nextcloud-init-01-wait-server
2024-06-09 12:25:00
Started container nextcloud-init-01-wait-server
2024-06-09 12:24:59
Created container nextcloud-init-postgres-wait
2024-06-09 12:24:59
Created container nextcloud
2024-06-09 12:24:59
Started container nextcloud
2024-06-09 12:24:58
Add eth0 [172.16.1.133/16] from ix-net
2024-06-09 12:24:58
Add eth0 [172.16.1.135/16] from ix-net
2024-06-09 12:24:58
Add eth0 [172.16.1.134/16] from ix-net
2024-06-09 12:24:58
Container image "bash:4.4.23" already present on machine
2024-06-09 12:24:58
Container image "postgres:15.2" already present on machine
2024-06-09 12:24:58
Container image "postgres:13.1" already present on machine
2024-06-09 12:24:58
Container image "bitnami/redis:7.0.11" already present on machine
2024-06-09 12:24:57
Scaled up replica set nextcloud-7df4778d8d to 1
2024-06-09 12:24:57
Scaled up replica set nextcloud-nginx-6c9c8669c9 to 1
2024-06-09 12:24:57
Created pod: nextcloud-7df4778d8d-hpdw9
2024-06-09 12:24:57
Created pod: nextcloud-nginx-6c9c8669c9-bk8jg
2024-06-09 12:24:57
Successfully assigned ix-nextcloud/nextcloud-7df4778d8d-hpdw9 to ix-truenas
2024-06-09 12:24:57
Successfully assigned ix-nextcloud/nextcloud-nginx-6c9c8669c9-bk8jg to ix-truenas
2024-06-09 12:24:57
Scaled up replica set nextcloud-postgres-f7f6864c6 to 1
2024-06-09 12:24:57
Created pod: nextcloud-postgres-f7f6864c6-rpc8s
2024-06-09 12:24:57
Successfully assigned ix-nextcloud/nextcloud-postgres-f7f6864c6-rpc8s to ix-truenas
2024-06-09 12:24:57
Scaled up replica set nextcloud-redis-6b47cbc86c to 1
2024-06-09 12:24:57
Created pod: nextcloud-redis-6b47cbc86c-gg2b9
2024-06-09 12:24:57
Successfully assigned ix-nextcloud/nextcloud-redis-6b47cbc86c-gg2b9 to ix-truenas
2024-06-09 12:24:57
Add eth0 [172.16.1.132/16] from ix-net

Application Name:nextcloudPod Name:nextcloud-redis-6b47cbc86c-gg2b9Container Name:nextcloud

2024-06-09 12:25:40.011211-04:00redis 16:25:40.01 
2024-06-09 12:25:40.013006-04:00redis 16:25:40.01 Welcome to the Bitnami redis container
2024-06-09 12:25:40.014337-04:00redis 16:25:40.01 Subscribe to project updates by watching https://github.com/bitnami/containers
2024-06-09 12:25:40.015610-04:00redis 16:25:40.01 Submit issues and feature requests at https://github.com/bitnami/containers/issues
2024-06-09 12:25:40.016827-04:00redis 16:25:40.01 
2024-06-09 12:25:40.018218-04:00redis 16:25:40.01 INFO  ==> ** Starting Redis setup **
2024-06-09 12:25:40.034424-04:00redis 16:25:40.03 INFO  ==> Initializing Redis
2024-06-09 12:25:40.040220-04:00mkdir: cannot create directory '/opt/bitnami/redis/tmp': Permission denied

Application Name:nextcloudPod Name:nextcloud-postgres-f7f6864c6-rpc8sContainer Name:nextcloud

2024-06-09 12:25:01.261224-04:002024-06-09T12:25:01.261224538-04:00
2024-06-09 12:25:01.261289-04:00PostgreSQL Database directory appears to contain a database; Skipping initialization
2024-06-09 12:25:01.261302-04:002024-06-09T12:25:01.261302661-04:00
2024-06-09 12:25:01.399693-04:002024-06-09 16:25:01.399 UTC [1] LOG:  starting PostgreSQL 13.1 (Debian 13.1-1.pgdg100+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 8.3.0-6) 8.3.0, 64-bit
2024-06-09 12:25:01.400130-04:002024-06-09 16:25:01.400 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
2024-06-09 12:25:01.400177-04:002024-06-09 16:25:01.400 UTC [1] LOG:  listening on IPv6 address "::", port 5432
2024-06-09 12:25:01.404179-04:002024-06-09 16:25:01.404 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2024-06-09 12:25:01.412307-04:002024-06-09 16:25:01.412 UTC [13] LOG:  database system was shut down at 2024-06-09 16:06:30 UTC
2024-06-09 12:25:01.434929-04:002024-06-09 16:25:01.434 UTC [1] LOG:  database system is ready to accept connections

Application Name:nextcloudPod Name:nextcloud-7df4778d8d-hpdw9Container Name:nextcloud Application Name:nextcloudPod Name:nextcloud-nginx-6c9c8669c9-bk8jgContainer Name:nextcloud No logs yet

stavros-k commented 3 months ago

Can you please update to TrueNAS SCALE Dragonfish (24.04) and let me know if you still have issues? I've just tried and it installs fine for me.

Thanks

alpharesearch commented 3 months ago

I updated to Dragonfish-24.04.1.1, but no change. 2024-06-10 22:29:09.390054-04:00mkdir: cannot create directory '/opt/bitnami/redis/tmp': Permission denied

alpharesearch commented 3 months ago

update: never mind, after deleting everything including the ix-applications data set it installed.

The upgrade from .7 to .8 failed, then it would also not scale down, was stuck at 40% for 24 h. I did reboot now and uninstalled and re installed, but I keept the directories. I still have the same error?

mkdir: cannot create directory '/opt/bitnami/redis/logs': Permission denied