October 31, 20241 yr 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: How can I enable local storage as a mount option? tower-diagnostics-20241031-1255.zip
October 31, 20241 yr Community Expert https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/external_storage/local.html
October 31, 20241 yr Author 42 minutes ago, Kilrah said: https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/external_storage/local.html 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.
October 31, 20241 yr 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 October 31, 20241 yr by Kilrah
October 31, 20241 yr 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?
November 1, 20241 yr Hi, see https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-allow-the-nextcloud-container-to-access-directories-on-the-host
November 1, 20241 yr Author 7 hours ago, szaimen said: Hi, see https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-allow-the-nextcloud-container-to-access-directories-on-the-host @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 November 1, 20241 yr by icarus69
November 2, 20241 yr 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?
November 4, 20241 yr 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
November 4, 20241 yr 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.
November 5, 20241 yr 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.
January 17, 20251 yr 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. Go to the Nextcloud AIO control page IP:7282 and click stop all containers. Click start containers. 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] 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. 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?
March 18, 20251 yr 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
March 18, 20251 yr 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.
March 19, 20251 yr 2 hours ago, hylli said: The variable exists: Example for a share: Error: 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.
March 20, 20251 yr Hi, i tested it two times! 1st time: I reset my instance as described here: https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-properly-reset-the-instance I installed the docker container new and added the variable before i started the installation and the first start. I started all docker containers from the AIO admin panel. Logged in into the nextcloud and activated the external storage app. Tried to add /mnt/user/Filme as external storage. -> problem same as before! --- 2nd time: I reset my instance as described here: https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-properly-reset-the-instance I installed the docker container new without adding the variable. 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. I stopped all docker containers from the AIO admin panel and started them again. I logged in into the nextcloud and activated the external storage app in the apps. Tried to add /mnt/user/Filme as external storage. -> problem same as before! Hylli Edited March 20, 20251 yr by hylli
March 20, 20251 yr 1 hour ago, hylli said: Hi, i tested it two times! 1st time: I reset my instance as described here: https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-properly-reset-the-instance I installed the docker container new and added the variable before i started the installation and the first start. I started all docker containers from the AIO admin panel. Logged in into the nextcloud and activated the external storage app. Tried to add /mnt/user/Filme as external storage. -> problem same as before! --- 2nd time: I reset my instance as described here: https://github.com/nextcloud/all-in-one?tab=readme-ov-file#how-to-properly-reset-the-instance I installed the docker container new without adding the variable. 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. I stopped all docker containers from the AIO admin panel and started them again. I logged in into the nextcloud and activated the external storage app in the apps. 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!
March 20, 20251 yr 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
March 20, 20251 yr 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 March 20, 20251 yr by dj_sim
March 20, 20251 yr 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?
March 21, 20251 yr 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 March 21, 20251 yr by hylli some corrections
March 21, 20251 yr 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.
March 21, 20251 yr 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.