Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Nextcloud AIO (SpaceInvaderOne): Unable to mount local storage as an external storage location

Featured Replies

I just followed @SpaceInvaderOne's video for setting up Nextcloud AIO in Unraid.

 

I'm posting this here in General Support as there isn't yet a dedicated topic for this version of Nextcloud.

 

Now I would like to mount some shares to it. But for some reason, "Local" is not showing up as a dropdown option in the External Storage administration settings:

 

Screenshot2024-10-31at12_52_59.thumb.jpg.79659a5ca1fb1bcd4962f577a28d0f2c.jpg

 

How can I enable local storage as a mount option?

 

 

tower-diagnostics-20241031-1255.zip

  • Author
42 minutes ago, Kilrah said:

As this documentation recommends, I ran the following commands (including commands to first verify what the user and group IDs were:

"root@Tower:~# sudo chown -R www-data:www-data /mnt/zfs/Music
chown: invalid user: ‘www-data:www-data’
root@Tower:~# docker exec nextcloud-aio-mastercontainer id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data),33(www-data),281(docker)
root@Tower:~# sudo chown -R 33:33 /mnt/zfs/Music
root@Tower:~# sudo chmod -R 750 /mnt/zfs/Music
root@Tower:~# "

 

I then restarted the container and went to the External Storage settings again.

 

Unfortunately nothing has changed and "Local" is still not available as a choice.

  • Community Expert

Your container probably doesn't run as 33:33 so that'd have had to be skipped or at least check what it runs as. The relevant thing to it appearing as a choice is it can only be be done by the admin user.

 

EDIT: Looks like you simply can't do Local in the AIO version without doing major steps

 

 

Edited by Kilrah

  • Author
2 hours ago, Kilrah said:

Your container probably doesn't run as 33:33

root@Tower:~# docker exec nextcloud-aio-mastercontainer id www-data

uid=33(www-data) gid=33(www-data) groups=33(www-data),33(www-data),281(docker)

root@Tower:~#

 

I have tried doing this as the Admin user and Local is still unavailable as a selection.

 

What is the alternative to local? SMB?

  • Community Expert

Yep smb would probably be the next easiest.

  • Author
7 hours ago, szaimen said:

 

@Kilrah @SpaceInvaderOne

I figured out how to enable local storage with this setup, but there are severe limitations:

 

Before hitting apply on the SpaceInvaderOne docker container to build it for the first time, you need to add this Variable:

  • Type: Variable
  • Name: NEXTCLOUD_MOUNT
  • Key: NEXTCLOUD_MOUNT
  • Value: /mnt/the_directory_you_want_to_mount_as_local_storage

 

Hit save, then apply. Then, once you have set Nextcloud up and enabled the external storage app, you will be able to mount that local storage location.

 

I had to completely remove the install and start from scratch to get that to work.

 

The problem with this is that I don't see how you could then add a second location as an external storage mount.

Edited by icarus69

  • Community Expert
22 hours ago, icarus69 said:

The problem with this is that I don't see how you could then add a second location as an external storage mount.

Maybe you could add e.g. /mnt/mymounts, then mount the directory below that. Then you can add others to it with no change to the root mount point?

On 11/2/2024 at 1:31 AM, icarus69 said:

 

@Kilrah @SpaceInvaderOne

I figured out how to enable local storage with this setup, but there are severe limitations:

 

Before hitting apply on the SpaceInvaderOne docker container to build it for the first time, you need to add this Variable:

  • Type: Variable
  • Name: NEXTCLOUD_MOUNT
  • Key: NEXTCLOUD_MOUNT
  • Value: /mnt/the_directory_you_want_to_mount_as_local_storage

 

Hit save, then apply. Then, once you have set Nextcloud up and enabled the external storage app, you will be able to mount that local storage location.

 

I had to completely remove the install and start from scratch to get that to work.

 

The problem with this is that I don't see how you could then add a second location as an external storage mount.

This works, however after doing the sudo chown -R 33:0 and sudo chmod -R 750 - I am now unabe to get access to the folder.

Any help is appreiated

  • Author
3 hours ago, zarz83 said:

This works, however after doing the sudo chown -R 33:0 and sudo chmod -R 750 - I am now unabe to get access to the folder.

Any help is appreiated

Yeah I actually also realised this too. It's a bit confusing. I was going to share this update.

 

The issue I now have (probably same as you) is that I'm now unable to access the share via SMB. 

 

Before, I could access my Music share on my Mac via SMB, logging into my user account that is 100% set up with read/write permission. Now, it says I don't have permission when trying to click on the Music folder on my Mac.

I sped read the previous responses so hopefully I am making a new contribution.

 

I found that if what I wanted to share on my server was already accessible using SMB ... that i could simply share the folders using SMB.

 

 

Screenshot 2024-11-05 at 16.22.57.jpg

  • 2 months later...

I've managed to get this working today after following the excellent @SpaceInvaderOne tutorial on nextcloud AIO.

 

Add the variable to the nextcloud-aio-mastercontainer save and apply to the container.

 

image.png.d4772b33ba79b21aceccf2ceb98397b5.png

 

Go to the Nextcloud AIO control page IP:7282 and click stop all containers.

 

image.png.8e29d87443c4521fe205f8453ea61b90.png

 

Click start containers.

image.png.198f8e7c0b9229113edd6faf598ee188.png

 

In nextcloud go to apps and enable "External Storage Support"

Then go to "Aministration Settings" and select External storage from that lower list. [NOT THE ONE UNDER PERSONAL]

image.png.6646974f5a8100a106a9174ce6490cce.png

 

Here you can now configure your local mappings, be sure to click the tick to the far right on each entry.  It will give you a red x if you cant get to the folder.

 

image.thumb.png.bac94227cf669f7349fec986a365b676.png

 

Green ticks for the win!

 

I hope this helps someone.

 

But I require some help with the permissions, all my dockers at set to nobody, but the nextcloud-aio dosent have GUID UID settings, and data is owned by sshd instead of nobody.

How can I fix this please?

 

 

image.png

image.png

  • 2 months later...

Doesn't work for me, i get a red x bei clicking on the tip.

 

Error:

Local storage path does not exist "/mnt/user/Share".

 

Any other tip to get external storage working?

 

Hylli

4 hours ago, hylli said:

Doesn't work for me, i get a red x bei clicking on the tip.

 

Error:

Local storage path does not exist "/mnt/user/Share".

 

Any other tip to get external storage working?

 

Hylli

 

Hi

 

Double check that your nextcloud master container has the NEXTCLOUD_MOUNT variable set as /mnt/user/
 

The example of Share is case sensitve.  e.g if you have a share called Media it should be set as /mnt/user/Media under the external storage configuration box.

 

image.thumb.png.d1d5e0ff0c3da72d6806996092eb9ea1.png

 

 

The variable exists:

image.thumb.png.3857ff587c6c4432241567be0c2f07f2.png

 

Example for a share:

 

image.png.75ee9d7f908048a7552754b9045b376f.png

 

Error:

 

image.thumb.png.b0c9c0584e9f34fb2d944620f3529cf2.png

 

Other ideas?

 

Hylli

2 hours ago, hylli said:

The variable exists:

image.thumb.png.3857ff587c6c4432241567be0c2f07f2.png

 

Example for a share:

 

image.png.75ee9d7f908048a7552754b9045b376f.png

 

Error:

 

image.thumb.png.b0c9c0584e9f34fb2d944620f3529cf2.png

 

Other ideas?

 

Hylli

Did you restart all the containers from the AIO admin panel?  If you did have a look here: https://github.com/nextcloud/all-in-one#how-to-allow-the-nextcloud-container-to-access-directories-on-the-host

 

Was the variable present with mnt/user when you first installed the container?  as this uses variables insetead of paths I believe they are set when the docker is created not when it starts.

 

 

Hi,

 

i tested it two times!

 

1st time:

  1. I reset my instance as described here:
    https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-properly-reset-the-instance
  2. I installed the docker container new and added the variable before i started the installation and the first start.
  3. I started all docker containers from the AIO admin panel.
  4. Logged in into the nextcloud and activated the external storage app.
  5. Tried to add /mnt/user/Filme as external storage.

 

-> problem same as before!

 

---

 

2nd time:

  1. I reset my instance as described here:
    https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-properly-reset-the-instance
  2. I installed the docker container new without adding the variable.
  3. After i started all docker containers for the first time from AIO admin panel, i added the variable to the mastercontainer and applied the mastercontainer.
  4. I stopped all docker containers from the AIO admin panel and started them again.
  5. I logged in into the nextcloud and activated the external storage app in the apps.
  6. Tried to add /mnt/user/Filme as external storage.

 

-> problem same as before!

 

Hylli

Edited by hylli

1 hour ago, hylli said:

Hi,

 

i tested it two times!

 

1st time:

  1. I reset my instance as described here:
    https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-properly-reset-the-instance
  2. I installed the docker container new and added the variable before i started the installation and the first start.
  3. I started all docker containers from the AIO admin panel.
  4. Logged in into the nextcloud and activated the external storage app.
  5. Tried to add /mnt/user/Filme as external storage.

 

-> problem same as before!

 

---

 

2nd time:

  1. I reset my instance as described here:
    https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-properly-reset-the-instance
  2. I installed the docker container new without adding the variable.
  3. After i started all docker containers for the first time from AIO admin panel, i added the variable to the mastercontainer and applied the mastercontainer.
  4. I stopped all docker containers from the AIO admin panel and started them again.
  5. I logged in into the nextcloud and activated the external storage app in the apps.
  6. Tried to add /mnt/user/Filme as external storage.

 

-> problem same as before!

 

Hylli

Try going into nextcloud administration and scroll down to the very bottom system tab.

 

On there it should show you if the share has mounted, mine is showing as SHFS... I wonder if you can see this on yours, if so then I would guess there is a permissions issue that may need dealing with (chmod)

 

Sorry but I'm clutching at straws here!

 

image.thumb.png.c15bcec0709e8d3e82b36c1bf700bc88.png

Sorry, can't upload screenshots here anymore. Don't know why?

 

The share is mounted / showing as shfs in the system tab.

 

I can also see the share directory "Filme" in the file manager, but can't open it.

 

Here are the rights of the shares:

drwxrwxrwx 1 nobody users 61440 Mar 18 17:33 Filme/
drwxrwxrwx 1 nobody users   169 Nov 18  2021 Serien/

 

Hylli

 

23 minutes ago, hylli said:

Sorry, can't upload screenshots here anymore. Don't know why?

 

The share is mounted / showing as shfs in the system tab.

 

I can also see the share directory "Filme" in the file manager, but can't open it.

 

Here are the rights of the shares:

drwxrwxrwx 1 nobody users 61440 Mar 18 17:33 Filme/
drwxrwxrwx 1 nobody users   169 Nov 18  2021 Serien/

 

Hylli

 

My shares are also showing drwxrwxrwx 1 nobody users..

 

and your shfs is showing /mnt/user not just /

 

Is there anything showing in the nextcloud log that might be useful?

Edited by dj_sim

Check if yours are the same:

 

docker exec nextcloud-aio-mastercontainer id
uid=0(root) gid=0(root) groups=0(root)..

 

Only other thing that comes to mind, is your adblocker stopping your password prompt appearing when you change the path to get the green tick?

 

 

 

 

Here are my ids:

Quote

docker exec nextcloud-aio-mastercontainer id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)

My AdBlocker (uBlock/NoScript) is deactivated for my UnRAID NAS and my Nextcloud-Domain.

So i'm getting the password prompt and can submit it.

 

I also tested another browser without any Ad- or Scriptblockers.

 

Hylli 

 

Edited by hylli
some corrections

Mine are the same..

 

Super weird!!!

 

I'd try making a new share, and messing around with the permissions to see if you can get a green tick mapped.

Made a new share "aio" -> same error.

 

Which permissions could oder should i test?

 

Hylli 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.