Great to hear. I'll do the same with the other addons that use data folders like plex and emby
(My emphasis on a few lines there)
I'm having precisely this problem with mine, I've just started using LibreElec, I'm so very very impressed so far, but stuck at this point, identical issues. (I use SMB, not NFS)
My SMB pointers in my XML file, in Kodi, which are obviously working for Kodi - as soon as I configure them to be the 'redirects' for Plex in the Plex config, will stop the Plex docker executing and running.
I can confirm this by SSH in, then typing in
docker image ls
docker container ls
The container is pulled down, but it's not running, unless I reset those settings to default, then it's listed as running.
So what's the easy solution?
Did you read the answer and how it was solved in the next post?
You cannot use nfs:// or smb:// locations as mount points with docker. You need to mount those smb locations on LE first and use those locations
You might be better off running LE in a VM with a gpu passthrough if consolidation and sandboxing are the primary motivators
Yup, you can include as many "-v" directives as you like
vpeter just a heads up, I got a PR for the nextcloud addon awaiting review that will add a text field in the addon settings where you can add your line "-v /storage/downloads/test3:/test3" so no need to modify addon files and no need to worry about updates reverting your changes
You need a webserver to do that redirection. Letsencrypt would be the ultimate way, but you can also do it with nginx.
I've been meaning to add an "extra parameters" setting where users can add any additional docker parameter like extra ports or mapped folders etc. when needed.
I'll do that today or tomorrow and then you can add the additional folder mount.
Vpeter's solution works, but would be removed if the addon is updated or reinstalled
The thing I want to do is mount /storage/videos/ as external drive with local option choosen from tab. It wont let me
Here it is folder /storage/pictures owned as nobody:users and cant mount it as local drive
The docker container doesn't know where /storage/pictures is. It only knows the folders that are mapped. If you go into the addon settings, you'll see that there is a mapping for /data and you pick a folder for it on libreelec. That libreelec folder gets mapped to /data inside the container so nextcloud only sees /data.
So pick a location where you want your data to be stored, and select that location in addon settings, /data mapping. Then in nextcloud, you'll find that location as /data
Find what out?
The addon automatically sets the correct permissions on the data folder: libreelec-addon-repo/docker.linuxserver.nextcloud at master · linuxserver/libreelec-addon-repo · GitHub
If you're mounting an external drive, make sure that the files are owned by nobody:users
Nextcloud runs as user nobody and the permissions should be set for that user on that mount
That's way beyond the scope of this addon
Thanks for your reply and pointing this out.
Automatic updates is and should be disabled after this and whenever you want it updated it's actually not a big thing to fix manually.
It is mounted with proper UID but as RO indeed.
In my opinion though, doing chown -R here without a warning is both risky and pointless. And with a large archive mounted over a network it delays the startup with minutes and possibly hours. Finally, any existing ownership and group-access structure will be completely destroyed.
However, now everything is working properly and I'm very pleased with it. Kodi still as the main player and Plex for streaming services.
Maybe one thing, It would be nice and perhaps more "clean" to have a custom folder in addition to videos/tvshows/pictures. This as a mounted target may contain a mix of all those plus more.
Risky, perhaps, but pointless it is not. Chown on media files is a necessary evil here. This is a plugin that people expect to just work.
The default folders are the local folders on LE that are normally owned by root. But docker containers run as user nobody. We need to make them readable. I suspect most people using this plugin are hosting their media on a usb drive attached to LE. That's why we're not getting complaints about the chown.
The concern about the time it takes is valid. We can perhaps stat the top folder and chown only when necessary.
An alternative is doing a chmod -R go+r which would still cause issues with remote mounts.
What you did will work until the addon is updated for any reason, then it will be overwritten
Whatever the ownership is, plex needs to be able to read the files on there. Unlike libreelec, plex in this container runs as user nobody, not root
Docker containers stop when the primary process exits.
Try `docker run -it ubuntu bash` and you'll get bash running as the main process with terminal access.
But that's not really the way to build le. You're better off using a dockerfile with the dependencies and the le build steps in it
I have similiar issue, but I need to run container BEFORE kodi tries to start.
I installed MariaDB through docker
Docker service is already in system.d. If I would define "--restart unless-stopped" for container, it would be started automatically, but I dont know how to control startp sequence. And I need to have DB up before Kodi start, obviously, to be able interconnect Kodi and MariaDB.
I already tried /storage/.config/system.dCode
- Description=MySQL Container
- ExecStart=/bin/sh -c "exec sh /storage/mysql_start.sh"
- ExecStop=/bin/sh -c "exec sh /storage/mysql_stop.sh"
where mysql_start.sh is just docker start mysql but for some reason this service doesnt work...
Use the mariadb addon instead