Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[SOLVED] How to raise the waiting time until file access is possible?
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Solved: How to raise the waiting time until file access is possible?
14th Jul, 2016, 09:47 PM
Post: #1
syco Offline
Registered
Posts: 184
Joined: Apr 2013
Reputation: 0
How to raise the waiting time until file access is possible?
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.
Find all posts by this user
Quote this message in a reply
14th Jul, 2016, 10:07 PM (This post was last modified: 14th Jul, 2016 10:08 PM by Nachteule.)
Post: #2
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: How to raise the waiting time until file access is possible?
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?
Find all posts by this user
Quote this message in a reply
14th Jul, 2016, 10:13 PM
Post: #3
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: How to raise the waiting time until file access is possible?
A quick search found this thread

Maybe it helps ...
Find all posts by this user
Quote this message in a reply
14th Jul, 2016, 11:32 PM
Post: #4
syco Offline
Registered
Posts: 184
Joined: Apr 2013
Reputation: 0
RE: How to raise the waiting time until file access is possible?
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.
Find all posts by this user
Quote this message in a reply
15th Jul, 2016, 02:40 AM
Post: #5
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: How to raise the waiting time until file access is possible?
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
Find all posts by this user
Quote this message in a reply
15th Jul, 2016, 03:09 AM
Post: #6
syco Offline
Registered
Posts: 184
Joined: Apr 2013
Reputation: 0
RE: How to raise the waiting time until file access is possible?
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
Find all posts by this user
Quote this message in a reply
15th Jul, 2016, 03:14 AM (This post was last modified: 15th Jul, 2016 03:15 AM by Nachteule.)
Post: #7
Nachteule Offline
Administrator
******
Posts: 2,405
Joined: Dec 2014
Reputation: 122
RE: How to raise the waiting time until file access is possible?
Don't forget to restart Kodi Angel

Maybe 10s is too short, I would set it to 30
Find all posts by this user
Quote this message in a reply
15th Jul, 2016, 09:33 PM
Post: #8
syco Offline
Registered
Posts: 184
Joined: Apr 2013
Reputation: 0
RE: How to raise the waiting time until file access is possible?
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.
Find all posts by this user
Quote this message in a reply
16th Jul, 2016, 08:59 AM
Post: #9
syco Offline
Registered
Posts: 184
Joined: Apr 2013
Reputation: 0
RE: How to raise the waiting time until file access is possible?
Alright, that worked good, I think. Smile
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 20th May, 2025, 07:17 AM Powered By MyBB, © 2002-2025 MyBB Group.