NextloudPi installation: no access permissions over /media/root/ncdata

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • RaspberryPi OS
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • curl -sSL https://raw.githubusercontent.com/nextcloud/nextcloudpi/master/install.sh | sudo bash
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

After installing NextcloudPi, the wizard guided me until the option Move data to USB after I declined formatting as the drive is already formatted. When I click this option, the error message occurs:

ERROR: the user www-data does not have access permissions over /media/root/ncdata

I tried what was here suggested Change ownership of Nextcloud files (root to www-data) - #3 by nposnie but it didn’t work.

What is the output of

lsblk -f | grep -A 1 "$(lsblk -S | grep -i usb | awk '{print $1}')"

while the usb drive is connected?


ernolf

Hello, thank you for your help!

The output is

sda         ext4   1.0   Samsung T7 4fa55dc6-d680-45d7-a88a-c92500f3c78f  300.2G    79% /media/root/Samsung T7
mmcblk0

Either you haven’t output everything or this is where the error actually lies. Because the error message says:

so it cannot access /media/root/ncdata, while the disk is obviously mounted at "/media/root/Samsung T7", as you can see here:

It is also a mount point with a space in the name, which unnecessarily complicates the whole thing.

I have to say, though, that it’s very difficult to really help if you only provide soooo little information. I and many others here would be happy to help, but to do so you, as the only person with access to your system, should be a little bit more generous with information.


ernolf

And it seems to be a fs mounted at a block device, no proper partition table / partitioning.

sda ext4 1.0 Samsung T7 4fa55dc6-d680-45d7-a88a-c92500f3c78f 300.2G 79% /media/root/Samsung T7
mmcblk0