squarefrog Posted August 10, 2015 Share Posted August 10, 2015 I realise this is more a Kodi question than unRAID, but I wonder if anyone else has experienced this. I have a couple of shares mounted in Kodi using NFS (using a mariadb docker to share the database). Generally this works great - fast, responsive, no dropouts. However, when I first switch on my Kodi box (Raspberry Pi 2), it boots so quick that the drives haven't spun up, so my library appears empty. I don't suppose anyone knows of an equivalent to the samba client timeout option? <samba> <clienttimeout>10</clienttimeout> <!-- timeout (in seconds) --> </samba> Or is there anything else I can look at other than leave my drives running 24/7? Link to comment
Squid Posted August 10, 2015 Share Posted August 10, 2015 Seems to me that its not a drive spin up issue, since you're using mariadb to share the database. Do you have on boot up for it to wait until the network is available (can't remember the entry). Without it, Kodi can boot up, see that mariadb is not available and then show you a blank database Link to comment
squarefrog Posted August 10, 2015 Author Share Posted August 10, 2015 Seems to me that its not a drive spin up issue, since you're using mariadb to share the database. Do you have on boot up for it to wait until the network is available (can't remember the entry). Without it, Kodi can boot up, see that mariadb is not available and then show you a blank database You know, that actually makes much more sense. A quick googling after and I found this: OpenELEC addon -> wait for network Looks like that will do the trick nicely! Link to comment
fearlessFawn Posted April 5, 2016 Share Posted April 5, 2016 In case any future people are having a similar problem, I addressed the issue by having Kodi spin up all the drives when it exits the screensaver. This is accomplished by requesting an URL on the unRAID server which spins up the disks. [*]Install the plugin Kodi Callbacks . This will allow you to nominate a specific action when the screensaver exits. [*]Configure the plugin to spin up the drive via an http request to unRAID: http://tower/update.htm?cmdSpinup=diskX <--Ensure to replace 'X' with the disk you want to spin up and 'tower' with you unRAID URL. OR you can even call a script such as the below for multiple disks When configured properly, Kodi (via the plugin) will call the URL (or script) whenever you exit the screensaver. This will spin up the disks so your media is available for playback.This is working on unRAID 6.19 / Kodi Jarvis #!/bin/sh # This will spin up disks 1-6 DISK=1 until [ $DISK -eq 6 ]; do curl --progress-bar http://192.168.1.90/update.htm?cmdSpinup=disk$DISK > /dev/null let DISK+=1 done Link to comment
METDeath Posted April 5, 2016 Share Posted April 5, 2016 Yeah, I have this issue on any OpenELEC machine that doesn't have Wait for Network to boot enabled with my MySQL as my central database. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.