nautillus mounts nfs shares when searching

Bug #1885378 reported by Paolo Benvenuto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
New
Low
Unassigned

Bug Description

I have a nas running readynas 6, I'm mounting on my pc its nfs shares, in fstab they are like

nas:/data/Documents /media/nas.nfs/Documents nfs4 async,user,rw,auto,user 0 2

readynas uses the snapshot folder in its /data/Documents folder in order to save the daily backups

when /media/nas.nfs/Documents is mounted, if I perform a nautilus search in that folder I get all the /media/nas.nfs/Documents/snapshot and /media/nas.nfs/Documents/snapshot/* folders mounted.

Once mounted I cannot umount them any more, nor with sudo.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: nautilus 1:3.26.4-0~ubuntu18.04.5
ProcVersionSignature: Ubuntu 4.15.0-106.107-generic 4.15.18
Uname: Linux 4.15.0-106-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.15
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Jun 27 15:38:23 2020
InstallationDate: Installed on 2016-11-23 (1311 days ago)
InstallationMedia: Xubuntu 16.04.1 LTS "Xenial Xerus" - Release amd64 (20160719)
SourcePackage: nautilus
UpgradeStatus: Upgraded to bionic on 2018-08-17 (680 days ago)
usr_lib_nautilus:

Revision history for this message
Paolo Benvenuto (donpaolo) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report, that's an interaction with autofs and not really a bug (the search needs to read the directories to find content), you could still try to report it upstream though, https://gitlab.gnome.org/GNOME/nautilus/-/issues

Changed in nautilus (Ubuntu):
importance: Undecided → Low
Revision history for this message
Paolo Benvenuto (donpaolo) wrote :

I haven't autofs installed:

$ aptitude search autofs
p autofs - automounter basato sul kernel per Linux
p autofs:i386 - automounter basato sul kernel per Linux
p autofs-hesiod - supporto per mappe Hesiod per autofs
p autofs-hesiod:i386 - supporto per mappe Hesiod per autofs
p autofs-ldap - LDAP map support for autofs
p autofs-ldap:i386 - LDAP map support for autofs
p autofs5 - pacchetto fittizio di transizione per "autofs"
v autofs5:i386 -
p autofs5-hesiod - pacchetto fittizio di transizione per "autofs-hesiod"
v autofs5-hesiod:i386 -
p autofs5-ldap - transitional dummy package for 'autofs-ldap'
v autofs5-ldap:i386 -
p fusiondirectory-plugin-autofs - autofs plugin for FusionDirectory
p fusiondirectory-plugin-autofs-schema - LDAP schema for FusionDirectory autofs plugin

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you add the output of 'mount' once those are mounted? nautilus doesn't do any automatic mounting so it has to come from some lower level feature enabled on your installation

Revision history for this message
Paolo Benvenuto (donpaolo) wrote :

Here are the relevant lines of the mount command:

nas:/data/Documents/snapshot on /media/nas.nfs/Documents/snapshot type nfs4 (rw,nosuid,nodev,noexec,relatime,vers=4.2,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.3,local_lock=none,addr=192.168.1.11)
nas:/data/Documents/snapshot/c_2016_10_31__00_00_21 on /media/nas.nfs/Documents/snapshot/c_2016_10_31__00_00_21 type nfs4 (rw,nosuid,nodev,noexec,relatime,vers=4.2,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.3,local_lock=none,addr=192.168.1.11)

Revision history for this message
Paolo Benvenuto (donpaolo) wrote :

trying to umount the inner one:

paolo@paolo:~$ sudo umount /media/nas.nfs/Documents/snapshot/c_2016_11_30__00_00_11
paolo@paolo:~$ sudo umount /media/nas.nfs/Documents/snapshot/c_2016_11_30__00_00_11
umount.nfs: /media/nas.nfs/Documents/snapshot/c_2016_11_30__00_00_11: device is busy
paolo@paolo:~$ sudo umount /media/nas.nfs/Documents/snapshot/c_2016_11_30__00_00_11
paolo@paolo:~$ sudo umount /media/nas.nfs/Documents/snapshot/c_2016_11_30__00_00_11
paolo@paolo:~$ sudo umount /media/nas.nfs/Documents/snapshot/c_2016_11_30__00_00_11
paolo@paolo:~$ sudo umount /media/nas.nfs/Documents/snapshot/c_2016_11_30__00_00_11
umount.nfs: /media/nas.nfs/Documents/snapshot/c_2016_11_30__00_00_11: device is busy
paolo@paolo:~$ sudo umount /media/nas.nfs/Documents/snapshot/c_2016_11_30__00_00_11
paolo@paolo:~$ sudo umount /media/nas.nfs/Documents/snapshot/c_2016_11_30__00_00_11
umount.nfs: /media/nas.nfs/Documents/snapshot/c_2016_11_30__00_00_11: device is busy

sometimes it says busy, sometimes it doesn't say anything, but no umount is done

Revision history for this message
Paolo Benvenuto (donpaolo) wrote :

I get everything umounted with

$ sudo umount /media/nas.nfs/Documents/snapshot/

I must be root: from nautilus the eject button says "operation not permitted", but why? nautilus mounted it, and it cannot umount it!

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you try if

$ lsof | grep snapshot

gives you some hints on the processes that block the unmounting?

Revision history for this message
Paolo Benvenuto (donpaolo) wrote :

sudo lsof | grep snapshot

says:

lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
      Output information may be incomplete.

and only reports lines which relate to chromium-browser or darktable

Revision history for this message
Sebastien Bacher (seb128) wrote :

weird, does it mount if you just 'cd' to the directory on a command line or use 'ls -R' in the snapshot directory or is it really specific to nautilus?

Revision history for this message
Paolo Benvenuto (donpaolo) wrote :

actually, cd'ing into the directories mount them, so it's not nautilus

But, then, who could be mounting them?

Revision history for this message
Sebastien Bacher (seb128) wrote :

Unsure, that's a feature autofs provides
https://help.ubuntu.com/community/Autofs
but you said you don't have that installed...

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.