I have just installed Nextcloud Server on a fresh Ubuntu 18.04 LTS system, following this guide by DigitalOcean. I found it a bit odd that it did not involve setting up mariadb/apache2 like all the other guides, but this was the only one that worked to the end with no error messages. I wish to set up a NAS which I can access from other devices anywhere. This system has an 8TB LVM comprised of 2x 4TB hard drives (and a separate small hdd for the OS).
I have managed to get the web interface working using this system’s local ip address (192.168.1.xxx), and added the plugin for External Storage.
I added External Storage type (Local) and path “/mnt/lvm/”.
I then tried to test if it’s working by creating a new .txt file, but I get Could not create file "123123.txt" error message, with no other information.
Going back to the External Storage app via Settings, it no longer allows addition of new External Storages, nor editing of current configurations. If I click the tick (Save) on the right of my entry, a red stop sign appears on the left. If I click the stop sign, it immediately turns into a green sign with a tick, but the external storage folder still cannot be used.
Does anyone know what is going wrong here? Did I configure local external storage correctly?
From the user panel: https://.../index.php/settings/user/externalstorages
Global from administrator panel: https://.../index.php/settings/admin/externalstorages. Here you can also forbid to create external storages from the user panel. Only admin can create external storage linked to local folder.
Please check if you enable or disable creation of external shares for users in 2, in this case 1 will not work as you described (user will see storages set by admin, but will not be able to change them or added new).
Check if web user has rights to write to the directory. Try to set it to 777 and check if it works, this will give you a hint.
Thanks! I was looking for the admin/externalstorages page but really could not find it again, I thought it just disappeared and got replaced by the user/externalstorages after ‘enabling’ external storage!
I have went back to that page and added both my user account and the admin account in the “Available for” field. However, this did not solve the issue.
I have also chmod 777’ed the mount point for my HDDs which I am trying to use as external storage, and that does not work either. I can create files in the Ubuntu file system, but this is not reflected on Nextcloud.
Could you please verify if this is the right way to point to a local storage folder?
I have entered /mnt/lvm under the “Configuration” field since it says Location before I enter anything.
I see this error message at the top:
"smbclient" is not installed. Mounting of "SMB / CIFS", "SMB / CIFS using OC login" is not possible. Please ask your system administrator to install it.
You can test if your NC user has access to your local folder. E.g. for user www-data it could be: sudo -u www-data ls -la /mnt/lvm/
Check if you can see content of the folder and then just try to access 1 particular file: sudo -u www-data tail /mnt/lvm/someFile.txt
if not - you have access rights issue.
I have a few external shares and to not mount it in root for this particular user you can create folder e.g. Externals and by mounting just set it as per screenshot. Folder fill be mounted under Externals under SomeFolder.
Nope, for snap it is totally different.
All Apps are installed under you home in .snap, e.g. ~/.snap. Applications suppose to access regular user files, but I do not use it and could not help you exactly.
Wiki says your snap files under $SNAP_DATA ( /var/snap/nextcloud/current/ by default)
Also note that the interface providing the ability to access removable media is not automatically connected upon install, so if you’d like to use external storage (or otherwise use a device in /media for data), you need to give the snap permission to access removable media by connecting that interface:
I am having the same issue.
I have installed ncpi with dockers.
I have tried the comand line above sudo -u www-data ls -la and it returned: ls: não foi possível acessar ‘/media/pi/744cd53e-d66a-4d25-a05d-a9e5afec7d01’: Permissão negada
How can I access my external HD? I have already installed external storage app like in this video and it didn’t work: https://youtu.be/pcAvknt53vs
Cound anyone help?
I am really a newbie.
Thank you very much.
Then try to mount your folder to docker container as was mentioned above.
Posiible that it will not work 100% at the end, becaus you need to give a special permissions, or do chmod -R 777 /media/pi/744cd53e-d66a-4d25-a05d-a9e5afec7d01 to the folder (allow to all), what I will not recommend. Please write back when you finished with folder mount and added it to NC.
Update: I found in tickets, solution how it should looks like (read from “For anyone setting this up for the first time, and wanting to add their filesystems they’ve attached to the docker container”):
I did not make this command yet because you said you did not recommend it. [quote=“gas85, post:12, topic:55081”]
chmod -R 777 /media/pi/744cd53e-d66a-4d25-a05d-a9e5afec7d01
I have made this instead: sudo docker run -d -p 443:443 -p 80:80 -v /media/pi/9C84EEE084EEBC40/:/data --name nextcloudpi ownyourbits/nextcloudpi 192.168.0.35 --restart:always
And it appeared in nextcloud server, but says that I do not have permission to see or write there.
Not sure if this is what you want to achieve, but could
sudo mkdir /mnt/LocalFolder1
Now you can use docker volume option -v
docker run -d -v /media/pi/ae99c1bc-5cdd-46a5-beab-284ae0637f9b:/mnt/localFolder1:rw nextcloud
Could not work for you as you copied verbatim UUID of example, you should insert UUID of your drive which we have established as ae99c1bc-5cdd-46a5-beab-284ae0637f9b
Also assume for second part of the -v option : /mnt/LocalFolder1 needs to exist on your system.