The Basics
- Nextcloud Server version (e.g., 29.x.x):
- Nextcloud AIO v9.8.0
- Operating system and version (e.g., Ubuntu 24.04):
- Almalinux 9.4
- Web server and version (e.g, Apache 2.4.25):
- AIO image, so some apache version?
- Reverse proxy and version _(e.g. nginx 1.27.2)
- HAProxy 2.8.11
- PHP version (e.g, 8.3):
- AIO version
- Is this the first time you’ve seen this error? (Yes / No):
- Yes
- When did this problem seem to first start?
- After migrating the storage
- Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.)
- AIO
- Are you using Cloudflare, mod_security, or similar? (Yes / No)
- No
Summary of the issue you are facing:
I’m getting an error on my backup. This seems to be a permissions issue.
Log entries
2024-11-19T00:01:31.278251098Z The .ncdata or .ocdata file is missing in Nextcloud datadir which means it is invalid!
2024-11-19T00:01:31.278317828Z Is the drive where the datadir is located on still mounted?
2024-11-19T00:01:33.968578472Z touch: /nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/skip.update: Permission denied
2024-11-19T00:01:33.969338788Z chmod: /nextcloud_aio_volumes/nextcloud_aio_nextcloud_data/skip.update: Permission denied
So let’s take a look at those permissions:
┌[kclijsters☮srv-malmok]-(/Server/Docker)-[git://main ✗]-
└> ls -la /mnt/NAS/Backups/Nextcloud/
total 10
drwxrwxrwx 3 www-data root 3 Oct 17 14:57 .
drwxrwxrwx 4 docker docker 4 Nov 13 11:09 ..
drwxrwxrwx 3 root root 9 Nov 19 01:01 borg
The Permissions are world readable ( Don’t worry, I did this for debugging reasons
Maybe it’s the ncdata or ocdata it is complaining about?
[www-data@srv-malmok Nextcloud]$ ls -la
total 74
drwxr-x--- 13 www-data root 19 Nov 19 01:02 .
drwxrwxrwx 3 www-data tape 3 Nov 13 15:28 ..
drwxr-x--- 4 www-data root 4 Nov 25 2022 admin
drwxr-x--- 18 www-data root 18 Apr 14 2024 appdata_ocloyyd7j8bb
-rwxr-x--- 1 www-data root 0 Nov 13 15:18 audit.log
drwxr-x--- 8 www-data root 8 May 20 2024 christel
drwxr-x--- 3 www-data root 3 Feb 23 2024 files_encryption
drwxr-x--- 2 www-data root 3 Jul 2 02:18 files_external
-rwxr-x--- 1 www-data root 0 Nov 13 15:18 fts-index.done
drwxr-x--- 6 www-data root 6 Feb 23 2024 __groupfolders
-rwxrwxrwx 1 www-data root 542 Nov 13 15:18 .htaccess
drwxr-x--- 5 www-data root 5 Jul 29 2023 Ilse
-rwxr-x--- 1 www-data root 0 Nov 13 15:18 index.html
drwxr-x--- 7 www-data root 7 Jul 30 11:02 inge
drwxr-x--- 8 www-data root 8 Feb 23 2024 karel
drwxr-x--- 8 www-data root 8 Dec 18 2022 marie
-rwxrwxrwx 1 www-data root 52 Nov 13 15:18 .ncdata
-rwxr-x--- 1 www-data root 0 Nov 13 15:18 nextcloud.log
drwxr-x--- 7 www-data root 7 Feb 23 2024 Wim
[www-data@srv-malmok Nextcloud]$ cat .ncdata
# Nextcloud data directory
# Do not change this file[www-data@srv-malmok Nextcloud]$ pwd
/mnt/Cloud/Nextcloud
doens’t seem to be an issue either… I’m really confused about this. Anyone here have an idea?