Cannot unmount samba share when application has remote file open

Bug #494552 reported by Stavros Korokithakis
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gvfs (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

I mount a samba share, but if the interface goes down (even if there is another network route to the server), I cannot unmount the share. Clicking the "eject" button gives me the following error message, after a 30 second (or so) timeout:

DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

This is on Ubuntu 9.10.

Revision history for this message
Dave Walker (dogatemycomputer) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:

* Is this reproducible?
* If so, what specific steps should we take to recreate this bug?

This will help us to find and resolve the problem.

(The reason I am asking for the steps necessary to recreate the problem is because I am unable to recreate this problem on my network.)

Changed in gnome-vfs (Ubuntu):
status: New → Incomplete
Revision history for this message
Stavros Korokithakis (stavrosk) wrote :

Yes, this happens every single time. Select "connect to server" to connect to an smb share, then
uncheck "enable wireless" (or wired) from the connection manager. Then click the eject button on the share in nautilus, the share will not unmount. I can make a video of it if you want...

Revision history for this message
Dave Walker (dogatemycomputer) wrote :

Stavros:

If you could send over a video then that would be extremely helpful. I just need to recreate the bug here so I can mark the bug confirmed.

Revision history for this message
Stavros Korokithakis (stavrosk) wrote :

And now I can't reproduce it :/ This bug has caused me to disable my wireless adapter every time I plug my laptop to the LAN but now that I tried to record it everything works smoothly, it unmounts over either interface.

I did not imagine it, however, so when it happens again I will record it for you and post it here. You can close the bug until then.

I hate Heisenbugs.

Revision history for this message
Dave Walker (dogatemycomputer) wrote :

I understand. I am going to mark the bug invalid which will leave the bug open for approximately 60 days. This will give you a chance to reproduce it and document it. If you have any questions then do not hesitate to post. Have a great day!

Changed in gnome-vfs (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue would have been rather a gvfs one in any case since gnomevfs is not used by GNOME since hardy...

Revision history for this message
Stavros Korokithakis (stavrosk) wrote :

Hi again,
I have come across this bug again. This time, I had my laptop connected to both ethernet and wifi and was playing a video from the server with VLC. I disconnected the ethernet cable, the video froze and now I can't unmount (or access) the share. I have a video of the unmount going wrong but not the actual steps, I will see if I can reproduce it as soon as I can unmount this share. I will attach the video here.

Also, if this is not a gnome-vfs issue, can you tell me which component is the one that dynamically loads shares?

affects: gnome-vfs (Ubuntu) → gvfs (Ubuntu)
Changed in gvfs (Ubuntu):
status: Invalid → Confirmed
status: Confirmed → Incomplete
Revision history for this message
Dave Walker (dogatemycomputer) wrote :

Stavros:

I think we're going to need some additional information. Could you please paste these commands into the terminal and copy/paste the output.

dpkg-query -W -f='${Package} ${Version} ${Source} ${Status}\n' | grep samba
smbclient -L //remote_system

Could you also paste this command into the terminal and attach the resulting gvfs.txt

lsof | grep gfvs >gvfs.txt

Also include on what kind of machine the share is located (Windows 2003 Server, Ubuntu 8.04, NAS box model...)?

Revision history for this message
Dave Walker (dogatemycomputer) wrote :

Stavros:

I can recreate the bug so I am marking it confirmed. You should still post the required information listed in my previous post.

The bug is reproducible by opening a streaming file (such as music or a video) on a samba share then attempting to unmount the share while the file is still open. I had to right-click on the share icon found on the desktop and click 'unmount' 2 or 3 times and the error message appeared after 60-120 seconds.

The error message is simply saying "we attempted to unmount but the server is not allowing us to close the connection". My personal solution would be to find the thread holding the file open and terminate it but that could have many unintended consequences if this process were automated.

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here. Thanks for taking the time to make Ubuntu better!

Revision history for this message
Dave Walker (dogatemycomputer) wrote :

walkerd@walkerd-desktop:~$ dpkg-query -W -f='${Package} ${Version} ${Source} ${Status}\n' | grep samba
libsmbclient 2:3.4.0-3ubuntu5.1 samba install ok installed
libwbclient0 2:3.4.0-3ubuntu5.1 samba install ok installed
samba-common 2:3.4.0-3ubuntu5.1 samba install ok installed
samba-common-bin 2:3.4.0-3ubuntu5.1 samba install ok installed
smbclient 2:3.4.0-3ubuntu5.1 samba install ok installed
walkerd@walkerd-desktop:~$

walkerd@walkerd-desktop:~$ smbclient -L //192.168.5.100
Enter walkerd's password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.0]

 Sharename Type Comment
 --------- ---- -------
 print$ Disk Printer Drivers
 500GB Disk
 HOME Disk
 IPC$ IPC IPC Service (walkerd-desktop server (Samba, Ubuntu))
Anonymous login successful
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.0]

 Server Comment
 --------- -------
 HTPC1
 WALKERD-DESKTOP walkerd-desktop server (Samba, Ubuntu)

 Workgroup Master
 --------- -------
 WORKGROUP HTPC1
walkerd@walkerd-desktop:~$

Revision history for this message
Dave Walker (dogatemycomputer) wrote :
Changed in gvfs (Ubuntu):
status: Incomplete → Confirmed
summary: - Cannot unmount SMB share after connection goes down.
+ Cannot unmount samba share when application has remote file open
Revision history for this message
Stavros Korokithakis (stavrosk) wrote :

Hello,
both my machines are Karmic. Here is the output you requested:

dpkg-query -W -f='${Package} ${Version} ${Source} ${Status}\n' | grep samba
libsmbclient 2:3.4.0-3ubuntu5.3 samba install ok installed
libwbclient0 2:3.4.0-3ubuntu5.3 samba install ok installed
samba-common 2:3.4.0-3ubuntu5.3 samba install ok installed
samba-common-bin 2:3.4.0-3ubuntu5.3 samba install ok installed
smbclient 2:3.4.0-3ubuntu5.3 samba install ok installed
smbfs 2:3.4.0-3ubuntu5.3 samba install ok installed
winbind 2:3.4.0-3ubuntu5.3 samba install ok installed

Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.0]

 Sharename Type Comment
 --------- ---- -------
 IPC$ IPC IPC Service (ubueee server (Samba, Ubuntu))
 stavros Disk Home Directories
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.4.0]

 Server Comment
 --------- -------
 UBUEEE ubueee server (Samba, Ubuntu)

 Workgroup Master
 --------- -------
 WORKGROUP UBUEEE

Revision history for this message
Dave Walker (dogatemycomputer) wrote :

Could you also paste this command into the terminal and attach the resulting gvfs.txt

lsof | grep gfvs >gvfs.txt

That should be all we need.

Thank you!

Revision history for this message
Stavros Korokithakis (stavrosk) wrote :

Well the file handle isn't there now because I rebooted since, but if it happens again I will...

Changed in gvfs (Ubuntu):
importance: Undecided → Low
Revision history for this message
AndreK (andre-k) wrote :

same problem in 11.04

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.