How to fix a "Software caused connection abort" error in Ubuntu 14.04?

Solution 1:

I found something quite similar. Only I can access some files and not others. In my case the problem is limited to the connection with gvfs (and here SMB only - it works well using AFP to another server). I used a workaround by mounting the shares manually or via fstab. Both worked for me.

Ingo

Solution 2:

This error message may appear after a samba connection has been idle (Bug #1321354).

Microsoft servers drop idle connections after 15 minutes. This behavior can be disabled by the following command as administrator (Article ID: 297684).

net config server /autodisconnect:-1

Alternatively, adding the following script to the gnome startup applications keeps the connections alive.

#!/bin/bash
while true
do
    ls /run/user/`id -u`/gvfs/smb-share:* &> /dev/null
    sleep 600
done