The Basics
- Nextcloud Server version (e.g., 29.x.x):
- snap 30.0.5
- Operating system and version (e.g., Ubuntu 24.04):
- fedora 41
- Web server and version (e.g, Apache 2.4.25):
- included in snap
- Reverse proxy and version _(e.g. nginx 1.27.2)
- n.a.
- PHP version (e.g, 8.3):
- included in snap
- Is this the first time you’ve seen this error? (Yes / No):
- Yes,
- When did this problem seem to first start?
- right after Installation of admin is finished
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- snap
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
- No
Summary of the issue you are facing:
Setup: small server with 2 SSD’s. first with 64GB for the OS (with snap/nextcloud) and the second with 1TB for “data”.
Moving “data” directory wasn’t succesful using both variants from that wiki.
What worked for me where following steps:
Go through the wiki.
open A nextcloud-shell
sudo snap run --shell nextcloud.occ
look how snap/nextcloud has mounted your drive
mount
In my case it was
/dev/sdb1 on /var/lib/snapd/hostfs/media/nextcloud
put the line of the mount into config.php
‘datadirectory’ => ‘/var/lib/snapd/hostfs/media/nextcloud/data’,
close the nextcloud-shell,
restart nextcloud and the error should be gone.
Hope this helps someone…