Lately something triggers NFS to be automounted at gnome login. Can't use laptop when not at home.
Hei.
I run fedora 25 on a laptop and have used autofs to access NFS for a long time without a hassle. Lately something (within gnome) triggers autofs to mount NFS, which shouldn't be the case and never was before. So when I boot the laptop without network connection to the NFS server I can't log into a gnome session. It just hangs with a grey screen for about 5 minutes then the screen turns white and a message appears: Ops, something went wrong, session can't be recoverd. 'gedit' does something similar, that's why I suspect something inside Gnome. I have of course edited files from the NFS share in 'gedit' but even when I start it empty with no file it triggers autofs to automount NFS. So how can I trace down what application is triggering autofs when I login to Gnome? I can't use my laptop anymore when I'm not at home :( Help appreciated Thanks! |
Just a guess from me.... could this be tracker at work attempting to index the NFS shares?
https://mail.gnome.org/archives/trac.../msg00013.html https://ask.fedoraproject.org/en/que...cker-in-gnome/ Apologies if on the wrong track here :) |
Good idea, but sadly it's not that.
Any more suggestions? |
Hmmm...it has to be something relying on a cache rather than autofs. I'm not a Gnome user so can really only offer basic advice here), but you could check settings in dconf-editor perhaps...
dconf-editor > org > gnome > desktop > media-handling I know this is where auto-mounting is configured, but not sure what else can be configured there, and it's not clear to me what else would try to use a stale mount unless it was cached by that system. |
You could try increasing the logging verbosity of autofs in the hope that it might provide more clues about what is causing it to be triggered perhaps...
Quote:
Restart it with Code:
systemctl restart autofs Code:
journalctl -u autofs Code:
journalctl -fu autofs |
Hei ferrari,
Good idea to increase logging, here is some output. I shut down, then removed the ethernet cable and Gnome session won't start until I reconnected the cable. It looks like autofs just attempts to mount NFS for whatever reason, nothing else involved. As you suggestet I also disabled to automount all media in the dconf-editor. I also waited until autofs unmounted by itself after 15 minutes just to make sure there isn't some mechanism that tries to restore the old state on reboot. Sadly, nothing changed, but now it's clear that it is autofs itself. Code:
Feb 24 23:10:40 dell7240.home.no automount[1611]: 1 remaining in /nfs Thanks for your help ferrari. Do you see anything strange in the log? |
This may be relevant...
https://mail.gnome.org/archives/gvfs.../msg00001.html It links to this Gnome bug report. In particular comment#5 nicely summarises Quote:
|
Hei ferrari, many thanks for all your suggestions.
So I really learned something new about udev, udisks and gvfs. Looked at many suggestet things from the threads and bug report and tried an entry of /etc/fstab containing x-gvfs-hide for my nfs path. Nothing worked. In the end I returned to search for some sort of Nautilus cache as I had noticed that suddenly NFS got mounted when I just started Nautilus without actually accessing the NFS. Just for fun I removed the bookmark to the NFS's root directory and made a new one then (that bookmark was there for month without problems). ...and now it works. That's one of those things that make no sense at all but now Nautilus behaves as before and as it should. Thanks again for pushing me into searching for every possibility! So, removing the bookmark and recreating it, did the trick. Cheers! |
I'm glad to have walked along with you on this issue. I knew it had to involve something that was cached, so not surprised by your findings with Nautilus here. Anyway, well done with tracking it down. :)
|
You were on the right track with some caching problem. Gnome doesn't really make it easy for people to figure out what is going on under the hood.
This morning I noticed that recreating the bookmark to the NFS in Nautilus also fixed the problem that I couldn't start Gedit when not on the network. Nice, I can work again :) Thanks mate! |
All times are GMT -5. The time now is 07:11 PM. |