Page 1 of 1

FTP An I/O exception occurred

Posted: 22 Jun 2022, 11:05
by ODZ
Hi,
I have a error notify while uploading larger/longer duration ftp files.
I have passive mode on and files like 30GB are transferred without problems, only when transfer takes more time than ex. 1h11m (>4260s) then the error 'An I/O exception occurred" appears. I tested more data (~35GB), tranfserred 1h21m then error appears.
BUT despite this error all files are copied to the ftp server and are the same with local copies!
I have used Cobian Backup before without problems with FTP.
LOG debug in Cobian Reflector:

Code: Select all

    257 "/test" is current directory.
    ---> TYPE I
    200 Type set to I
    ---> PASV
    227 Entering Passive Mode ()
    Server supplied address=
    Server supplied port=56564
    autoPassiveIPSubstitution=False
    remoteAddr=
    SecureSocket timeout=120000
    SecureSocket timeout=120000
    SecureSocket timeout=120000
    SecureSocket timeout=120000
    ---> STOR Test 2022-06-20 23;23;11.zip
    150 Opening data channel for file upload to server of "/test/Test 2022-06-20 23;23;11.zip"
    Closing source stream
    Shutdown(Both)
    Attempt to close unconnected passive data-channel.
    Transferred 35709520017 bytes to remote host
ERR Socket.Receive() failed
ERR A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
    Read failed ('' read so far)
ERR ReadReply failed
ERR An I/O exception occurred.

Re: FTP An I/O exception occurred

Posted: 23 Jun 2022, 19:31
by cobian
Try to check the Keep alive transfer if your server supports it. Also increase the Time out from 120000 to something bigger.

Re: FTP An I/O exception occurred

Posted: 01 Jul 2022, 09:02
by ODZ
Thx, it helped.
I checked option "keep alive transfer" and increased the Time out.
Now there is a new command wakeup message in the debug logs:

Code: Select all

...
    SecureSocket timeout=25000000
    ---> STOR Test 2022-06-29 23;23;11.zip
    150 Opening data channel for file upload to server of "/test/Test 2022-06-29 23;23;11.zip"
    Sending server wakeup message
    ---> NOOP
    Sending server wakeup message
    ---> NOOP
    Sending server wakeup message
    ---> NOOP
...

    Sending server wakeup message
    ---> NOOP
    Closing source stream
    Shutdown(Both)
    Attempt to close unconnected passive data-channel.
    Transferred 35874836539 bytes to remote host
    200 OK

Re: FTP An I/O exception occurred

Posted: 01 Jul 2022, 18:17
by cobian
Great!