My YunoHost server
Hardware: Dell R720
YunoHost version: Powered by YunoHost 22.214.171.124 (stable).
I have access to my server : SSH, webadmin, direct access
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : not really. I have a RAID server.
Description of my issue
- I have all of my media at /var/Multimedia/Picture (or Video, or eBook, etc)
This is because these are 2TB large and mountpoint is at /var. Yunohost is on / which is much smaller
- Jellyfin can read the media on /var/Multimedia just fine, as can other apps
- I want to use nextcloud to ease adding/removing files to /var/Multimedia
- I’ve tried creating a nextcloud instance and then creating symbolic links like
ln -s /home/USER/yunohost.multimedia/Picture /var/Multimedia/Picture
or in /home/USER/share/Multimedia/Picture
In both cases nextcloud doesn’t read the files.
I also notice these in NC logs:
Following symlinks is not allowed ('/home/USER/Multimedia' -> '/home/yunohost.multimedia/USER/' not inside '/home/USER/') Following symlinks is not allowed ('/home/yunohost.multimedia/USER/Picture/Picture' -> '/var/Multimedia/Picture/' not inside '/home/yunohost.multimedia/USER/')
Initlally when I installed NC I got an error about not having permission to create files so I tried following this YNH guide to permanently set NC to /var/Multimedia (preferred option) but eventually when I ran
sudo -u nextcloud php occ files:scan --all
I got the error that "you don’t have permission to run as www-data, this can be solved by giving access to webserver to config. I tried scrwing acround with chown and chgrp a dozen times but to no avail.
I might have borked this NC install, which is fine, and I can delete it and reinstall it but I’ve done this a few times now so I thought I’d ask for help