I’m trying to mount my Box.com account as storage for an instance of Nextcloud I’m running on a VPS. So far I’m having trouble.
I’ve created a mount and a cache for Box, mounted the cache and then added the mount as an “external storage” in Nextcloud. I can’t make files or directories from within Nextcloud in this current config. Here are what my settings look like:
I have /media/data added as external storage using the “local” type in Nextcloud. I can’t add files or directories from within Nextcloud. I’m not seeing any relevant errors in the logs.
Is anyone else doing this? Does anyone have some suggestions for settings?
Thank you for following up. Turns out this was an app armor issue and wasn’t related to the mount.
I am still using the cache though I did also test this with VFS cache. They both worked. VFS cache may have been faster. I’m curious why you prefer vfs-cache feature over cache-feature?
I removed max-read-ahead and checkers. These were simply carried over from my Plex mount command.
Thanks, I’ve switched to --vfs-cache-mode full and I agree that it’s faster.
I notice that changes from the mount are reflected immediately in the remote, but changes from the remote are not reflected immediately in the mount. What setting could I change to fix this? I would prefer if changes on the remote were reflected on the mount within 5 minutes.
Even with --vfs-cache-mode writes, I’m still not seeing changes reflected on the mount.
For example, if I make a change on Box.com (add a folder or file) that change is not reflected on the mount. I can see those files using lsd but not on the mount.
The box.com backend doesn't implment changes (maybe it could I'm not sure) so you'll have to wait for the --dir-cache-time to expire to see new entries.
Thank you! This was the relevant setting. For some reason I assumed this had a default of 5 minutes and never considered adding it to my mount command. It’s working now.
If nextcloud works without --vfs-cache-mode writes then try that. It may not in which case you'll need --vfs-cache-mode writes.
I'd try that setup first before seeing whether you need the cache backend. If you needed --vfs-cache-mode writes in the first step, then you'll need it with the cache backend too.