Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Samba in Lion and ML Server keeps disconnecting, PC InDesign crashes

I've installed Lion Server as a server in a small design studio. There's four Macs and one W7 PC in the office running desing software, mainly InDesign.


While Macs are fine, PC InDesing crashes within a few minutes upon opening old or creating new document and saving on the server with this error:


The network connection was lost for the file \\SERVER\share\file.indd or the file was modified by another process.


The same happens on a different computer with same InDesign so network connection is irrelevant.


InDesign is updated to 7.0.4, but CS6 showed same behaviour.


I tried very short path with test.indd being in the root of share. Same crash.


It doesn't happen on an old server based on Linux/SMB so it must be new SMBX implementation.


Though, I had problems replicating it in other application than InDesign. Eg Word didn't crash at all when files are opened from the same location.


I also tried guest vs authenticated login - the same crash. Or IP vs DNS server name. And also logging properly as SERVERNAME\username as Winows logs as CLIENTNAME\username by default which is wrong.


The only other misbehaviour was an very rare message about server not being reachable when doubleclicked in Explorer > Network.


To get a log on the server, I unloaded smbd and started it in debug mode:


sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.smbd.plist

sudo /usr/sbin/smbd -debug -stdout


and at the very moment it's happening, I'm getting this error:


ERROR [smb_dispatch.cpp:72] request has no session


And that's about it. I didn't get any further. No-one seems to have ahd this issue before.


Any insight into SMBX would be very appreciated.

Posted on Sep 7, 2012 9:06 AM

Reply
37 replies

Sep 29, 2012 6:10 PM in response to zpjet

Here is an update:


I came in Thursday morning and I started getting the error again. I rebooted the server the night before. I Reinstalled SMBup and it worked again. What appears to be the issue is the SAMBA server can't start on quick enough for OS X and it skips it. I don't have to restart all I have to do is, if I do restart, open up SMBup and tell it start SAMBA from the menu, BUT I have to do this twice before it actually starts. Then it will be fine until the next reboot.


Thank you for your help. My users are much happier.

Oct 2, 2012 2:59 PM in response to zpjet

ZPJET, I've got another update. I said in my last couple of post that SMBup wouldn't start Samba on restart. I found out why: Apples SMB is still running (contrary to SMBup's installation saying it would remove Apple's SMB). I went into system preferences/sharing and turned off sharing with windows computers. I restarted then and Samba started immediately without me doing anything. And the server isn't thinking near as much in SMBup.

Mar 28, 2013 2:30 AM in response to dwarfseb

Hi there, yes it did. Though I wouldn't call it "solving the problem". It's a workaround - a very inconvinient one. Or just completely different solution. In fact, you could have Linux server doing the same thing. I didn't have a chance to test it in 10.8.3 or after some InDesign updates, but clearly both Apple and Adobe are to blame for not communicating and solving this issue.

May 16, 2013 12:29 PM in response to zpjet

Since an upgrade of a multiserversystem (MacMini SRV 10.8.3, OD Master / MacPro SRV 10.8.3 OD Replica) from 10.6 to 10.8, we suffer the same problem. The Windows clients are of Windows XP SP3 and Windows 7. Also CS 6 was upgdated to the newest Version.


And - not only Adobe Indesign has this problems. Also an application called "solidworks" suddenly can't save to the server anymore.


Also installing smbUP didn't solve the problem really. With Windows 7 it seems to work more or less (we couldn't test in depth today), but Windowx XP has access rights problems and can't save to the shares correctrly.


We also tried to change to WebDAV, but also there we have heavy problems as the windows clients most the time says the share wouldn't exist (although it does and the client could connect to it one time). But that is an other story that can be related to our selfsigned certificates on the server.


Let's hope for 10.8.4 to solve the problem 😉

May 29, 2013 11:29 AM in response to s.vogel

There are some things around SMB-sharing with mountain lion and as I found out today, there is one reason:


"Client session timeout

It is the most common exchange timeout. This is defined in [MS-CIFS] as a system-wide parameter Client.SessionTimeoutValue. This value can be configured through the SessTimeout registry key [KB102067].

\HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters\

Value type: Dword

Value name: SessTimeout

Default: 45 seconds (Windows NT)

Default: 60 seconds (Windows 2000)

(details here: http://blogs.msdn.com/b/openspecification/archive/2013/03/19/cifs-and-smb-timeou ts-in-windows.aspx)"


If you create the Dword value on the client and set the value to decimal 86400, the strange behaviour vanishes (because the timout is one day). I didn't try Indesign, but:


- viewing large PDF-files (hung up after a while)

- copying large data amounts (connection was broken after one minute and copying stopped, now it works)

- suddenly disconnected network drive


It may help you too.

May 31, 2013 10:10 AM in response to PeerMahn

I wanted to thank all of you for this post!!! I run a film/video design shop. We use Adobe Creative Suite on both Macs & WIN7 machines along with a host of other applications. I am testing a new Mountain Lion Server. Well, through my testing I have run into SMB issues. I am glad that all of you have documented your issues as well. I am moving towards replacing the native SMB server with SMBup or similar. This post makes it clear the native Mountain Lion SMB server is flawed. Serious production work will require an alternative SMB server.


Thank you!

Jun 3, 2013 4:47 PM in response to zpjet

Hello,


I tried to implement smbup last night as we have a user on the network using Indesign on Windows 7 and large files over 100mb with links are getting this lost connection error. But smbup was not as smooth as I was expecting. Maybe others can confirm my experiance or let me know what I am misunderstanding?


  1. Installing smbup was point and click.
  2. Adding file shares seemed to make sense.
  3. In System Preferences > Sharing > Options, I turned of Windows sharing.
  4. Am I correct that you users have to be local users to make use of smbup? This seemed to be the only way to get it to work.
  5. I was trying to set up 4 file shares. The first one worked but I could not get anymore to work?
  6. I had set up a separate local user for my tests so I did of course have to give this user access rights to the file share in Server.app but I suspect that had the user been in a group with access it would have worked too.

Questions

  1. Do I need to just share the parent folder and let the permissions be picked up after that? Can a user only connect to the one smbup share?
  2. Any other tips?

Thanks

Morgs

Samba in Lion and ML Server keeps disconnecting, PC InDesign crashes

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.