[AppleTV2] Help With NFS
#1
In preparation for switching from Snow Leopard to Lion I'm trying to get my MacMini to work as an NFS server that can be accessed by XBMC running on a MacMini, an AppleTV1 and an AppleTV2.

I have the NFS server running fine on the MacMini:

Code:
Bleach:etc mnewman$ showmount -e
Exports list on localhost:
/Volumes/Media                      192.168.0.0

I can mount this share on:

A MacMini (SnowLeopard) via the Finder
A MacBook (SL) via the Finder
A MacMini (SL) via the command line [mount_nfs 192.168.0.75:/Volumes/Media mnt]
A Linux box (Ubuntu 11.04) via the command line
An ATV1 using the command line

But, I cannot get any of the three XBMC installations to mount the NFS share. I always see errors like this in the log files:

Code:
08:17:52 T:2684407808 M:  9666560   DEBUG: SECTION:LoadDLL(libnfs.1.0.0.dylib)
08:17:52 T:2684407808 M:  9666560   DEBUG: Loading: /Applications/XBMC.app/Contents/Frameworks/libnfs.1.0.0.dylib
08:17:52 T:2684407808 M:  9560064   ERROR: NFS: Failed to mount nfs share: (null)
08:17:52 T:2684407808 M:  9564160   ERROR: GetDirectory - Error getting nfs://192.168.0.75:2049/Volumes/Media

SMB is working fine on all three XBMC installations.

Following are the XBMC versions for each machine:

MacMini pre-11: 61bdb05
ATV1 pre-11:
ATV2 pre-11:5bbc9c2 b2f2a7

My /etc/exports file consists of one line:

Code:
/Volumes/Media -alldirs -mapall=-2:-2 -network 192.168.0.0 -mask 255.255.0.0

My UID is 501.

What am I doing wrong?
Reply
#2
Did you edit the nfsd.plist as mentioned here?

http://wiki.xbmc.org/index.php?title=NFS...ac_OS_X.29

the mapall -2:-2 looks strange ... maybe better try -mapall=501 ...
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
Memphiz Wrote:Did you edit the nfsd.plist as mentioned here?

http://wiki.xbmc.org/index.php?title=NFS...ac_OS_X.29


Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>com.apple.nfsd</string>
    <key>ProgramArguments</key>
    <array>
        <string>/sbin/nfsd</string>
        <string>-N</string>
    </array>
    <key>QueueDirectories</key>
    <array/>
    <key>WatchPaths</key>
    <array/>
</dict>
</plist>

Memphiz Wrote:the mapall -2:-2 looks strange ... maybe better try -mapall=501 ...

Tried that as well with the same result.

Please remember that I'm able to mount my NFS share from the command line on both Linux and Snow Leopard boxes. It just doesn't work with any of my three XBMC installations.
Reply
#4
What user are you running as on OS X?

Type 'id' at the command line.

Just because you can mount doesn't mean anything.

Where did you even get the -2:-2?
Code:
GRANT ALL PRIVILEGES ON `xbmc_%`.* TO 'xbmc'@'%';
IF you have a mysql problem, find one of the 4 dozen threads already open.
Reply
#5
darkscout Wrote:What user are you running as on OS X?

Type 'id' at the command line.

Code:
Bleach:~ mnewman$ id
uid=501(mnewman) gid=20(staff) groups=20(staff)


darkscout Wrote:Just because you can mount doesn't mean anything.

Why is that?


darkscout Wrote:Where did you even get the -2:-2?

It was generated by a Mac program called NFS Manager.
Reply
#6
difficult if you post your problem in 2 threads at the same time ... since you already developed some command line kung fu ... would be worth a try to use the latest nightly from yesterday ... it has some major changes and improvements to the nfs support and lets you browse for nfs servers and exports - similiar as easy as with samba. If it crashes for you on browsing the exports - this means the -N option doesn't have function under lion (which i will try for myself in about 10h after work ...).

This crash is known and already reported to the libnfs developer...

You also should have a look into your lions log file when xbmc fails to connect. Can't tell your where to find it atm...
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
#7
If you look at the first sentence in the OP you'll see I'm not yet on Lion:

Quote:In preparation for switching from Snow Leopard to Lion I'm trying to get my MacMini to work as an NFS server that can be accessed by XBMC running on a MacMini, an AppleTV1 and an AppleTV2.

Two separate threads because I'm running XBMC on two different platforms.
Reply
#8
ATV2 pre-11 30a9070 can mount my NFS share.

However, browsing for NFS shares crashes. This on Snow Leopard.
Reply
#9
What exactly do you do for making it crash? Could you provide the crashlog (see the first link in my sig for howto get one).

Buadhai Wrote:If you look at the first sentence in the OP you'll see I'm not yet on Lion:

Sure i read it - but i mixed it up with othere threads because to much is going on here in the forum. Sorry.
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
#10
Memphiz Wrote:What exactly do you do for making it crash? Could you provide the crashlog (see the first link in my sig for howto get one).

Let me get NFS working on the ATV1. If that happens, then I'll worry about the ATV2.
Reply
#11
darkscout Wrote:What user are you running as on OS X?

Type 'id' at the command line.

Just because you can mount doesn't mean anything.

Where did you even get the -2:-2?


It turns out that UID of −2 (65534) is nobody. GID of −2 is nogroup. So, mapall=-2:-2 means mapall=nobody:nogroup.
Reply

Logout Mark Read Team Forum Stats Members Help
[AppleTV2] Help With NFS0