Nextcloud 11.0.1
Ubuntu server 16.0.4 server
On VirtualBox
PHP 7.0
Apache 2.4
Redis Cache
Https and Strict Https
Hello. I decided to try out the external storage option. I enabled the app. I am using virutalbox. So I installed the guest additions and then added two shared folders. Pictures and Photoshop.
Now when I do the df -h in the root dir I do get:
Filesystem Size Used Avail Use% Mounted on
udev 2.5G 0 2.5G 0% /dev
tmpfs 496M 7.0M 490M 2% /run
/dev/mapper/nextcloud--vg-root 2.0T 84G 1.8T 5% /
tmpfs 2.5G 0 2.5G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.5G 0 2.5G 0% /sys/fs/cgroup
/dev/sda1 472M 105M 344M 24% /boot
Pictures 2.8T 650G 2.1T 24% /media/sf_Pictures
Photoshop 2.8T 650G 2.1T 24% /media/sf_Photoshop
tmpfs 496M 0 496M 0% /run/user/0
There I can see that my two shared folders are there /media/sf_Photoshop and /media/sf_Pictures
So when I went into admin and external storage I add a local storage option, name it Pictures, add the mount point of /media/sf_Pictures, then add admin and my username for the access. Green light ready to go.
Now when I go into my main files folder on the site … the folder does not show up. However when I click on external storage on the left of the screen under the options, I do see a pictures folder with an arrow. When I click on this folder it takes me right back to the main files screen of my site.
weird huh
Now I can cd into sf_Pictures and see all of the files there just fine. I thought maybe the permissions are off and they probably are.
so when check the permissions and ownership I get this:
drwxrwx— 1 root vboxsf 4096 Jun 10 2013 sf_Photoshop
drwxrwx— 1 root vboxsf 12288 Jan 24 23:55 sf_Pictures
I tried to run sudo -u www-data chown -R www-data:www-data /media/sf_Pictures
I get back the following message:
cannot read directory ‘/media/sf_Pictures’: Permission denied
soooo now I have no idea what to do to get this working right. As far as I know the new external storage should be on the main folder list on the main screen and not just under the external storage on the left of the screen in its own section.
heeelllp lol
Thanks again.
EDIT
I ran
sudo -u www-data ./occ files:scan root --path=/media/Photoshop
and I got this back
Unknown user 1 media
±--------±------±-------------+
| Folders | Files | Elapsed time |
±--------±------±-------------+
| 0 | 0 | 00:00:00 |
I have tried replacing the username “root” with www-data, my username on the site, and others…and I get the same message everytime
EDIT 2
I have gotten dropbox to work and also just to see my own nextcloud server to work there as well. I just cant get the local folders to work for some reason still. I`m not sure what to do … but damn it im trying lol