Shared folders in Virtualbox

I’m having a very difficult time trying to get local storage working on Nextcloud. I am using Virtualbox and Ubuntu server. I am sharing a folder, which is automounted.

I followed the instructions here:

I can add the folder locations, but folders are not showing. “No files in here”. On the server itself, I know the mount is working because I can see all the files.

Can someone tell me what I’m doing wrong here?

I followed removable media snap -

Strangely enough, I’m now able to create folders and my test text files, but I cannot see any of the existing files in there. Any ideas?

You say you use a VM. I assume the shared folder is on the Ubuntu server. The ownership of the shared directory on the Ubuntu server has to be the same as the user who started VirtualBox. Change with sudo chown -R user:user /mountpoint/of/the/sharedfolder. I hope it helped.

After fiddling with it for a while, I finally got it to work. I ran

sudo nextcloud.occ files:scan --all

And all the files showed up. Strange…