Posts: 16,946
Joined: Feb 2011
Reputation:
256
While this is a valid fix (i handle the pr for that) - i still see the need that it also needs a fix on the libnfs side. Because just because it works for you - it might not in other constellations (e.x. in the case that getexportlist fails in 100% of the calls for example). I hope ronnie will comment your wireshark at one point.
Also for gotham i consider restricting your change to windows only (for paranoia reasons).
Also for a setup with more then 1 nfs server the issue would be still there (as switching between the nfs servers will still lead to calls to getexportlist and then the error would manifest in the very same way it does for you now).
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 3,571
Joined: Sep 2009
Reputation:
110
All good points and makes sense. I've got tennis tonight for a few hours, but when I get back I'll add some further notes to the libnfs github issue about the latest developments but hopefully he has enough there to nut it out.
(And of course the PR is this one change plus restoring to libnfs to 1.6.3 I realise!)
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 2,745
Joined: Oct 2003
Reputation:
1
WiSo
Team-Kodi Developer
Posts: 2,745
Nice work and appreciated.
Posts: 3,571
Joined: Sep 2009
Reputation:
110
2014-04-10, 00:44
(This post was last modified: 2014-04-10, 00:45 by bossanova808.)
Very quickly before work (I should have a bit of time later today with luck):
This new libnfs appears to work!!
I have only had a chance to try on my desktop, can do laptop tonight in about 12 hours, but on my desktop at least, with the exportlist clear put back in, just using this dll appears to solve the issue. For good measure I then also re-installed straight up beta3 and then just popped in this dll. Working fine!! (Note I have been able to reproduce the issue 100% on my dekstop anyway so the laptop bit is pretty much irrelevant except for extra data I guess).
I clean my library repetitively (5 times) and nothing is dropped. Artwork is working, and playback is fine too.
(I've only checked video, not music, as I don't really have music set up on my test machines).
Success!
What magic did you weave??
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 3,571
Joined: Sep 2009
Reputation:
110
Also - I am away this weekend so today is my last chance for anything until Sunday - have been eating in to family time a bit too much lately so over the weekend I'm going to go 'radio silent' for a bit most likely. I'll do some more thorough testing tonight to be sure but all was good this morning.
(But I think your socket linger thing is the key, it seems. How'd you work that out??)
And then you can leave the whole mounts request thing for later given it has likely always been this way and working...
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 3,571
Joined: Sep 2009
Reputation:
110
Thanks @memphiz!!
Looks like the close socket thing will make it's way in to libnfs proper. Despite this removal of the clear being an effective workaround, I'll actually be using a libnfs with your socket fix as well just for good measure as I suspect there will be other occasional oddness without it when a lot is going on....but I am sure for H this will make it's way in.
Just re: the ephemeral ports etc, I do have a script from a long time ago that I believe increases those:
netsh int ipv4 set dynamicport tcp start=3025 num=62510
...this was for something else, and I don't actually know if that changes it just once or permanently off the top of my head, or even if I did run it at the time. I just found it buried in my scripts folder when I read the ephemeral ports thing and it set off bells in my head. So just FYI really.
Anyway, off on holidays for a few days now!
Addons I wrote &/or maintain:
OzWeather (Australian BOM weather) | Check Previous Episode | Playback Resumer | Unpause Jumpback | XSqueezeDisplay | (Legacy - XSqueeze & XZen)
Sorry, no help w/out a
*full debug log*.
Posts: 1,550
Joined: Jan 2012
Reputation:
9
I use OpenElec on my 2 HTPC's with samba and I've thought about NFS for sowed improvements. I want to be able to view media on my Windows PC and possibly use it as a scraper. If I switch to NFS on my OE machines, do I just pop this dll in my Windows install and it will see my NFS shares?
Server: Synology Diskstation 1511+ with 8x WD Red NAS 3TB drives, DSM 5.2
Main HTPC: Home Built i3, 8GB RAM, Corsair 128GB SSD, nVidia 630GTX, Harmony Home Control, Pioneer VSX-53, Panasonic VT30 65" 3D TV, Windows 10, Isengard
Bedroom HTPC: Zotac-ID 41 8GB RAM, 128GB SSD, Rii micro keyboard remote, Samsung HW-E550, Sony 32" Google TV, OpenElec 6.0 beta 4
Posts: 16,946
Joined: Feb 2011
Reputation:
256
You have a flawed library you try to export - i am pretty sure you hit the same errors on smb. the sourcefile "http:" is just invalid. Imo not nfs related. (all other files are written fine as it seems from the log).
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much:
click here
HowTo setup NFS for Kodi:
NFS (wiki)
HowTo configure avahi (zeroconf):
Avahi_Zeroconf (wiki)
READ THE IOS FAQ!:
iOS FAQ (wiki)
Posts: 4
Joined: Feb 2013
Reputation:
0
thank you for your reply. I'll try to start again from scratch then.