[Bug 428129] Re: Mounting CIFS share hangs when server is offline
Andreas Hasenack
andreas at canonical.com
Mon Jun 24 13:00:22 UTC 2019
On bionic, after firewalling off a cifs server, I just get a timeout
after about 10s:
root at nsnx:~# mount //ds216.lowtech/downloads /ds216/downloads -t cifs -o username=andreas,uid=andreas
Password for andreas@//ds216.lowtech/downloads: ***
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root at nsnx:~#
If I try an IP that is not up, I get a different error after about 7s:
root at nsnx:~# time mount //10.10.1.90/downloads /ds216/downloads -t cifs -o username=andreas,uid=andreas
Password for andreas@//10.10.1.90/downloads: ***
Unable to find suitable address.
real 0m7.281s
This is probably fixed then, but I'll mark this bug as incomplete pending new test cases showing that it hangs, and by hangs, I mean indefinitely.
** Changed in: cifs-utils (Ubuntu)
Status: Confirmed => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cifs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/428129
Title:
Mounting CIFS share hangs when server is offline
Status in cifs-utils package in Ubuntu:
Incomplete
Bug description:
Hello, I mounted an OS X Samba share on Linux Mint 7 using smbfs.
I added to the fstab-
//server/share /media/share cifs credentials=credentialsfile,file_mode=0777,dir_mode=0777 0 0
This works, and is the preferred method in Ubuntu (as GNOME doesn't
mount shares as a filesystem for other programs to access and it
doesn't automount). However, if the server goes offline for any reason
(restart, shutdown, router unplugged, etc.), programs in Mint
gradually stall (stop responding). I had a WINE program stall, then
Firefox, then Nautilus. I tried to reproduce it by shutting down the
server again, and only nautilus stalled. They come back to life when
the server boots back up. There may be an eventual timeout, but I
didn't reach it. CIFS does not have a timeout option listed in the
manual.
I realize it's expected that a fstab-listed filesystem will respond all the time, but network shares don't. I realize this won't be a Mint-only issue, but I wouldn't know who to submit it to (gnome nautilus, smbfs, CIFS-VFS, or all of them). I think this behaviour is too fragile. Please forward this bug wherever it's supposed to go. I did find this old mailinglist email, but it does not mention other programs stalling-
http://lists.samba.org/archive/linux-cifs-client/2005-February/000686.html
Thanks for the help!
EDIT: note this hangs even if run from a normal mount command, not
just from fstab.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cifs-utils/+bug/428129/+subscriptions
More information about the foundations-bugs
mailing list