[Mac][ATV1][ATV2] NFS Suddenly Fails
#1
This on 11.0 Beta 1 Git:20111222-22ad8e4 Mac and ATV1

All was well yesterday, but when I went to watch some videos today, XBMC running on an ATV1 was unable to connect to the NFS share that hosts the videos. I checked my ATV2 and Mac. Same story. None of the XBMC installations can connect to the NFS shares. I'm sure this is an NFS problem, but I can't figure it out.

NFS seems to be OK:

Code:
bleach:~ mnewman$ showmount -e
Exports list on localhost:
/Users/Shared                       192.168.0.0
/Volumes/Media                      192.168.0.0
bleach:~ mnewman$ ps -ax | grep nfsd
5637 ??         0:00.02 /sbin/nfsd
5643 ttys000    0:00.00 grep nfsd

I have not changed the exports file nor have I changed permissions on either of the shares.

I can ssh into the ATV1 and manually mount and browse the NFS share:

Code:
-bash-2.05b$ sudo mkdir nfs
Password:
-bash-2.05b$ sudo mount -t nfs 192.168.0.75:/Volumes/Media /mnt/nfs
-bash-2.05b$ cd /mnt/nfs
-bash-2.05b$ ls -la
total 1036248
drwxrwxrwx   19 frontrow  staff        714 Jan 28 13:26 .
drwxr-xr-x    8 root      admin        374 Jan 29 15:38 ..
-rwxrwxrwx    1 frontrow  staff      21508 Jan 28 13:40 .DS_Store
drwxrwxrwx    9 frontrow  staff        306 Jul 22  2011 .Spotlight-V100
drwxrwxrwt    4 frontrow  staff        136 Aug 22 13:43 .TemporaryItems
drwxrwxrwt    3 frontrow  staff        102 Jan 28 15:20 .Trashes
drwxrwxrwx    4 frontrow  staff        136 Jan 20  2011 .bzvol
-rwxrwxrwx    1 frontrow  staff          0 Jul 22  2011 .com.apple.timemachine.supported
drwxrwxrwx   10 frontrow  staff        340 Jan 29 14:43 .fseventsd
-rwxrwxrwx    1 frontrow  staff          0 Jan 29 15:40 .keepThisDriveSpinning
-rwxrwxrwx    1 frontrow  staff  530519450 Jul  9  2010 David Suchet on the Orient Express.avi
drwxr-xr-x    3 502       staff        102 Jan 28 12:58 Install Mac OS X Lion.app
drwxrwxrwx   24 frontrow  staff        816 Dec 18 17:35 Movies
drwxrwxrwx    3 frontrow  staff        102 Feb  7  2016 Pictures
drwxr-xr-x   66 502       staff       2244 Jan 28 14:51 Sources
drwxrwxrwx   76 frontrow  staff       2584 Jan 24 11:23 TV
drwxrwxrwx   22 frontrow  staff        748 Aug 22 13:58 Thumbnails

Everything is there as it should be.

This on 11.0 Beta 1 Git:20111222-22ad8e4

XBMC Log from the ATV1: http://pastebin.com/p7nw4a6q
Reply
#2
Code:
15:34:06 T:58864640 * ERROR: NFS: Failed to mount nfs share: /Volumes/Media (mount/mnt call failed with "RPC Packet not accepted by the server")

mmhh ... is the -n flag missing somehow in that nfsd.plist? or is portmap not running or something like that?
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)
Reply
#3
Thank you. That was it. I should have posted earlier. I spent all day trying to figure this out and never once did I think to look at that plist.
Reply
#4
But what changed it? If it stopped working from one day to another ... just curious...
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)
Reply
#5
Short story: I screwed up.

Long story: The media library is on an external drive hanging off of a MacMini. A few months ago I dropped a new internal drive into the mini and populated it with a Carbon Copy Cloner backup. That worked fine, except there was no Lion Recovery Partition. I decided to create one by doing an overlay install of Lion. That worked fine, except that it also overlaid all the System .plist files, including the nfsd.plist.

Longer story: I'm still struggling with the fallout from this. The shared library got messed up. I just now tried to clean the shared music library which failed with the message "Error cleaning paths." More research is required.

This with Beta 2:

Code:
17:56:53 T:2900038336   DEBUG: ------ Window Deinit (Pointer.xml) ------
17:56:53 T:2900038336   DEBUG: Mysql execute: CREATE TEMPORARY TABLE songpaths (idPath integer, strPath varchar(512))
17:56:53 T:2900038336   DEBUG: Mysql execute: INSERT INTO songpaths select idPath,strPath from path where idPath in (select idPath from song)
17:56:53 T:2900038336   ERROR: SQL: Undefined MySQL error: Code (1267)
                                            Query: select count(idPath) from songpaths where strPath like 'nfs://192.168.0.75:2049/Users/Shared/iTunes Music/306 «◊éÍ¢Ò àªèÒ·ÃÑ≤Âì àªèÒ«◊/
17:56:53 T:2900038336   ERROR: Exception in CMusicDatabase::CleanupPaths() or was aborted
17:56:53 T:2900038336   DEBUG: Mysql rollback transaction
17:56:53 T:2900038336    INFO: Loading skin file: DialogOK.xml
17:56:53 T:2900038336   DEBUG: Load DialogOK.xml: 3.47ms
Reply
#6
Even if you add the parameter, nfsd won’t always pick it up. Launchctl seems to ignore changes in the Property List file if you just kill the nfsd process. sudo launchctl unload /System/Library/LaunchDaemons/com.apple.nfsd.plist and a load will pick up the new settings. You can check them with ps aux | grep nfsd. There should be an -N after the executable.
Reply

Logout Mark Read Team Forum Stats Members Help
[Mac][ATV1][ATV2] NFS Suddenly Fails0