Rclone copy gives error Connection reset by peer, using FTP

sudo rclone copy /mnt/local/downloads/torrents/rutorrent/completed "freebox:/Disque dur/Vidéos/IPTV"


2020/07/17 09:32:00 ERROR : Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Failed to copy: update stor: write tcp 10.0.2.4:55306->FTP IP:37824: write: connection reset by peer
2020/07/17 09:32:03 ERROR : Scorpion/Season 4/Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Failed to copy: update stor: write tcp 10.0.2.4:55366->FTP IP:37824: write: connection reset by peer
2020/07/17 09:32:03 ERROR : Attempt 1/3 failed with 2 errors and: update stor: write tcp 10.0.2.4:55366->FTP IP:37824: write: connection reset by peer
2020/07/17 09:32:21 ERROR : Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Failed to copy: update stor: write tcp 10.0.2.4:55834->FTP IP:37824: write: connection reset by peer
2020/07/17 09:32:24 ERROR : Scorpion/Season 4/Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Failed to copy: update stor: write tcp 10.0.2.4:55894->FTP IP:37824: write: connection reset by peer
2020/07/17 09:32:24 ERROR : Attempt 2/3 failed with 2 errors and: update stor: write tcp 10.0.2.4:55894->FTP IP:37824: write: connection reset by peer
2020/07/17 09:32:43 ERROR : Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Failed to copy: update stor: write tcp 10.0.2.4:56374->FTP IP:37824: write: connection reset by peer
2020/07/17 09:32:45 ERROR : Scorpion/Season 4/Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Failed to copy: update stor: write tcp 10.0.2.4:56426->FTP IP:37824: write: connection reset by peer
2020/07/17 09:32:45 ERROR : Attempt 3/3 failed with 2 errors and: update stor: write tcp 10.0.2.4:56426->FTP IP:37824: write: connection reset by peer
2020/07/17 09:32:45 Failed to copy with 2 errors: last error was: update stor: write tcp 10.0.2.4:56426->FTP IP:37824: write: connection reset by peer

What is the problem you are having with rclone?

I have this connection reset by peer error that I cant solve

What is your rclone version (output from rclone version)

rclone v1.52.2-221-g1fafcd4d-beta

  • os/arch: linux/amd64

  • go version: go1.14.5

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Ubuntu 18.04 LTS, 64 bits

Which cloud storage system are you using? (eg Google Drive)

FTP

The command you were trying to run (eg rclone copy /tmp remote:tmp)

sudo rclone copy /mnt/local/downloads/torrents/rutorrent/completed "freebox:/Disque dur/Vidéos/IPTV"

The rclone config contents with secrets removed.

[freebox]
type = ftp
host = HOST
user = freebox
port = 40161
pass = Z0t0FGb72nP5F8Lk0XutLfICwY1Oreh75wEHQw
explicit_tls = true

A log from the command with the -vv flag

2020/07/17 09:36:27 DEBUG : rclone: Version "v1.52.2-221-g1fafcd4d-beta" starting with parameters ["rclone" "copy" "/mnt/local/downloads/torrents/rutorrent/completed" "freebox:/Disque dur/Vidéos/IPTV" "-vv"]
2020/07/17 09:36:27 DEBUG : Using config file from "/home/seed/.config/rclone/rclone.conf"
2020/07/17 09:36:27 DEBUG : ftp://FTP IP:40161/Disque dur/Vidéos/IPTV: Connecting to FTP server
2020/07/17 09:36:28 DEBUG : ftp://FTP IP:40161/Disque dur/Vidéos/IPTV: Waiting for checks to finish
2020/07/17 09:36:28 DEBUG : ftp://FTP IP:40161/Disque dur/Vidéos/IPTV: Connecting to FTP server
2020/07/17 09:36:28 DEBUG : ftp://FTP IP:40161/Disque dur/Vidéos/IPTV: Waiting for transfers to finish
2020/07/17 09:36:30 DEBUG : ftp://FTP IP:40161/Disque dur/Vidéos/IPTV: Connecting to FTP server
2020/07/17 09:36:30 DEBUG : Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Failed to remove: object not found
2020/07/17 09:36:30 DEBUG : Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Received error: update stor: write tcp 10.0.2.4:59434->FTP IP:37824: write: connection reset by peer - low level retry 1/10
2020/07/17 09:36:30 DEBUG : ftp://FTP IP:40161/Disque dur/Vidéos/IPTV: Connecting to FTP server
2020/07/17 09:36:30 DEBUG : Scorpion/Season 4/Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Failed to remove: object not found
2020/07/17 09:36:30 DEBUG : Scorpion/Season 4/Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Received error: update stor: write tcp 10.0.2.4:59444->FTP IP:37824: write: connection reset by peer - low level retry 1/10
2020/07/17 09:36:31 DEBUG : ftp://FTP IP:40161/Disque dur/Vidéos/IPTV: Connecting to FTP server
2020/07/17 09:36:32 DEBUG : Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Failed to remove: object not found
2020/07/17 09:36:32 DEBUG : Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Received error: update stor: write tcp 10.0.2.4:59482->FTP IP:37824: write: connection reset by peer - low level retry 2/10
2020/07/17 09:36:32 DEBUG : ftp://FTP IP:40161/Disque dur/Vidéos/IPTV: Connecting to FTP server
2020/07/17 09:36:32 DEBUG : Scorpion/Season 4/Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Failed to remove: object not found
2020/07/17 09:36:32 DEBUG : Scorpion/Season 4/Scorpion - S04E22 - Une tempête peut en cacher une autre - WQM.mkv: Received error: update stor: write tcp 10.0.2.4:59496->FTP IP:37824: write: connection reset by peer - low level retry 2/10
2020/07/17 09:36:33 DEBUG : ftp://FTP IP:40161/Disque dur/Vidéos/IPTV: Connecting to FTP server

Can you use rclone lsf to see the files in the FTP server?

seed@feederbox:~$ rclone lsl freebox
        2 2020-07-16 22:28:05.150212071 a
seed@feederbox:~$ rclone lsf freebox
a

This is what I got. Normally, there should be a "Disque dur" folder

You need to put a : on the end of the remote.

rclone lsl freebox:
seed@feederbox:~$ rclone lsl freebox:
seed@feederbox:~$ 

I also use a freebox. I have the same mistake.

1 Like

Share the debug:

rclone lsl freebox -vv

Looks like there are no files on the other side.

2020/07/17 13:36:38 DEBUG : rclone: Version "v1.52.2-221-g1fafcd4d-beta" starting with parameters ["rclone" "lsl" "freebox:" "-vv"]
2020/07/17 13:36:38 DEBUG : Using config file from "/home/seed/.config/rclone/rclone.conf"
2020/07/17 13:36:38 DEBUG : ftp://FTP IP:40161: Connecting to FTP server
2020/07/17 13:36:38 DEBUG : 2 go routines active

That means the user you have configured or something on the FTP server is not showing you what's on the other side. you should see something like this:

2020/07/17 07:44:18 DEBUG : rclone: Version "v1.52.2-214-g67098511-beta" starting with parameters ["rclone" "lsd" "FTP:" "-vv"]
2020/07/17 07:44:18 DEBUG : Using config file from "/opt/rclone/rclone.conf"
2020/07/17 07:44:18 DEBUG : ftp://test.rebex.net:21: Connecting to FTP server
          -1 2015-10-27 12:46:00        -1 pub
2020/07/17 07:44:20 DEBUG : 2 go routines active

The user I'm using on filezilla is the same that I configured on rclone

Hello I also have the same problem I also have a freebox

techandapp@PAR-206287:~$ rclone sync '/home/techandapp/torrents/Action 2019' freebox:/Freebox/Films 2020/07/17 17:13:56 ERROR : Guns Akimbo [FR-EN] (2019).mkv: Failed to copy: update stor: write tcp [2001:bc8:1200:5:208:a2ff:fe0c:5d36]:47160->[2a01:e0a:21c:1300::1]:11722: write: connection reset by peer
2020/07/17 17:13:56 ERROR : ftp://serveur15.freeboxos.fr:17493/Freebox/Films: not deleting files as there were IO errors
2020/07/17 17:13:56 ERROR : ftp://serveur15.freeboxos.fr:17493/Freebox/Films: not deleting directories as there were IO errors
2020/07/17 17:13:56 ERROR : Attempt 1/3 failed with 1 errors and: update stor: write tcp [2001:bc8:1200:5:208:a2ff:fe0c:5d36]:47160->[2a01:e0a:21c:1300::1]:11722: write: connection reset by peer

perhaps try to connect with ipv4, not ipv6

I have ipv6 enabled and I can't disable ipv6 and go back to ipv4.

I confirm, we can't disable IPV6

not sure that ipv6 is the problem, but i know that ftp over ipv6 can be a problem sometimes.

why not contact the support at freebox and ask them for the settings to use for rclone.

asking freebox is like asking AT&T, its an internet provider

1 Like

The issue is you aren't seeing any files or directories when you copy something.

Pick one file and see if that works and copy it to the root like

rclone copy somefile freebox: -vv

and share the output.


2020/07/17 16:36:59 DEBUG : rclone: Version "v1.52.2-222-gbcd362fc-beta" starting with parameters ["rclone" "copy" "upload.sh" "freebox:/Disque dur/Vidéos/IPTV" "-vv"]
2020/07/17 16:36:59 DEBUG : Using config file from "/home/AzureUser/.config/rclone/rclone.conf"
2020/07/17 16:36:59 DEBUG : fs cache: adding new entry for parent of "upload.sh", "/var/www/html"
2020/07/17 16:36:59 DEBUG : ftp://FTP IP:40161/Disque dur/Vidéos/IPTV: Connecting to FTP server
2020/07/17 16:37:00 DEBUG : upload.sh: Need to transfer - File not found at Destination
2020/07/17 16:37:00 ERROR : upload.sh: Failed to copy: update getinfo: object not found
2020/07/17 16:37:00 ERROR : Attempt 1/3 failed with 1 errors and: update getinfo: object not found
2020/07/17 16:37:01 DEBUG : upload.sh: Need to transfer - File not found at Destination
2020/07/17 16:37:01 ERROR : upload.sh: Failed to copy: update getinfo: object not found
2020/07/17 16:37:01 ERROR : Attempt 2/3 failed with 1 errors and: update getinfo: object not found
2020/07/17 16:37:01 DEBUG : upload.sh: Need to transfer - File not found at Destination
2020/07/17 16:37:02 ERROR : upload.sh: Failed to copy: update getinfo: object not found
2020/07/17 16:37:02 ERROR : Attempt 3/3 failed with 1 errors and: update getinfo: object not found
2020/07/17 16:37:02 INFO  : 
Transferred:   	       177 / 177 Bytes, 100%, 98 Bytes/s, ETA 0s
Errors:                 1 (retrying may help)
Elapsed time:         1.8s

2020/07/17 16:37:02 DEBUG : 2 go routines active
2020/07/17 16:37:02 Failed to copy: update getinfo: object not found

Please just copy to the root, we've already stated that doesn't work.

rclone copy upload.sh freebox:-vv
rclone copy upload.sh freebox: -vv
2020/07/17 16:40:09 DEBUG : rclone: Version "v1.52.2-222-gbcd362fc-beta" starting with parameters ["rclone" "copy" "upload.sh" "freebox:" "-vv"]
2020/07/17 16:40:09 DEBUG : Using config file from "/home/AzureUser/.config/rclone/rclone.conf"
2020/07/17 16:40:09 DEBUG : fs cache: adding new entry for parent of "upload.sh", "/var/www/html"
2020/07/17 16:40:09 DEBUG : ftp://FTP IP:40161: Connecting to FTP server
2020/07/17 16:40:09 DEBUG : upload.sh: Need to transfer - File not found at Destination
2020/07/17 16:40:10 DEBUG : ftp://FTP IP:40161: Connecting to FTP server
2020/07/17 16:40:10 DEBUG : upload.sh: Failed to remove: object not found
2020/07/17 16:40:10 ERROR : upload.sh: Failed to copy: update stor: 550 unable to open /upload.sh for writing.
2020/07/17 16:40:10 ERROR : Attempt 1/3 failed with 1 errors and: update stor: 550 unable to open /upload.sh for writing.
2020/07/17 16:40:10 DEBUG : upload.sh: Need to transfer - File not found at Destination
2020/07/17 16:40:11 DEBUG : ftp://FTP IP:40161: Connecting to FTP server
2020/07/17 16:40:11 DEBUG : upload.sh: Failed to remove: object not found
2020/07/17 16:40:11 ERROR : upload.sh: Failed to copy: update stor: 550 unable to open /upload.sh for writing.
2020/07/17 16:40:11 ERROR : Attempt 2/3 failed with 1 errors and: update stor: 550 unable to open /upload.sh for writing.
2020/07/17 16:40:11 DEBUG : upload.sh: Need to transfer - File not found at Destination
2020/07/17 16:40:12 DEBUG : ftp://FTP IP:40161: Connecting to FTP server
2020/07/17 16:40:13 DEBUG : upload.sh: Failed to remove: object not found
2020/07/17 16:40:13 ERROR : upload.sh: Failed to copy: update stor: 550 unable to open /upload.sh for writing.
2020/07/17 16:40:13 ERROR : Attempt 3/3 failed with 1 errors and: update stor: 550 unable to open /upload.sh for writing.
2020/07/17 16:40:13 INFO  : 
Transferred:   	         0 / 0 Bytes, -, 0 Bytes/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         3.7s

2020/07/17 16:40:13 DEBUG : 2 go routines active
2020/07/17 16:40:13 Failed to copy: update stor: 550 unable to open /upload.sh for writing.

I don't have right to write on root folder