Forum

Full Version: How to raise the waiting time until file access is possible?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys,

There is a thing bothering me now for over a year and
finally, I had to ask you for help. How can I raise the
period of time-out, when accessing a file?

I have a Synology NAS, which goes into deep-sleep, when
not needed. Now, when I try to start a move or anything,
while it is "sleeping", the waiting/wake-up period often is
too long, so Kodi thinks the file is not there (anymore). In
other words the time-out period of Kodi's accessing of files
needs to be raised.

In the meantime the Synology is awake and when I click/
start that movie again, it works as usual and plays it.

Thank you in advance, guys.
Two questions:

1) how long is long?
2) how does Kodi access those files on NAS?
(permanently mounted share, SAMBA, NFS, mount NAS by autofs, user defined NFS/SAMBA or whatever source within Kodi)

I do not have a Synology NAS or similar, I'm using self made NAS and my library disks are usually always in sleep mode. But never had any issues accessing files. I'm using autofs for mounting shares (SAMBA and/or NFS, does not make difference). If disk has to spin up, it takes about 10s longer to start video, but starts always.

3) Did you already looked into Kodi's log file?
A quick search found this thread

Maybe it helps ...
Alright, I checked it out shortly: I am using Samba
sources and I have an advancedsettings.xml, of
course, but I do not know the exact code/command
to insert it there.

The thread was mentioning something like that, but
not specifically what to use/do. I then checked the
expert settings of Kodi, but there is no setting for
this either.

I do not know exactly, what "long" is, but I guess it
is something about 10 seconds and 15 seconds might
be better or maybe it is 15 and 20 would be better.
I am not sure right now.
Seems you did not search a lot Tongue

Look here for a complete documentation of advancedsettings.xml.
You do not have to scroll a lot, important settings for your issue should be displayed immediately Tongue

HTH
Oh, man, thanks a lot. That site was just huge and
I totally stayed in the first advancedsettings.xml
describing area.

I will try now

<samba>
<clienttimeout>10</clienttimeout>
</samba>

and see, if that brings the solution. Smile
Don't forget to restart Kodi Angel

Maybe 10s is too short, I would set it to 30
Yeah, I set it to 30 and did a restart. Wink

I read in that article, that changes in this file are not on-the-fly.
Alright, that worked good, I think. Smile
Reference URL's