NextCloud Restore from Cloud Sync Task Fail

Hi guys, anyone here has experience restoring TrueNas Scale App from Cloud Sync successfully?

I am experimenting, backing up NextCloud to MinIO and restoring back to TrueNas Scale. But then the NextCloud App would refuse to Start Up with the following error.

[2025/09/23 19:47:17] (ERROR) app_lifecycle.compose_action():56 - Failed 'up' action for 'nextcloudrestore' app:  Network ix-nextcloudrestore_default  Creating
 Network ix-nextcloudrestore_default  Created
 Volume "ix-nextcloudrestore_redis-data"  Creating
 Volume "ix-nextcloudrestore_redis-data"  Created
 Container ix-nextcloudrestore-imaginary-1  Creating
 Container ix-nextcloudrestore-permissions-1  Creating
time="2025-09-23T19:47:12+08:00" level=warning msg="config `uid`, `gid` and `mode` are not supported, they will be ignored"
time="2025-09-23T19:47:12+08:00" level=warning msg="config `uid`, `gid` and `mode` are not supported, they will be ignored"
 Container ix-nextcloudrestore-imaginary-1  Created
 Container ix-nextcloudrestore-permissions-1  Created
 Container ix-nextcloudrestore-redis-1  Creating
 Container ix-nextcloudrestore-postgres_upgrade-1  Creating
 Container ix-nextcloudrestore-redis-1  Created
 Container ix-nextcloudrestore-postgres_upgrade-1  Created
 Container ix-nextcloudrestore-postgres-1  Creating
 Container ix-nextcloudrestore-postgres-1  Created
 Container ix-nextcloudrestore-nextcloud-1  Creating
time="2025-09-23T19:47:12+08:00" level=warning msg="config `uid`, `gid` and `mode` are not supported, they will be ignored"
time="2025-09-23T19:47:12+08:00" level=warning msg="config `uid`, `gid` and `mode` are not supported, they will be ignored"
time="2025-09-23T19:47:12+08:00" level=warning msg="config `uid`, `gid` and `mode` are not supported, they will be ignored"
time="2025-09-23T19:47:12+08:00" level=warning msg="config `uid`, `gid` and `mode` are not supported, they will be ignored"
 Container ix-nextcloudrestore-nextcloud-1  Created
 Container ix-nextcloudrestore-cron-1  Creating
time="2025-09-23T19:47:12+08:00" level=warning msg="config `uid`, `gid` and `mode` are not supported, they will be ignored"
 Container ix-nextcloudrestore-cron-1  Created
 Container ix-nextcloudrestore-permissions-1  Starting
 Container ix-nextcloudrestore-imaginary-1  Starting
 Container ix-nextcloudrestore-permissions-1  Started
 Container ix-nextcloudrestore-permissions-1  Waiting
 Container ix-nextcloudrestore-permissions-1  Waiting
 Container ix-nextcloudrestore-imaginary-1  Started
 Container ix-nextcloudrestore-permissions-1  Exited
 Container ix-nextcloudrestore-redis-1  Starting
 Container ix-nextcloudrestore-permissions-1  Exited
 Container ix-nextcloudrestore-postgres_upgrade-1  Starting
 Container ix-nextcloudrestore-redis-1  Started
 Container ix-nextcloudrestore-postgres_upgrade-1  Started
 Container ix-nextcloudrestore-permissions-1  Waiting
 Container ix-nextcloudrestore-postgres_upgrade-1  Waiting
 Container ix-nextcloudrestore-permissions-1  Exited
 Container ix-nextcloudrestore-postgres_upgrade-1  service "postgres_upgrade" didn't complete successfully: exit 1
service "postgres_upgrade" didn't complete successfully: exit 1

If I use Replication Task for backup and restore, the NextCloud App can Start Up without issue with the recovered dataset.

I thought that this is a dataset permission issue but then after giving the right permission to the Cloud Sync recovery dataset it is still not working.