15

On ubuntu 14.04 LTS, sometimes my computer fails to launch Nautilus. This always happens when I have been working on it for a while (maybe after suspending and waking it again?), never when I just turned it on. I suspect this is related to gvfs filesystems mounted regularly and then left alone for a while. nautilus -q and similar commands give

Could not register the application: Timeout was reached

whereas sudo nautilus does launch it.

This sounds related, but I don't understand the solution.

Logging out and back in solves the problem.

I know that other people have had the same problem in the past. I do think this is a serious issue. I reinstalled ubuntu recently (for other reasons) and the problem is still there. Might be worth mentioning that I have nautilus-dropbox installed.

Martino
  • 200

5 Answers5

14

I had the same problem this morning! For no apparent reason.

I manage to restart nautilus by

killall nautilus
nautilus -q
nautilus

I'm trying to figure out what caused the mysterious failure.

Andrea Borga
  • 1,100
6

Yes, it is problably gvfs related.

The problem is this bug: gvfs should unmount remote mounts on network disconnect

Running this should allow you to use nautilus again.

gvfs-mount -s sftp & gvfs-mount -s smb & gvfs-mount -s ftp

Can take a few seconds to work

You can run it automatically. You have to write a script and save it as:

/etc/pm/sleep.d/20-gvfs

#!/bin/bash

case "$1" in
suspend)
    # executed on suspend
    gvfs-mount -s sftp & gvfs-mount -s smb & gvfs-mount -s ftp
    ;;
resume) 
    # executed on resume
*)
    ;;
esac

and

sudo chmod +x /etc/pm/sleep.d/20-gvfs
3

killall nautilus didn't work for me.

I ran :

ps aux |grep nautilus

To list all the process containing nautilus

And I stopped them by using the following command:

kill -9 <PID>
1

killall nautilus didn't work for me.

It was rabbitvcs for me. I kill it by using ps aux|grep rabbit and then kill -9 <pid>

It was the rabbitvcs service that stuck the nautilus from time to time.

Carl Cheung
  • 335
  • 1
  • 4
0

You just need to run the following commands

  1. killall nautilus
  2. Open a new terminal and run nautilus