← Back to team overview

desktop-packages team mailing list archive

[Bug 377322] Re: my sftp conncection breaks spontaneously after a while, I have to re-login to fix it.

 

This bug is extremely annoying to me when performing certain operations.
Is there anything I can do to help fix it?  I also get it using FTP,
windows shares, and in fact, any sort of GVFS connection.

To create the problem, I just do the following:

1. Add a new network server connection through the 'Connect to Server' dialog.
2. Add a bookmark
3. Provide credentials, and choose 'remember forever' (it doesn't matter if you choose another option).
4. Browse to nautilus bookmark.

Now, you can open files, copy, save, and things work fine.

5. Leave connection open (a few minutes is usually enough for many
servers, depending on settings)

I, and many other people do this all the time - for instance when doing
webdesign, development and so on, I like to be able to work directly on
the server over SSH or FTP.  Not an unusual use case.

6. Try to save, browse or open a new Nauiltus window to the GVFS
location.  You will receive:

Could not open location 'sftp://......'

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.

The desired behaviour is for this error to be handled, and the
connection automatically created.  Nautilus already has the credentials
- there isn't a use case I can see where this error is useful to
anything but irritating the user...

We should *expect* connections to be broken - for instance over wifi, or
with other unreliable network connections.  It is not an unusual
occurrence to lose connection to the server for any number of reasons.
Providing this doesn't actually happen whilst copying a file, saving
etc, then it should be easy enough to automatically reconnect, and drop
the existing connection.  In fact, even if it drops a connection whilst
copying or saving, it would be possible to attempt a reconnection with a
user prompt.  It makes much better sense than throwing an ugly error for
no good reason :)

I am happy to help resolve this - it's ultimately very annoying for a
great many people I imagine...

I will take a look at the code, and see if I can understand it well
enough to contribute that way.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/377322

Title:
  my sftp conncection breaks spontaneously after a while, I have to re-
  login to fix it.

Status in “nautilus” package in Ubuntu:
  Triaged

Bug description:
  When I have used an sftp connection for a while - started from
  Places/Connect to Server or from a bookmark - it breaks, typically
  after an hour or so. The only way to get an sftp connection to that
  server again is to re login to my computer. The error message I get is

  Could not open location 'sftp://......'

  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

  Sometimes when this happens, my computer freezes for about 60 seconds.

  I have Ubuntu 9.04 64 bits - error happened on Hardy also - on a
  computer with an AMD64 processor.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/377322/+subscriptions