"CIFS VFS: Server not responding" message on shutdown

Bug #153444 reported by Matt Austin
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Incomplete
Undecided
Unassigned
Nominated for Gutsy by Matt Austin

Bug Description

When mounting samba shares using CIFS automatically in fstab, error messages are shown on shutdown.

This problem seems to be occurring in feisty and gutsy, and occurs often as it is even mentioned in the forums tutorial regarding mounting samba shares.

CIFS VFS: Server not responding
No response for cmd 5 mid 8

Error message examples are shown in the first post of this thread
http://ubuntuforums.org/showthread.php?t=288534

A potential solution is given in this thread:
http://ubuntuforums.org/showthread.php?t=293513

Matt Austin (mattaustin)
description: updated
Revision history for this message
Matthijs De Smedt (matthijs--) wrote :

Confirming this. I also have this problem in feisty and gutsy.

Revision history for this message
ktuluz (jamie-ackland) wrote :

I am also having this issue , Ubuntu Gusty

Revision history for this message
Mathias Gug (mathiaz) wrote : Re: [Bug 153444] Re: "CIFS VFS: Server not responding" message on shutdown

Could you describe your network configuration ?

  status incomplete

Changed in samba:
status: Confirmed → Incomplete
Revision history for this message
Matthijs De Smedt (matthijs--) wrote :

Mine is quite simple.

Router is 192.168.1.1.
Desktop PC using DHCP.
Server PC (running smbd) at 192.168.1.3.

My Desktop PC's network is configured using gnome network-manager.

My fstab line looks like this:
//192.168.1.3/username /home/username/smbmountpoint cifs auto,iocharset=utf8,credentials=/root/.smbcredentials 0 0

Revision history for this message
Matt Austin (mattaustin) wrote :

Just to confirm, my fstab line is:

//server/share /media/share cifs credentials=/etc/cifspw,uid=user

Revision history for this message
Machiel (mvveen) wrote :

I can confirm, I use the same setup and config as Mathijs, the server is a Mac OS X 10.3 machine. I connect using dhcp trough a router. Feisty has had this problem as well, Edgy would not complain, the server has not changed in any way during this period. My current Gutsy install is a fresh one.

Revision history for this message
Machiel (mvveen) wrote :

I got some more info, it seems my network is being shut down and then cifs comes along complaining it can't reach the server. So either the cifs share should be unmounted sooner or it should not time out once the server cannot be reached.

Revision history for this message
kling0n (ubuntu-skadaha) wrote :

There is a relevant description of why this happens at http://www.jejik.com/articles/2007/07/automatically_mounting_and_unmounting_samba_windows_shares_with_cifs/

Problem seems to be that cifsd is killed before the unmounting takes place.

There is a relevant shutdown script at http://www.jejik.com/files/examples/umountcifs

the thing is, this not a bug in SMB itself, in stead it relates to the shutdown procedure of ubuntu which collides with the decision to mount cifs shares using a daemon.

attached solution works.

Revision history for this message
Mike Valentine (cpugeniusmv) wrote :

I'm experiencing the same issue. I think this bug might be a duplicate of https://bugs.launchpad.net/ubuntu/+source/sysvinit/+bug/42121

Revision history for this message
psypher (psypher246) wrote :

So this error is also still happening in Hardy beta?? Anyone going to fix this before Hardy goes final?

Revision history for this message
EagleDM (eagle-maximopc) wrote :

I am also confirming this, I'm using Hardy Heron BETA release from daily build (date april 2 2008) so you see, this is NOT fixed.

Have to manually "umount -a" before shutdown and everything works but this SHOULD be fixed before hardy hits the launch date, there are a LOT of us using CIFS shares.

Revision history for this message
EagleDM (eagle-maximopc) wrote :

Using this script with the following commands totally fixed the shutdown problem.

I leave this I found in the forums, maybe the developers can include it to totally fix this BUG that it's present since Edgy.

To activate the script the forum members suggest this (I tried and works)

gunzip umountcifs.gz && chmod +x umountcifs

sudo cp umountcifs /etc/init.d/

sudo update-rc.d umountcifs stop 02 0 6 .

Revision history for this message
toobuntu (toobuntu) wrote :

no need to put it at level S02; attached script works fine for me in Hardy Beta at K15 in rc0.d and rc6.d (notice that K16dhcdbd is the first network-related kill script; if use use a wireless connection, I suppose K14 would be better as there is also an S15wpa-ifupdown).

Revision history for this message
Scott Severance (scott.severance) wrote :

@EagleDM and toobuntu:

You're commenting on a duplicate bug. If you would like for your comments to be noticed by the proper people, please post in the main bug, bug 42121.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.