SMB / CIFS server stops responding

Bottom Line Up Front: My two Time Capsules stop responding to SMB requests after about 15-30 minutes of operation. (I've not used a stopwatch.)

My network: I have one Time Capsule connected to a satellite modem. That Time Capsule is wired (Ethernet) to one more Time Capsule and two Airport Expresses in separate locations, providing a four hot spot roaming wireless network for ~75 users. The first Time Capsule manages authentication / DHCP services and acts as a DNS server / gateway. The other devices are bridges. I have ~20 Mac users running Tiger through Snow Leopard, ~50 Windows users running XP through 7 (32 and 64 bit) , and ~5 Linux users running current distributions.

The first Time Capsule is summer '09 running firmware 7.4.2 and the second is fall '09 running 7.5.

The TCP/IP and AFP functions of the network are fine.

My problem: 15-30 minutes after booting up, the Time Capsules start to refuse SMB / CIFS / Samba / Windows File Sharing connections (I'll start referring to them as SMB). SMB connections can still be made between Mac / Windows / Linux computers and passed through the Apple network, but not to the shared Time Capsule disks. The requests are refused from all versions of the Mac OS, Windows, and Linux. Apple Filling Protocol requests continue to be accepted from the Mac OS or Linux.

THIS PROBLEM HAS NOTHING TO DO WITH MY WINDOWS CONFIGURATION OR WINDOWS AT ALL. I am a programer and can confirm that the Time Capsule stops responding to valid SMB requests from a test applet I wrote. Still, I've followed all of the advice on the Apple Support forums ranging from configuring a Windows client to use the Time Capsule as a WINS server to changing system NetBIOS authentication settings in Windows 7.

When I first turn the Time Capsule on, I can connect via SMB by:
Using Go->Connect to Server->smb://10.0.1.1/ on a Mac
Using the Airport Utility on all versions of Windows
Using Start->Run->\\10.0.1.1 on all versions of Windows (even without Bonjour or Airport Software)
Using Samba mount utilities on Linux

At some point the server stops. My Macs get a notice that their smb mounted devices are unavailable and the Windows and Linux mounts stop working. Windows gives different errors depending on the version ranging from NetBIOS needing to be enabled (it is) to a login failure to the device not responding. Again, Macs and Linux machines with AFP mounts are unaffected.

The only fix I have right now is to use the Airport Utility to Disconnect All Users from the disk. This seems to reset the SMB server.

I have two workarounds I am exploring:

1. Try to write a script on a Mac that monitors the status of the smb server and when it detects failure orders the disk to Disconnect All Users. I'm not sure if this can be done easily yet. I'll need an Apple Script or Automator hook into the Airport Utility. However, this stops all file transfers in progress!

2. Install commercial AFP software on my Windows machines and use AFP mounts for Linux. This is a hassle but possibly my only real option.

I'd rather Apple explore this problem and update the Time Capsule firmware. I'm not sure how to open a trouble ticket, I can't find a way on the support website. I know that I have more users that Apple may have intended for a home use product, but this is a serious bug in my opinion because the Time Capsule advertises Windows compatibility!

White Macbook (2007), Mac OS X (10.6.2)

Posted on Dec 4, 2009 7:34 PM

Reply
24 replies

Dec 5, 2009 5:15 PM in response to TavisADK

Here are a few workarounds that are not easily possible:

1. Writing a script to auto reset the Time Capsules when their SMB servers fail. There are no relevant Automator or AppleScript hooks into Airport Utility, nor documentation to programmatically administer the Time Capsules without it.

2. Install AFP clients on Windows machines. The last MS AFP client came with Windows 95. The last commercial AFP client for Windows only works through XP, so Vista and 7 clients can't use it.

3. Use Samba to re-share AFP mounts via SMB. I configured my /etc/samba.conf, /var/db/samba.conf, and /var/db/samba/shares.conf manually but Samba can not share a network file system. (It can reshare an NFS mount, but cannot authorize a client to access an AFP or SMB mount.)

Is anyone else experiencing SMB server failures? I need it to work. My next step will be to run WireShark to see if I can find an event that predictably stops the service.

Dec 21, 2009 8:00 AM in response to TavisADK

This may or may not be helpful, but I am experiencing similar symptoms (SMB server stops responding to existing or new connections after a short period of time), but with a much simpler network.

I have a Thecus N2100 NAS (running Linux, SMB) on my home network. It worked flawlessly with my desktop PC (WinXP Pro x64), and my laptop (WinXP Pro). When I upgraded my laptop to Windows 7 RC (x64) I started to have problems. When connecting to the NAS with my Win7 laptop, SMB works fine for a while... I can copy files back and forth. But after a short time, the SMB server becomes unresponsive, and I'm forced to reboot the NAS.

My WinXP desktop was still able to access the NAS without problems (assuming I hadn't killed it already with my laptop). Then I installed Windows 7 Ultimate x64 (full release version)... and it now has the same problem when interacting with the NAS. It works for a while, then SMB seems to stop working and I have to reboot the NAS.

Hope this helps,
-Brad

Dec 21, 2009 9:44 AM in response to TavisADK

I have exactly the same problem on a brand new dual-band airport extreme (7.5).
AFP works perfectly on three macs in my house.
SMB works from a win7 machine when I restart the airport extreme, but only for a short while, then I cannot connect to the SMB share - neither from the win7 box nor from the macs using the smb:// protocol.

I was hoping for an easy to setup NAS for both windows and Macs, but right now it just does not work. Does anybody use this setup? e.g. as a SMB NAS for say windows or linux clients?

Dec 24, 2009 5:59 AM in response to Allan Hansen

I had the same problems. I believe I have found a resolution:

//10.0.1.1/Time\040Capsule/directory /mnt/mymount cifs nounix,noserverino,file mode=0777,dirmode=0777,username=myuserID,password=mypassword 0 0

Note the option noserverino in particular. For the long email thread where this was found, look here:
https://bugs.launchpad.net/ubuntu/karmic/source/linux/bug/406466

Jan 5, 2010 9:55 AM in response to dpkingston

I have this problem as well. Specifically SMB remotely from WAN. Works after a restart of time capsule dual band but only accepts SMB for about 10 minutes. AFP works fine.

I called apple support via applecare and they said they could not help with the problem. He recommended factory defaults and test from there. Has anyone tried that?

Perhaps this is a firmware bug?

I tried the file path mentioned by dpkingston and it did not work.

Any ideas welcomed.

Jon

Jan 9, 2010 10:39 AM in response to TavisADK

Same issue here. Been working with Apple on this issue for about 3 weeks. Went through the whole deal of them sending a new Time Capsule, only to have the same issue. They now recognize it as a bug and are passing my case to engineering.... If you are having the issue, I recommend you post it here and contact Apple so it gets on the priority list for a fix.

Jan 11, 2010 8:21 AM in response to TavisADK

Exactly the same for me.

Additional problem:

I have a very large number of directories / files on my Time Capsule mounted via Ubuntu using CIFS and the following /etc/fstab entry:

<pre>
//shiva/storage /media/storage cifs nodfs,noserverino,nounix,credentials=/root/.smbcredentials,iocharset=utf8,uid=s imonm,gid=audio,file mode=0777,dirmode=0777 0 0
</pre>

I get errors like the following for many - but not all - of the directories on the TC:

<pre>
$ ls -lRa /media/storage/BANANA/APPLE/
/media/storage/BANANA/APPLE/:
total 0
drwxrwxrwx 1 simonm audio 0 2009-08-31 19:13 .
drwxrwxrwx 1 simonm audio 0 2009-06-24 07:38 ..
</pre>
Then immediately afterwards...
<pre>
$ ls -lRa /media/storage/BANANA/APPLE/
ls: cannot access /media/storage/BANANA/APPLE/: No such file or directory
</pre>
(I've changed the paths to simplify but they're not using any special characters at all).

Also, and I'm not sure if this is related, I see many many entries like the following in my /var/log/kern.log:
<pre>
Jan 11 16:55:14 brahma kernel: [1147194.586653] CIFS VFS: ignoring corrupt resume name
</pre>

Final point. I'm sure it's a product marketing reason and not a technical one but I would really, really love to be able to use plain old NFS to share files from the TC. I'm sure it would simplify things... I've had a lot of problems with the time capsule so far.

Jan 11, 2010 8:27 AM in response to Simon M

A bit more info:

If I "echo 7 > /proc/fs/cifs/cifsFYI" on the client to enable debugging I see the following in syslog (on the Unix client):

<pre>
Jan 11 17:22:53 brahma kernel: [1148853.595481] /build/buildd/linux-2.6.28/fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 14615434 with uid: 0
Jan 11 17:22:53 brahma kernel: [1148853.595492] /build/buildd/linux-2.6.28/fs/cifs/inode.c: Revalidate: inode 0xf1dd4924 count 1 dentry: 0xca420990 d_time 114724160 jiffies 114855359
Jan 11 17:22:53 brahma kernel: [1148853.595500] /build/buildd/linux-2.6.28/fs/cifs/inode.c: Getting info on
Jan 11 17:22:53 brahma kernel: [1148853.595515] /build/buildd/linux-2.6.28/fs/cifs/transport.c: For smb_command 50
Jan 11 17:22:53 brahma kernel: [1148853.595521] /build/buildd/linux-2.6.28/fs/cifs/transport.c: Sending smb of length 86
Jan 11 17:22:53 brahma kernel: [1148853.597092] /build/buildd/linux-2.6.28/fs/cifs/connect.c: rfc1002 length 0x92
Jan 11 17:22:53 brahma kernel: [1148853.597125] /build/buildd/linux-2.6.28/fs/cifs/inode.c: Old time 114793298
Jan 11 17:22:53 brahma kernel: [1148853.597130] /build/buildd/linux-2.6.28/fs/cifs/inode.c: New time 114855359
Jan 11 17:22:53 brahma kernel: [1148853.597138] /build/buildd/linux-2.6.28/fs/cifs/inode.c: cifs_revalidate - inode unchanged
Jan 11 17:22:53 brahma kernel: [1148853.597146] /build/buildd/linux-2.6.28/fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 14615434) rc = 0
Jan 11 17:22:53 brahma kernel: [1148853.597155] /build/buildd/linux-2.6.28/fs/cifs/inode.c: CIFS VFS: in cifs_revalidate as Xid: 14615435 with uid: 0
Jan 11 17:22:53 brahma kernel: [1148853.597163] /build/buildd/linux-2.6.28/fs/cifs/inode.c: Revalidate: \BANANA inode 0xf1dd47a4 count 1 dentry: 0xca4207f8 d_time 114724160 jiffies 114855359
Jan 11 17:22:53 brahma kernel: [1148853.597171] /build/buildd/linux-2.6.28/fs/cifs/inode.c: Getting info on \BANANA
Jan 11 17:22:53 brahma kernel: [1148853.597179] /build/buildd/linux-2.6.28/fs/cifs/transport.c: For smb_command 50
Jan 11 17:22:53 brahma kernel: [1148853.597184] /build/buildd/linux-2.6.28/fs/cifs/transport.c: Sending smb of length 106
Jan 11 17:22:53 brahma kernel: [1148853.602555] /build/buildd/linux-2.6.28/fs/cifs/connect.c: rfc1002 length 0xa6
Jan 11 17:22:53 brahma kernel: [1148853.602789] /build/buildd/linux-2.6.28/fs/cifs/inode.c: Old time 114793299
Jan 11 17:22:53 brahma kernel: [1148853.602795] /build/buildd/linux-2.6.28/fs/cifs/inode.c: New time 114855360
Jan 11 17:22:53 brahma kernel: [1148853.602800] /build/buildd/linux-2.6.28/fs/cifs/inode.c: cifs_revalidate - inode unchanged
Jan 11 17:22:53 brahma kernel: [1148853.602807] /build/buildd/linux-2.6.28/fs/cifs/inode.c: CIFS VFS: leaving cifs_revalidate (xid = 14615435) rc = 0
Jan 11 17:22:53 brahma kernel: [1148853.602816] /build/buildd/linux-2.6.28/fs/cifs/dir.c: neg dentry 0xf545a3b8 name = APPLE
Jan 11 17:22:53 brahma kernel: [1148853.602825] /build/buildd/linux-2.6.28/fs/cifs/dir.c: CIFS VFS: in cifs_lookup as Xid: 14615436 with uid: 0
Jan 11 17:22:53 brahma kernel: [1148853.602832] /build/buildd/linux-2.6.28/fs/cifs/dir.c: parent inode = 0xf1dd47a4 name is: APPLE and dentry = 0xf44f43b8
Jan 11 17:22:53 brahma kernel: [1148853.602840] /build/buildd/linux-2.6.28/fs/cifs/dir.c: NULL inode in lookup
Jan 11 17:22:53 brahma kernel: [1148853.602845] /build/buildd/linux-2.6.28/fs/cifs/dir.c: Full path: \BANANA\APPLE inode = 0x00000000
Jan 11 17:22:53 brahma kernel: [1148853.602851] /build/buildd/linux-2.6.28/fs/cifs/inode.c: Getting info on \BANANA\APPLE
Jan 11 17:22:53 brahma kernel: [1148853.602861] /build/buildd/linux-2.6.28/fs/cifs/transport.c: For smb_command 50
Jan 11 17:22:53 brahma kernel: [1148853.602867] /build/buildd/linux-2.6.28/fs/cifs/transport.c: Sending smb of length 158
Jan 11 17:22:53 brahma kernel: [1148853.608683] /build/buildd/linux-2.6.28/fs/cifs/connect.c: rfc1002 length 0x27
Jan 11 17:22:53 brahma kernel: [1148853.608691] /build/buildd/linux-2.6.28/fs/cifs/connect.c: invalid transact2 word count
Jan 11 17:22:53 brahma kernel: [1148853.608721] Status code returned 0xc0000033 NT STATUS_OBJECT_NAMEINVALID
Jan 11 17:22:53 brahma kernel: [1148853.608730] /build/buildd/linux-2.6.28/fs/cifs/netmisc.c: Mapping smb error code 2 to POSIX err -2
Jan 11 17:22:53 brahma kernel: [1148853.608737] /build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Send error in QPathInfo = -2
Jan 11 17:22:53 brahma kernel: [1148853.608744] /build/buildd/linux-2.6.28/fs/cifs/dir.c: CIFS VFS: leaving cifs_lookup (xid = 14615436) rc = 0
</pre>

Hope this helps!

SM

Jan 25, 2010 7:50 PM in response to TavisADK

I am having the same exact problem. After running a few requests on the drive, the SMB server on my July '09 Airport Extreme dies:

root@lotus:/media/lanbackup# smbclient -L 192.168.1.1 -U%
Domain=[WORKGROUP] OS=[Apple Base Station] Server=[CIFS 4.32]

Sharename Type Comment
--------- ---- -------
IPC$ IPC
Domain=[WORKGROUP] OS=[Apple Base Station] Server=[CIFS 4.32]

Server Comment
--------- -------
*Receiving SMB: Server stopped responding*

Workgroup Master
--------- -------

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

SMB / CIFS server stops responding

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