FTP An I/O exception occurred

Questions about Cobian Reflector
Post Reply
ODZ
Posts: 2
Joined: 22 Jun 2022, 10:41

FTP An I/O exception occurred

Post 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.
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: FTP An I/O exception occurred

Post by cobian »

Try to check the Keep alive transfer if your server supports it. Also increase the Time out from 120000 to something bigger.
--
Luis Cobian
Cobian Backup's creator
ODZ
Posts: 2
Joined: 22 Jun 2022, 10:41

Re: FTP An I/O exception occurred

Post 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
User avatar
cobian
Site Admin
Posts: 4492
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: FTP An I/O exception occurred

Post by cobian »

Great!
--
Luis Cobian
Cobian Backup's creator
Post Reply