[SOLVED] Nextcloud accessing SSD

(When looking for a solution to a problem you are facing, providing a structured, detailed description of the problem will help others provide a quick response)

Problem Description
I have FreedomBox - OS on my sd, I also have a SSD which I also want to use for additional storage for NextCloud. When I try to add a disk in the Nextcloud - UI i get the Error "Local storage path does not exist … "

When I hover over the red symbol it says: "Local storage path does not exist “/home/ssd-nextcloud/”

Here you can see the Mountpoint of my SSD:
/home/ssd-nextcloud

Owner rights to www:data, because thats what nextcloud is using:
root@freedombox:/home# ls -al
drwxr-xr-x 1 root root 54 Dec 3 11:14 .
drwxr-xr-x 1 root root 226 Nov 26 06:18 …
drwx------ 1 fbx fbx 54 Sep 4 01:29 fbx
drwxr-xr-x 6 www-data www-data 4096 Nov 20 00:36 ssd-nextcloud

What is the correct way to proceed here? Do I have to make changes to the yaml file of the pod, so I it can access the the storage path or add a volume?
I hope someone can help me, thank you :slight_smile:

Steps to Reproduce

  1. Install NextCloud
  2. Enable External Storage App inside of NextCloud
  3. chown -R www-data:www-data /home/ssd-nextcloud
  4. Try to acess storage /home/ssd-nextcloud inside of the NextCloud UI

Expected Results
Acess the Disk

Actual results
(I get an error with the following message:)
Local storage path does not exist

Screenshot
(above)

Information

  • FreedomBox version: Debian GNU/Linux 12 (bookworm) and FreedomBox version 24.23.
  • Hardware: RaspberryPi 4
  • How did you install FreedomBox?: RaspberryPi Imager

One way to get around this:

  1. Create a service user that will only be used to authenticate from the Nextcloud Storage App to your external storage
  2. chown -R serviceuser /home/ssd-nextcloud
  3. Configure the exteral storage somehow like this:

You could of course use an SSH key pair for better security.

2 Likes

Thank you so much.
That worked just fine.
And I really tried a lot in the last days.

1 Like