Topic "Random disconnects when using WinSCP"

Author Message
poNgz0r
[View user's profile]

Joined: 2015-05-06
Posts: 5
Location: Amsterdam
Good day,

I am new to this forum, well not exactly new since i looked for hours for a solution to my following problem:

Random disconnects when using WinSCP

- We are a company and using WinSCP to connect to our webshops. We start WinSCP via an external link that looks like this: sftp://shopname:password@server.com
- WinSCP opens you can browse directories and we are all good.
- After some time (can be 5 min, can be 10 min, can be 1 min) WinSCP randomly loses the connection saying: Network error: Software caused connection abort

I am aware of this topic: https://winscp.net/eng/docs/message_software_caused_connection_abort#in_a_middle_of_session (since i have it in the middle of a session)

I am not sure how i can use the "Keep alives" since we are dynamically establishing connection with WinSCP and not saving sessions (since we can't because of the big number of webshops)

What i tried:
- Looking for solutions on this forum
- I am using the latest version of WinSCP: 5.7.2 (b 5316)
- Trying to renew window every 10 seconds (which i found out on this forum that it doesn't make sense)

How are we connecting
- Dynamically via a link in FireFox
- SFTP or SCP

Other
- We use Notepad++ for editing
- We recently switched from ADSL to Cable modem. Since the switch to cable modem we have this problem

What i don't know
- How to make a log that you can help me with to find the problem

Can you guys please help me, this is so frustrating that we keep losing the connection. It's very hard for our programmers to work like this. They don't know if a file is saved or not on the server. There are so many timeouts like 10-20 in 5 minutes

Log file (part)
I tried creating a new file test.php and then the timeout came again

Code:

. 2015-05-06 14:33:54.590 [Background 1] Session upkeep
. 2015-05-06 14:33:55.102 Session upkeep
. 2015-05-06 14:33:55.601 Session upkeep
. 2015-05-06 14:33:56.116 Session upkeep
. 2015-05-06 14:33:56.615 Session upkeep
. 2015-05-06 14:33:56.615 [Background 1] Session upkeep
. 2015-05-06 14:33:57.130 Session upkeep
. 2015-05-06 14:33:57.634 Session upkeep
. 2015-05-06 14:33:58.144 Session upkeep
. 2015-05-06 14:33:58.643 Session upkeep
. 2015-05-06 14:33:58.643 [Background 1] Session upkeep
. 2015-05-06 14:33:59.158 Session upkeep
. 2015-05-06 14:33:59.658 Session upkeep
. 2015-05-06 14:34:00.172 Session upkeep
. 2015-05-06 14:34:00.673 Session upkeep
. 2015-05-06 14:34:00.673 [Background 1] Session upkeep
. 2015-05-06 14:34:01.186 Session upkeep
. 2015-05-06 14:34:01.688 Session upkeep
. 2015-05-06 14:34:02.200 Session upkeep
. 2015-05-06 14:34:02.700 Session upkeep
. 2015-05-06 14:34:02.700 [Background 1] Session upkeep
. 2015-05-06 14:34:03.213 Session upkeep
. 2015-05-06 14:34:03.730 Session upkeep
. 2015-05-06 14:34:04.227 Session upkeep
. 2015-05-06 14:34:04.727 Session upkeep
. 2015-05-06 14:34:04.727 [Background 1] Session upkeep
. 2015-05-06 14:34:05.241 Session upkeep
. 2015-05-06 14:34:05.744 Session upkeep
. 2015-05-06 14:34:06.255 Session upkeep
. 2015-05-06 14:34:06.768 Session upkeep
. 2015-05-06 14:34:06.768 [Background 1] Session upkeep
. 2015-05-06 14:34:07.269 Session upkeep
. 2015-05-06 14:34:07.773 Session upkeep
. 2015-05-06 14:34:08.069 Listing file "/var/www/vhosts/fastfuriousscooters.nl/httpdocs/test.php".
> 2015-05-06 14:34:08.069 Type: SSH_FXP_LSTAT, Size: 65, Number: 117511
. 2015-05-06 14:34:08.070 Sent 69 bytes
. 2015-05-06 14:34:08.070 There are 0 bytes remaining in the send buffer
. 2015-05-06 14:34:08.071 Read 4 bytes (24 pending)
. 2015-05-06 14:34:08.071 Read 24 bytes (0 pending)
< 2015-05-06 14:34:08.071 Type: SSH_FXP_STATUS, Size: 24, Number: 51972
. 2015-05-06 14:34:08.071 Discarding reserved response
. 2015-05-06 14:34:08.071 Waiting for another 4 bytes
. 2015-05-06 14:34:08.874 [Background 1] Session upkeep
. 2015-05-06 14:34:10.876 [Background 1] Session upkeep
. 2015-05-06 14:34:13.078 [Background 1] Session upkeep
. 2015-05-06 14:34:15.680 [Background 1] Session upkeep
. 2015-05-06 14:34:18.083 [Background 1] Session upkeep
. 2015-05-06 14:34:20.085 [Background 1] Session upkeep
. 2015-05-06 14:34:22.289 [Background 1] Session upkeep
. 2015-05-06 14:34:23.090 Waiting for data timed out, asking user what to do.
. 2015-05-06 14:34:23.090 Asking user:
. 2015-05-06 14:34:23.090 **Host reageert niet meer sinds 15 seconden.
. 2015-05-06 14:34:23.090
. 2015-05-06 14:34:23.090 Opnieuw 15 seconden wachten?** ()
. 2015-05-06 14:34:23.496 Session upkeep
. 2015-05-06 14:34:24.008 Session upkeep
. 2015-05-06 14:34:24.511 Session upkeep
. 2015-05-06 14:34:24.511 [Background 1] Session upkeep
. 2015-05-06 14:34:25.023 Session upkeep
. 2015-05-06 14:34:25.522 Session upkeep
. 2015-05-06 14:34:26.037 Session upkeep
. 2015-05-06 14:34:26.550 Session upkeep
. 2015-05-06 14:34:26.550 [Background 1] Session upkeep
. 2015-05-06 14:34:27.051 Session upkeep
. 2015-05-06 14:34:27.162 Detected network event
. 2015-05-06 14:34:27.162 Data has arrived, closing query to user.
. 2015-05-06 14:34:27.167 Network error: Software caused connection abort
* 2015-05-06 14:34:27.168 (ESshFatal) Netwerkfout: Software veroorzaakt verbreking netwerkverbinding
* 2015-05-06 14:34:27.168 Kan de kenmerken van bestand '/var/www/vhosts/fastfuriousscooters.nl/httpdocs/test.php' niet opvragen.
. 2015-05-06 14:34:31.887 Looking up host "web01.shoptrader.com"
. 2015-05-06 14:34:31.927 Connecting to 87.250.157.7 port 22


Code:

. 2015-05-06 15:04:20.686 Waiting for data timed out, asking user what to do.
. 2015-05-06 15:04:20.686 Asking user:
. 2015-05-06 15:04:20.686 **Host reageert niet meer sinds 15 seconden.
. 2015-05-06 15:04:20.686
. 2015-05-06 15:04:20.686 Opnieuw 15 seconden wachten?** ()
. 2015-05-06 15:04:20.766 Session upkeep
. 2015-05-06 15:04:21.278 Session upkeep
. 2015-05-06 15:04:21.779 Session upkeep
. 2015-05-06 15:04:21.779 [Background 1] Session upkeep
. 2015-05-06 15:04:22.279 Session upkeep
. 2015-05-06 15:04:22.793 Session upkeep
. 2015-05-06 15:04:23.295 Session upkeep
. 2015-05-06 15:04:23.807 Session upkeep
. 2015-05-06 15:04:23.807 [Background 1] Session upkeep
. 2015-05-06 15:04:24.309 Session upkeep
. 2015-05-06 15:04:24.743 Detected network event
. 2015-05-06 15:04:24.743 Data has arrived, closing query to user.
. 2015-05-06 15:04:24.746 Network error: Software caused connection abort
. 2015-05-06 15:04:24.748 Connection was lost, asking what to do.
. 2015-05-06 15:04:24.748 Asking user:
. 2015-05-06 15:04:24.748 Netwerkfout: Software veroorzaakt verbreking netwerkverbinding ()
. 2015-05-06 15:04:25.840 Looking up host "web01.shoptrader.com"
. 2015-05-06 15:04:25.841 Connecting to 87.250.157.7 port 22
. 2015-05-06 15:04:25.856 Waiting for the server to continue with the initialization
. 2015-05-06 15:04:25.857 [Background 1] Session upkeep
. 2015-05-06 15:04:25.858 Detected network event
. 2015-05-06 15:04:25.868 Detected network event
. 2015-05-06 15:04:25.868 Server version: SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.4
. 2015-05-06 15:04:25.868 Using SSH protocol version 2
. 2015-05-06 15:04:25.868 We claim version: SSH-2.0-WinSCP_release_5.7.2
. 2015-05-06 15:04:25.868 Waiting for the server to continue with the initialization
. 2015-05-06 15:04:25.888 Detected network event
. 2015-05-06 15:04:25.889 Doing Diffie-Hellman group exchange
. 2015-05-06 15:04:25.889 Waiting for the server to continue with the initialization
. 2015-05-06 15:04:25.947 Detected network event
. 2015-05-06 15:04:25.947 Doing Diffie-Hellman key exchange with hash SHA-256
. 2015-05-06 15:04:26.294 Waiting for the server to continue with the initialization
. 2015-05-06 15:04:26.318 Detected network event
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
If you setup a stored site for a particular host with enabled the keepaliaves, do you get the disconnects or not?
poNgz0r
[View user's profile]

Joined: 2015-05-06
Posts: 5
Location: Amsterdam
Let me try this and get back to you ASAP, at the moment i am in the middle of a new development and cannot test immediately. Sorry will report ASAP
poNgz0r
[View user's profile]

Joined: 2015-05-06
Posts: 5
Location: Amsterdam
I tried Filezilla for now, i also get the DC there. When i use it active it goes pretty ok, but if i stop focussing the winscp/ filezilla window and then after 20 sec use the window again i get the time out. Here is a log from filezilla

Code:

Status:   Bestandsoverdracht geslaagd, 63.997 bytes naar 1 seconde overgedragen
Status:   Verbinding met server verbroken
Status:   Mappenlijst van "/var/www/vhosts/allwheeldeals.nl/httpdocs/bernini" ophalen...
Opdracht:   cd ".."
Fout:   Network error: Software caused connection abort
Fout:   Ontvangen van mappenlijst is mislukt


FOUT: = the error

What i also tried is disabled DHCP in our modem since i found that as a solution, unfortunately that is not solving the problem


We also phoned our hosting provider they said it has something to do with losing NAT tables. We can fix it by saving the session first, then in advanced options send dummy packages and then connect again. But at that point we have all our customer data stored into single pc's we don't really want that.

What would be nice if that there was an option that you can activate dummy packages for a live session without storing it
poNgz0r
[View user's profile]

Joined: 2015-05-06
Posts: 5
Location: Amsterdam
Seems like we have more succes over normal FTP instead of SFTP. Do you have any idea's: prikryl?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24995
Location: Prague, Czechia
It looks like a network problem. I'm not an expert in that.
poNgz0r
[View user's profile]

Joined: 2015-05-06
Posts: 5
Location: Amsterdam
Last thing i checked, via FTP i stay connected, seems to be a problem with SCP/ SFTP anyone ideas?
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License