Could not read from socket: ECONNRESET

Come here to discuss FileZilla and FTP in general

Moderator: Project members

Post Reply
Message
Author
User avatar
Bikerdave
500 Command not understood
Posts: 4
Joined: 2008-07-29 10:24
First name: David
Last name: S
Location: South West England Near Exeter

Could not read from socket: ECONNRESET

#1 Post by Bikerdave » 2008-07-29 10:31

Could not read from socket: ECONNRESET - Connection reset by peer

This is an error message I am getting using Filezilla 3 (all versions). I do not get it when using v2.

I have the Timeout set to 0 no disconnection as I usually shut down manually when I am finished transferring files. Other than that I have not made any other changes to the settings for Filezilla.

Is this something in Filezilla or at my server and if at the server why only in FZ v3 not V2?

Thanks

User avatar
botg
Site Admin
Posts: 35505
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Could not read from socket: ECONNRESET

#2 Post by botg » 2008-07-29 12:40

Complete logs would be nice.

User avatar
Bikerdave
500 Command not understood
Posts: 4
Joined: 2008-07-29 10:24
First name: David
Last name: S
Location: South West England Near Exeter

Re: Could not read from socket: ECONNRESET

#3 Post by Bikerdave » 2008-07-29 13:01

Sorry I did not realise the need . . . I assume you mean the log of events that preceded the error message, that being so here is a sample session. (I have edited IP and url addresses for security)

Status: Resolving address of ftp.servage.net
Status: Connecting to 77.xxx.xx.26:21...
Status: Connection established, waiting for welcome message...
Response: 220 FTP Server #5
Command: USER xxxxxx
Response: 331 Password required for xxxxxx
Command: PASS ***********
Response: 230 User xxxxxx logged in
Command: SYST
Response: 215 UNIX Type: L8
Command: FEAT
Response: 211-Features:
Response: MDTM
Response: AUTH TLS
Response: PBSZ
Response: PROT
Response: REST STREAM
Response: SIZE
Response: 211 End
Status: Connected
Status: Retrieving directory listing...
Command: CWD /fxxxxd.co.uk
Response: 250 CWD command successful
Command: PWD
Response: 257 "/fxxxxxd.co.uk" is the current directory
Command: TYPE I
Response: 200 Type set to I
Command: PASV
Response: 227 Entering Passive Mode (77,xxx,xx,26,228,26).
Command: LIST
Response: 150 Opening ASCII mode data connection for file list
Response: 226 Transfer complete
Status: Calculating timezone offset of server...
Command: MDTM CHANGELOG.php
Response: 213 20080729093810
Status: Timezone offsets: Server: 0 seconds. Local: 3600 seconds. Difference: 3600 seconds.
Status: Directory listing successful
Status: Retrieving directory listing...
Command: CDUP
Response: 250 CDUP command successful
Command: PWD
Response: 257 "/" is the current directory
Command: PASV
Response: 227 Entering Passive Mode (77,xxx,xx,26,211,36).
Command: LIST
Response: 150 Opening ASCII mode data connection for file list
Response: 226 Transfer complete
Status: Directory listing successful
Response: 421 No transfer timeout (180 seconds): closing control connection
Error: Disconnected from server: ECONNABORTED - Connection aborted

User avatar
botg
Site Admin
Posts: 35505
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Could not read from socket: ECONNRESET

#4 Post by botg » 2008-07-29 14:08

The server and all related routers and firewalls need to be configured according to the Network Configuration guide.

User avatar
Bikerdave
500 Command not understood
Posts: 4
Joined: 2008-07-29 10:24
First name: David
Last name: S
Location: South West England Near Exeter

Re: Could not read from socket: ECONNRESET

#5 Post by Bikerdave » 2008-07-29 17:59

Thank you for the link but a clue as to what I am supposed to be looking for would have been useful.

However as both versions connect, communicate and transfer files correctly is it not reasonable to assume that the connection configuration is correct?

The problem is that when Version 2 is idle it stays connected and when Version 3 is idle it stays connected for 180 seconds and then disconnects.

Therefore logic suggests that there is something in Version 3 that is causing the shut-down.

User avatar
boco
Contributor
Posts: 26910
Joined: 2006-05-01 03:28
Location: Germany

Re: Could not read from socket: ECONNRESET

#6 Post by boco » 2008-07-29 20:10

Only the browsing connection will be disconnected. Transfers will continue running.
Filezilla 3 doesn't use the browsing connection for transfers (Filezilla 2 did with small files), so it will timeout. You can try keep-alive (Settings:Connection-FTP) but it's not guaranteed to work.
Response: 421 No transfer timeout (180 seconds): closing control connection
Error: Disconnected from server: ECONNABORTED - Connection aborted
180 seconds is much too low. Several hours would be great. It's a server setting unfortunately. :(
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

User avatar
Bikerdave
500 Command not understood
Posts: 4
Joined: 2008-07-29 10:24
First name: David
Last name: S
Location: South West England Near Exeter

Re: Could not read from socket: ECONNRESET

#7 Post by Bikerdave » 2008-07-31 12:57

Thanks for your help but I am still confused, if its a Server function then why does it only happen with FZ v3?

I have been in contact with the Server Host and they so far has suggested using different server connections but they both do the same so I am still no further forward.

In the meantime I am using FZ v2 with complete success. . .ah well . .

User avatar
boco
Contributor
Posts: 26910
Joined: 2006-05-01 03:28
Location: Germany

Re: Could not read from socket: ECONNRESET

#8 Post by boco » 2008-08-02 02:11

Filezilla 3 does NEVER use the browsing connection for any transfers (Filezilla 2 did). As only a transfer (up-/download) will reset that counter, the browsing connection will always time out. Just click the R or press CTRL+C and it should re-login.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Post Reply