The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   Networking (http://hintsforums.macworld.com/forumdisplay.php?f=14)
-   -   SMB Borked in Lion? (http://hintsforums.macworld.com/showthread.php?t=126982)

mnewman 07-20-2011 10:29 PM

SMB Borked in Lion?
 
I upgraded to Lion overnight and now find that none of my XBMC installations can access the SMB shares on the Lion machine.

XBMC log:

Code:

09:06:42 T:2905461440 M:397115392  DEBUG: Alloc resources: 0.02ms (0.01 ms skin load)
09:06:43 T:2953850880 M:393998336  DEBUG: CFileSMB::Open - opened tv/Bones/Bones.S06E20.HDTV.XviD-LOL.avi, fd=-1
09:06:43 T:2953850880 M:393998336    INFO: FileSmb->Open: Unable to open file : 'smb://mnewman:xxxxxxxx@bleach/tv/Bones/Bones%2eS06E20%2eHDTV%2eXviD%2dLOL%2eavi'
                                            unix_err:'4e' error : 'Function not implemented'
09:06:43 T:2953850880 M:393998336  ERROR: CDVDPlayer::OpenInputStream - error opening [smb://mnewman:xxxxxxxx@bleach/tv/Bones/Bones.S06E20.HDTV.XviD-LOL.avi]
09:06:43 T:2953850880 M:393998336  NOTICE: CDVDPlayer::OnExit()
09:06:43 T:2953850880 M:393998336  NOTICE: CDVDPlayer::OnExit() deleting input stream
09:06:43 T:2953850880 M:393998336  DEBUG: Thread CDVDPlayer 2953850880 terminating
09:06:43 T:2954383360 M:393998336  DEBUG: OpenDir - Using authentication url smb://bleach/MOVIES/Shutter%20Island
09:06:43 T:2905461440 M:393981952  DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
09:06:43 T:2905461440 M:393981952  DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
09:06:43 T:2905461440 M:393981952  ERROR: Playlist Player: skipping unplayable item: 0, path [smb://mnewman:xxxxxxxx@bleach/tv/Bones/Bones.S06E20.HDTV.XviD-LOL.avi]
09:06:43 T:2905461440 M:393981952  DEBUG: Playlist Player: one or more items failed to play... aborting playback

Any ideas?

NaOH 07-21-2011 12:11 AM

Have a look at this thread and you'll see that there does appear to be issues with SMB and Lion, and you'll read about some potential workarounds.

mnewman 07-21-2011 01:10 AM

Thanks I'd seen that thread. I'm pretty happy with my XBMC home entertainment network as is. So I'm cloning 10.6.8 back to my boot drive as I write. I'll reinstall Lion if the SMB issue ever gets worked out.

Odd that this didn't get more mention from the developer/beta crowd.

NaOH 07-21-2011 01:13 AM

I'm not an XMBC user, but it's hiccups like this which are why I never update quickly. I've installed Lion to a separate partition for familiarizing myself with it, but there's no way I'm going with it full time until I know everything will be okay for my setup.

mnewman 07-21-2011 01:22 AM

That's why I had a clone ready to go. I have to admit that excitement got the better of me. I've lived my entire adult life overseas in rather isolated spots. This was the first time in a very long time that I was able to obtain and install a Mac OS update the same day it was released. In my defense, I only installed it on one of the six Macs in the house!

NaOH 07-21-2011 01:29 AM

Oh, I understand the excitement. It's like a new toy, and toys are fun. If it helps you, you may want to keep an eye on this Roaring Apps table of compatible applications, and MacInTouch has in the past offered something similar. I'm not sure if they're doing that for Lion, but I presume they'll have it up soon if they plan to do so. Since I typically wait until the x.x.2 release before making the new OS my main one, I haven't started researching potential software incompatibilities, but I'm sure that one or both of those links will be helpful for checking any software I need or want to update/replace.

mnewman 07-21-2011 02:51 AM

Maybe I'll give this a try:

Installing Samba 3 on Mac OS X 10.7 using MacPorts

NaOH 07-21-2011 02:54 AM

What the heck. Xcode is now a free download from the Mac App Store, and you've got a clone of 10.6 you can revert to, if needed. You have tested the clone by booting to it, right?

mnewman 07-21-2011 02:57 AM

Yes, the clone is bootable. I'll wait until next week to install Samba 3. My wife will not be happy if there is no XBMC this weekend...

agentx 07-21-2011 07:35 AM

At the end of the day Apple have dumped Samba and now use their own custom SMBX.
I am sure you can tweak the config to get it all working....have not had a look yet !
I would urge you not to bother installing Samba on Lion, it will probably open a can of worms.

agentx 07-21-2011 07:57 AM

Also as such SMB1 protocol i think has been dumped as SMB2 is now the main focus.
Hence why it is not working. You could look into NFS exports of your shares.

mnewman 07-21-2011 07:29 PM

Quote:

Originally Posted by agentx (Post 630391)
You could look into NFS exports of your shares.

I've spent many hours trying to do this. Apparently I'm not smart enough to do it. I've gotten this far:

Code:

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

But, I cannot figure out how to get XBMC to connect to it. I have the network location as:

nfs://192.168.0.75:2049/Volumes/Media

but XBMC says it can't connect. But, it doesn't say why.

This is the only think in the XBMC log:

Code:

06:22:43 T:2956091392 M:701722624  ERROR: NFS: Failed to mount nfs share: (null)
06:22:43 T:2696893760 M:701722624  ERROR: GetDirectory - Error getting nfs://192.168.0.75:2049/Volumes/Media/
06:22:43 T:2696893760 M:701722624  ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://192.168.0.75:2049/Volumes/Media/) failed

I know that the NFS share is working, because I can mount it from another Mac using the above URL. But, it just doesn't work from within XBMC.

agentx 07-21-2011 08:37 PM

Get nfs manager free trial it is excellent for nfs config. There maybe an option to force nfsv3 or something to get it working . I have all my drives nfs out of lion no problem Si far.

agentx 07-21-2011 08:41 PM

Not sure on port 2049 for nfs either. Nfs will allow full config of nfs so check that out too. Firewalls can block too !

mnewman 07-21-2011 10:13 PM

I tried NFS Manager. It's very slick. But, it created the exact same /etc/exports file that I wrote by hand. Works great from other Macs. Fails from XBMC with the identical URL. Port 2049 is correct. It is the default in XBMC and works from other Macs. NFSv2 and 3 are "on" by default.

It didn't work. But, I learned a lot. Which, in many cases, is all I'm after!

mnewman 07-26-2011 08:49 PM

Well, it looks as if installing Lion means I'm also going to have to install SAMBA3. I've made a real effort to get NFS working with XBMC, but it just doesn't. Have a look at this post from the XBMC forum:

Help With NFS

Although there are plenty of open source advocates who tout NFS over SMB, I just can't get it to work on the XBMC platform.

Any ideas?

agentx 07-27-2011 03:57 AM

Don't give up on nfs it does work :-)
It is a config problem somewhere. I do not normally put a port number in when connecting to a nfs share . Have you looked here http://wiki.xbmc.org/index.php?title...ilesystem_(NFS) could be helpful.

mnewman 07-27-2011 04:39 AM

I tried not using a port number in XBMC. Didn't work.

I know the NFS server is configured properly because I can connect to it in a variety of ways from several platforms; all using the same URL. I can connect from the Finder and from the command line on a MacMini, but not from XBMC running on that same MacMini.

At this point I've invested way too much time getting NFS to work with XBMC. Installing SAMBA3 from MacPorts seems to be an easier, less time consuming process and one which other XBMC users confirms actually works with Lion.

mnewman 07-28-2011 07:20 PM

I finally managed to get XBMC to mount my NFS share. Turns out I had to upgrade to the latest nightly builds of XBMC to do it. Unfortunately, NFS is too slow to stream videos. It takes forever for the videos to start playing and they stutter and freeze after a few minutes of play. The XBMC.log has lots of errors like this:

Code:

17:55:22 T:2966564864 M:815742976 WARNING: CRenderManager::Configure - timeout waiting for previous frame
I reverted back to SMB and all is well. Videos start playing instantly and there are no freezes.

So, when I do upgrade to Lion I'll also be installing SAMBA3.

It looks like NFS is a work in progress. Maybe it will be ready for prime time some time in the future.

mnewman 07-29-2011 12:37 AM

I went and installed SAMBA3 from MacPorts just to see if I could get it running. I can't. Well, it is running, sort of, but none of the shares are visible to SMB clients.

Code:

Bleach:samba3 mnewman$ sudo /opt/local/sbin/smbd -D && sudo /opt/local/sbin/nmbd -D
Bleach:samba3 mnewman$ ps -ax | grep nmbd
76379 ??        0:00.04 /usr/sbin/nmbd -F
76401 ??        0:00.00 /opt/local/sbin/nmbd -D
76405 ttys001    0:00.00 grep nmbd
Bleach:samba3 mnewman$ ps -ax | grep smbd
76399 ??        0:00.01 /opt/local/sbin/smbd -D
76402 ??        0:00.00 /opt/local/sbin/smbd -D
76411 ttys001    0:00.00 grep smbd

I have turned off the native SL SMB in the Sharing control panel. Why, then, is the native nmbd process running? (The MacPorts version is the one in /opt/local/sbin/.)

It appears that my config file, which is in /opt/local/etc/samba3/, is not being read.

Oh, well, maybe I should spend some time actually watching videos instead of painfully struggling with things I don't know much about....

agentx 07-29-2011 07:07 AM

NFS is a rock solid protocol IMHO, i have tons of NFS shares on multiple platforms all run as fast as network. Unfortunate that XMBC cannot deal with it. I am sure there are advanced options that could be set on the share to get it to play nice with XMBC but i am unfamiliar with this program and you would be better trawling through their forums.

mnewman 07-29-2011 08:56 AM

I'm retired, so I have a lot of time on my hands. Over the last week I've spent many hours, every single day, trying to solve the Lion/SMB/XBMC problem. So far, it's been a total wash.

I had high hopes for NFS, but I didn't realize that the XBMC developers had only recently introduced that protocol. I wasted many hours trying to tweak my configuration to allow XBMC clients to connect, but it wasn't until new builds were released that I could make that happen. Of course, that ended up being futile because the NFS client on XBMC is too slow for video streaming.

I have an NAS device that does SMB, so for a while I thought I'd use that. Trouble is, Lion will probably not connect to that device, so getting media files to it will also be an unsurmountable problem.

My final hope was to figure out how to install SAMBA on a Mac from MacPorts and make it work. That three day effort has also resulted in total failure.

The bottom line is that if I install Lion I lose my home entertainment network.

I'm sure that someone younger and smarter than I could figure it out. But, as for me, a week of failure has yielded nothing more than an increase in Happy Hour alcohol consumption. In fact, time for another whiskey and soda.

agentx 07-29-2011 09:28 AM

I am pretty sure you could transfer the files from Mini to NAS using FTP.
On NAS enable FTP and use something like Cyberduck to connect to NAS and transfer files. Obviously once this is done add NAS to the sources in XMBC.

The whole Samba thing is a pain but on the other side of the coin it is joyous for business setups to see SMB2 on OS X Lion. And as far as running multiple versions etc is a very advanced setup IMO and lots of things to get spot on for it to work.

mnewman 07-29-2011 07:11 PM

Quote:

Originally Posted by agentx (Post 631615)
The whole Samba thing is a pain but on the other side of the coin it is joyous for business setups to see SMB2 on OS X Lion. And as far as running multiple versions etc is a very advanced setup IMO and lots of things to get spot on for it to work.

If you look on the Boxee and XBMC forums, you'll see that many people have gotten this to work. They install SAMBA3 from MacPorts, turn off Windows sharing in the Sharing panel and, BINGO!, it works. No mention at all of any of the problems I've had and no mention at all of conflicts with the native Snow Leopard version of SAMBA.

The instructions people are using are here:

OSX Lion Samba SMB shares broken – XBMC not working

I can't help but thinking that I've missed something in the smb.conf file, but it's very simple and nothing pops out.

The only clue I might have is this. When I look for the SAMBA3 config file, the result has double slashes in the path:

Code:

Bleach:SystemConfiguration mnewman$ smbd -b | grep smb.conf 
CONFIGFILE: /opt/local/etc/samba3//smb.conf

When I look for Apple's smb.conf, the path looks normal:

Code:

Bleach:SystemConfiguration mnewman$ /usr/sbin/smbd -b | grep smb.conf
  CONFIGFILE: /private/etc/smb.conf

That path gets hard coded at compile time, so I wonder if there is a flaw in my compile?

Anyway, I'm stumped.


All times are GMT -5. The time now is 07:06 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.