Forum
[SOLVED] How to raise the waiting time until file access is possible? - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Software (/forum-6.html)
+--- Forum: Configuration (/forum-17.html)
+--- Thread: [SOLVED] How to raise the waiting time until file access is possible? (/thread-3657.html)



How to raise the waiting time until file access is possible? - syco - 14th Jul, 2016 09:47 PM

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.


RE: How to raise the waiting time until file access is possible? - Nachteule - 14th Jul, 2016 10:07 PM

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?


RE: How to raise the waiting time until file access is possible? - Nachteule - 14th Jul, 2016 10:13 PM

A quick search found this thread

Maybe it helps ...


RE: How to raise the waiting time until file access is possible? - syco - 14th Jul, 2016 11:32 PM

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.


RE: How to raise the waiting time until file access is possible? - Nachteule - 15th Jul, 2016 02:40 AM

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


RE: How to raise the waiting time until file access is possible? - syco - 15th Jul, 2016 03:09 AM

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


RE: How to raise the waiting time until file access is possible? - Nachteule - 15th Jul, 2016 03:14 AM

Don't forget to restart Kodi Angel

Maybe 10s is too short, I would set it to 30


RE: How to raise the waiting time until file access is possible? - syco - 15th Jul, 2016 09:33 PM

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.


RE: How to raise the waiting time until file access is possible? - syco - 16th Jul, 2016 08:59 AM

Alright, that worked good, I think. Smile