Error when trying to sync with ftp server

Error when trying to sync with ftp server

rclone v1.56.2

  • os/version: ubuntu 18.04 (64 bit)
  • os/kernel: 4.15.0-159-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.16.8
  • go/linking: static
  • go/tags: none

FTP Server

rclone sync /home/mastersys/backup/DocumentosMastersys FTPSidnei:/FTP(sda1)/FTP
[FTPSidnei]
type = ftp
host = xxxx.dyndns.info
user = mastersys
port = 2121
pass = xxxxxxxxxxx

when I run the sync command I get the following message

Syntax error: "(" unexpected

I have this ftp server configured inside my Tp-link router.
I already tested the access with the Filezilla program, everything is ok
the path I get is as follows:
/FTP(sda1)/FTP

I've tried in several ways to insert this path in the Sync command, but I wasn't successful.

Thanks for listening!

hello and welcome to the forum,

can you post the output of rclone lsd FTPSidnei:/FTP(sda1)/FTP -vv

You need to quote those ( ) in the shell path so try

rclone sync /home/mastersys/backup/DocumentosMastersys 'FTPSidnei:/FTP(sda1)/FTP'

@ser01:~$ rclone lsd "FTPSidnei:/FTP(sda1)/FTP" -vv

2021/10/14 13:10:49 DEBUG : rclone: Version "v1.56.2" starting with parameters ["rclone" "lsd" "FTPSidnei:/FTP(sda1)/FTP" "-vv"]
2021/10/14 13:10:49 DEBUG : Creating backend with remote "FTPSidnei:/FTP(sda1)/FTP"
2021/10/14 13:10:49 DEBUG : Using config file from "/home/mastersys/.config/rclone/rclone.conf"
2021/10/14 13:10:49 DEBUG : ftp://xxxx.dyndns.info:2121/FTP(sda1)/FTP: Connecting to FTP server
2021/10/14 13:10:50 DEBUG : 2 go routines active

When I run the command
'''
rclone sync /home/mastersys/backup/DocumentosMastersys "FTPSidnei:/FTP(sda1)/FTP"
'''
I'm getting the following message:
'''
Failed to sync: update store: 550 Permission denied.
'''
Remembering that, using other FTP connection applications, using the same username and password, which is configured in rclone, I can upload and delete files in the folder.

my problem is exactly the same

perhaps copy a single file, add -vv to the command and post the entire output

Would be like this?

'''
rclone sync /home/mastersys/backup/DocumentosMastersys/test.tar.gz "FTPSidnei:/FTP(sda1)/FTP" -vv
'''
mastersys@ser01:~$ rclone sync /home/mastersys/backup/DocumentosMastersys/teste.tar.gz "FTPSidnei:/FTP(sda1)/FTP" -vv
2021/10/14 14:48:43 DEBUG : rclone: Version "v1.56.2" starting with parameters ["rclone" "sync" "/home/mastersys/backup/DocumentosMastersys/teste.tar.gz" "FTPSidnei:/FTP(sda1)/FTP" "-vv"]
2021/10/14 14:48:43 DEBUG : Creating backend with remote "/home/mastersys/backup/DocumentosMastersys/teste.tar.gz"
2021/10/14 14:48:43 DEBUG : Using config file from "/home/mastersys/.config/rclone/rclone.conf"
2021/10/14 14:48:43 DEBUG : fs cache: adding new entry for parent of "/home/mastersys/backup/DocumentosMastersys/teste.tar.gz", "/home/mastersys/backup/DocumentosMastersys"
2021/10/14 14:48:43 DEBUG : Creating backend with remote "FTPSidnei:/FTP(sda1)/FTP"
2021/10/14 14:48:43 DEBUG : ftp://xxxx.dyndns.info:2121/FTP(sda1)/FTP: Connecting to FTP server
2021/10/14 14:48:43 DEBUG : teste.tar.gz: Need to transfer - File not found at Destination
2021/10/14 14:48:45 DEBUG : ftp://xxxx.dyndns.info:2121/FTP(sda1)/FTP: Connecting to FTP server
2021/10/14 14:48:45 DEBUG : teste.tar.gz: Failed to remove: object not found
2021/10/14 14:48:45 ERROR : teste.tar.gz: Failed to copy: update stor: 550 Permission denied.
2021/10/14 14:48:45 ERROR : Attempt 1/3 failed with 1 errors and: update stor: 550 Permission denied.
2021/10/14 14:48:45 DEBUG : teste.tar.gz: Need to transfer - File not found at Destination
2021/10/14 14:48:46 DEBUG : ftp://xxxx.dyndns.info:2121/FTP(sda1)/FTP: Connecting to FTP server
2021/10/14 14:48:46 DEBUG : teste.tar.gz: Failed to remove: object not found
2021/10/14 14:48:46 ERROR : teste.tar.gz: Failed to copy: update stor: 550 Permission denied.
2021/10/14 14:48:46 ERROR : Attempt 2/3 failed with 1 errors and: update stor: 550 Permission denied.
2021/10/14 14:48:46 DEBUG : teste.tar.gz: Need to transfer - File not found at Destination
2021/10/14 14:48:47 DEBUG : ftp://xxx.dyndns.info:2121/FTP(sda1)/FTP: Connecting to FTP server
2021/10/14 14:48:47 DEBUG : teste.tar.gz: Failed to remove: object not found
2021/10/14 14:48:47 ERROR : teste.tar.gz: Failed to copy: update stor: 550 Permission denied.
2021/10/14 14:48:47 ERROR : Attempt 3/3 failed with 1 errors and: update stor: 550 Permission denied.
2021/10/14 14:48:47 INFO :
Transferred: 0 / 0 Byte, -, 0 Byte/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 3.8s

2021/10/14 14:48:47 DEBUG : 3 go routines active
2021/10/14 14:48:47 Failed to sync: update stor: 550 Permission denied.

  • i gave up on using ftp a long time ago and rclone ftp support is lacking in many ways.
    so not sure the exact issue.
    but i wanted to have the log for other rcloners to look at.

  • to confirm, you can copy that exact file using another ftp client?

  • might try these flags to a deeper look
    The implementation of : --dump headers, --dump bodies, --dump auth for debugging isn't the same as for rclone HTTP based backends - it has less fine grained control.

  • as a side issue, are you connecting to a self-hosted server, a hosted server or what?
    can you use sftp instead of ftp?

Hi!
I use the Tp-Link router's ftp service.
I don't have the option to use sftp instead of ftp.

Connection data using FileZilla

Status: Resolving the address of xxxxx.dyndns.info
Status: Connecting xxx.xxx.xxx.xxx:2121...
Status: Connection established, waiting for welcome message...
Status: Flat FTP is insecure. Please switch to FTP over TLS.
Status: Identified
Status: Getting folder list...
State: The server sent a passive response with a non-routable address. Using server address instead.
Status: Directory listing "/" successful

the example from filezilla is just listing the root folder, not copying teste.tar.gz

with rclone, did you try to hard code the ipaddress instead of the ddns domain name of xxxx.dyndns.info

for what it worth, rclone can act as a ftp server and better yet a sftp server
rclone serve ftp and rclone serve sftp

to your rclone command, add --dump headers, --dump bodies, --dump auth --retries=1 --low-level-retries=1
post the redacted ouput.
try to enclose the text with three backticks so the output looks formatted like this.

rclone version
rclone v1.56.0
- os/version: Microsoft Windows 10 Pro 2009 (64 bit)
- os/kernel: 10.0.19043.1266 (x86_64)
- os/type: windows
- os/arch: amd64
- go/version: go1.16.5
- go/linking: dynamic
- go/tags: cmount

@ivandeex, any ideas?

I changed the Dyndns to the ip

Using the command

rclone sync /home/mastersys/backup/DocumentosMastersys/test.tar.gz "FTPxxxxx:/FTP(sda1)/FTP" -vv --dump headers, --dump bodies, --dump auth --retries=1 -- low-level-retries=1

I have this feedback


2021/10/14 16:49:29 DEBUG : rclone: Version "v1.56.2" starting with parameters ["rclone" "sync" "/home/mastersys/backup/DocumentosMastersys/teste.tar.gz" "FTPSidnei:/FTP(sda1)/FTP" "-vv" "--dump" "headers," "--dump" "bodies," "--dump" "auth" "--retries=1" "--low-level-retries=1"]
2021/10/14 16:49:29 DEBUG : Creating backend with remote "/home/mastersys/backup/DocumentosMastersys/teste.tar.gz"
2021/10/14 16:49:29 DEBUG : Using config file from "/home/mastersys/.config/rclone/rclone.conf"
2021/10/14 16:49:29 DEBUG : fs cache: adding new entry for parent of "/home/mastersys/backup/DocumentosMastersys/teste.tar.gz", "/home/mastersys/backup/DocumentosMastersys"
2021/10/14 16:49:29 DEBUG : Creating backend with remote "FTPSidnei:/FTP(sda1)/FTP"
2021/10/14 16:49:29 DEBUG : ftp://xxxxx:2121/FTP(sda1)/FTP: Connecting to FTP server
2021/10/14 16:49:29 DEBUG : teste.tar.gz: Need to transfer - File not found at Destination
2021/10/14 16:49:30 DEBUG : ftp://xxxxx:2121/FTP(sda1)/FTP: Connecting to FTP server
2021/10/14 16:49:31 DEBUG : teste.tar.gz: Failed to remove: object not found
2021/10/14 16:49:31 ERROR : teste.tar.gz: Failed to copy: update stor: 550 Permission denied.
2021/10/14 16:49:31 ERROR : Attempt 1/1 failed with 1 errors and: update stor: 550 Permission denied.
2021/10/14 16:49:31 INFO  :
Transferred:              0 / 0 Byte, -, 0 Byte/s, ETA -
Errors:                 1 (retrying may help)
Elapsed time:         1.6s

2021/10/14 16:49:31 DEBUG : 3 go routines active
2021/10/14 16:49:31 Failed to sync: update stor: 550 Permission denied.

Here is the Filezilla log

Status: Resolving xxxxx.dyndns.info address
Status: Connecting xxxxx:2121...
Status: Connection established, waiting for welcome message...
Status: Server without security, does not support FTP over TLS.
Status: Identified
Status: Getting folder list...
State: The server sent a passive response with a non-routable address. Using server address instead.
Status: Directory listing "/" successful
Status: Retrieving directory listing of "/FTP(sda1)"...
State: The server sent a passive response with a non-routable address. Using server address instead.
Status: Directory listing "/FTP(sda1)" successful
Status: Retrieving directory listing of "/FTP(sda1)/FTP"...
State: The server sent a passive response with a non-routable address. Using server address instead.
Status: Calculating the server's time zone...
Status: Timezone offset of server is 0 seconds.
Status: Directory listing "/FTP(sda1)/FTP" successful
Status: Resolving xxxxx.dyndns.info address
Status: Connecting xxxxx:2121...
Status: Connection established, waiting for welcome message...
Status: Server without security, does not support FTP over TLS.
Status: Identified
Status: Starting to upload from D:\Jxxxxx\Downloads\teste.tar.gz
State: The server sent a passive response with a non-routable address. Using server address instead.
Status: File transfer successful, transfer 891,438,898 bytes in 112 seconds
Status: Retrieving directory listing of "/FTP(sda1)/FTP"...
State: The server sent a passive response with a non-routable address. Using server address instead.
Status: Directory listing "/FTP(sda1)/FTP" successful
State: Disconnected from server
Status: Connection terminated by server
Status: Deleting "/FTP(sda1)/FTP/teste.tar.gz"
Status: Resolving the address of xxxxx.dyndns.info
Status: Connecting xxxxx:2121...
Status: Connection established, waiting for welcome message...
Status: Server without security, does not support FTP over TLS.
Status: Identified 

Your log lacks protocol details. I guess --dump a, --dump b, does not work as expected. Let's make it into --dump a,b,c.

Try

rclone sync /home/mastersys/backup/DocumentosMastersys/test.tar.gz "FTPxxxxx:/FTP(sda1)/FTP" -vv --dump headers,bodies --retries=1 -- low-level-retries=1 --log-file dump-for-forum.log

and resend the log here.

P.S. Probably your bug already has a patch which is being waiting on the project patch queue... I publish rclone beta releases with all my FTP patches applied. Try the latest iva release from Releases · ivandeex/rclone · GitHub. Did it help?

Hello
I made some changes to the command you sent in.

sudo rclone sync /home/mastersys/backup/DocumentosMastersys/teste.tar.gz "FTPSidnei:/FTP(sda1)/FTP" -vv --dump-headers --dump-bodies --retries=1 --low-level-retries=11

2021/10/15 11:51:37 NOTICE: --dump-headers is obsolete - please use --dump headers instead
2021/10/15 11:51:37 NOTICE: --dump-bodies is obsolete - please use --dump bodies instead
2021/10/15 11:51:37 DEBUG : rclone: Version "v1.56.2" starting with parameters ["rclone" "sync" "/home/mastersys/backup/DocumentosMastersys/teste.tar.gz" "FTPSidnei:/FTP(sda1)/FTP" "-vv" "--dump-headers" "--dump-bodies" "--retries=1" "--low-level-retries=11"]
2021/10/15 11:51:37 DEBUG : Creating backend with remote "/home/mastersys/backup/DocumentosMastersys/teste.tar.gz"
2021/10/15 11:51:37 DEBUG : Using config file from "/home/mastersys/.config/rclone/rclone.conf"
2021/10/15 11:51:37 DEBUG : fs cache: adding new entry for parent of "/home/mastersys/backup/DocumentosMastersys/teste.tar.gz", "/home/mastersys/backup/DocumentosMastersys"
2021/10/15 11:51:37 DEBUG : Creating backend with remote "FTPSidnei:/FTP(sda1)/FTP"
2021/10/15 11:51:37 DEBUG : ftp://xxxxxdyndns.info:2121/FTP(sda1)/FTP: Connecting to FTP server
2021/10/15 11:51:37 DEBUG : FTP Rx: "220 Welcome to TP-LINK FTP server"
2021/10/15 11:51:37 DEBUG : FTP Tx: "USER mastersys"
2021/10/15 11:51:37 DEBUG : FTP Rx: "331 Please specify the password."
2021/10/15 11:51:37 DEBUG : FTP Tx: PASS *****
2021/10/15 11:51:37 DEBUG : FTP Rx: "230 Login successful."
2021/10/15 11:51:37 DEBUG : FTP Tx: "FEAT"
2021/10/15 11:51:37 DEBUG : FTP Rx: "211-Features:"
2021/10/15 11:51:37 DEBUG : FTP Rx: " EPRT"
2021/10/15 11:51:37 DEBUG : FTP Rx: " EPSV"
2021/10/15 11:51:37 DEBUG : FTP Rx: " MDTM"
2021/10/15 11:51:37 DEBUG : FTP Rx: " PASV"
2021/10/15 11:51:37 DEBUG : FTP Rx: " REST STREAM"
2021/10/15 11:51:37 DEBUG : FTP Rx: " SIZE"
2021/10/15 11:51:37 DEBUG : FTP Rx: " TVFS"
2021/10/15 11:51:37 DEBUG : FTP Rx: " UTF8"
2021/10/15 11:51:37 DEBUG : FTP Rx: "211 End"
2021/10/15 11:51:37 DEBUG : FTP Tx: "TYPE I"
2021/10/15 11:51:37 DEBUG : FTP Rx: "200 Switching to Binary mode."
2021/10/15 11:51:37 DEBUG : FTP Tx: "OPTS UTF8 ON"
2021/10/15 11:51:37 DEBUG : FTP Rx: "200 Always in UTF8 mode."
2021/10/15 11:51:37 DEBUG : FTP Tx: "EPSV"
2021/10/15 11:51:37 DEBUG : FTP Rx: "229 Entering Extended Passive Mode (|||59995|)."
2021/10/15 11:51:37 DEBUG : FTP Tx: "LIST /FTP(sda1)"
2021/10/15 11:51:37 DEBUG : FTP Rx: "150 Here comes the directory listing."
2021/10/15 11:51:37 DEBUG : FTP Rx: "226 Directory send OK."
2021/10/15 11:51:37 DEBUG : FTP Tx: "EPSV"
2021/10/15 11:51:37 DEBUG : FTP Rx: "229 Entering Extended Passive Mode (|||59993|)."
2021/10/15 11:51:37 DEBUG : FTP Tx: "LIST /FTP(sda1)/FTP"
2021/10/15 11:51:37 DEBUG : FTP Rx: "150 Here comes the directory listing."
2021/10/15 11:51:37 DEBUG : FTP Rx: "226 Directory send OK."
2021/10/15 11:51:37 DEBUG : teste.tar.gz: Need to transfer - File not found at Destination
2021/10/15 11:51:37 DEBUG : FTP Tx: "EPSV"
2021/10/15 11:51:37 DEBUG : FTP Rx: "229 Entering Extended Passive Mode (|||59996|)."
2021/10/15 11:51:37 DEBUG : FTP Tx: "LIST /FTP(sda1)"
2021/10/15 11:51:37 DEBUG : FTP Rx: "150 Here comes the directory listing."
2021/10/15 11:51:37 DEBUG : FTP Rx: "226 Directory send OK."
2021/10/15 11:51:37 DEBUG : FTP Tx: "EPSV"
2021/10/15 11:51:37 DEBUG : FTP Rx: "229 Entering Extended Passive Mode (|||59999|)."
2021/10/15 11:51:37 DEBUG : FTP Tx: "STOR /FTP(sda1)/FTP/teste.tar.gz"
2021/10/15 11:51:37 DEBUG : FTP Rx: "550 Permission denied."
2021/10/15 11:51:37 DEBUG : FTP Tx: "QUIT"
2021/10/15 11:51:38 DEBUG : ftp://xxxxxdyndns.info:2121/FTP(sda1)/FTP: Connecting to FTP server
2021/10/15 11:51:38 DEBUG : FTP Rx: "220 Welcome to TP-LINK FTP server"
2021/10/15 11:51:38 DEBUG : FTP Tx: "USER mastersys"
2021/10/15 11:51:38 DEBUG : FTP Rx: "331 Please specify the password."
2021/10/15 11:51:38 DEBUG : FTP Tx: PASS *****
2021/10/15 11:51:38 DEBUG : FTP Rx: "230 Login successful."
2021/10/15 11:51:38 DEBUG : FTP Tx: "FEAT"
2021/10/15 11:51:38 DEBUG : FTP Rx: "211-Features:"
2021/10/15 11:51:38 DEBUG : FTP Rx: " EPRT"
2021/10/15 11:51:38 DEBUG : FTP Rx: " EPSV"
2021/10/15 11:51:38 DEBUG : FTP Rx: " MDTM"
2021/10/15 11:51:38 DEBUG : FTP Rx: " PASV"
2021/10/15 11:51:38 DEBUG : FTP Rx: " REST STREAM"
2021/10/15 11:51:38 DEBUG : FTP Rx: " SIZE"
2021/10/15 11:51:38 DEBUG : FTP Rx: " TVFS"
2021/10/15 11:51:38 DEBUG : FTP Rx: " UTF8"
2021/10/15 11:51:38 DEBUG : FTP Rx: "211 End"
2021/10/15 11:51:38 DEBUG : FTP Tx: "TYPE I"
2021/10/15 11:51:38 DEBUG : FTP Rx: "200 Switching to Binary mode."
2021/10/15 11:51:38 DEBUG : FTP Tx: "OPTS UTF8 ON"
2021/10/15 11:51:38 DEBUG : FTP Rx: "200 Always in UTF8 mode."
2021/10/15 11:51:38 DEBUG : FTP Tx: "EPSV"
2021/10/15 11:51:38 DEBUG : FTP Rx: "229 Entering Extended Passive Mode (|||59994|)."
2021/10/15 11:51:38 DEBUG : FTP Tx: "LIST /FTP(sda1)/FTP"
2021/10/15 11:51:38 DEBUG : FTP Rx: "150 Here comes the directory listing."
2021/10/15 11:51:38 DEBUG : FTP Rx: "226 Directory send OK."
2021/10/15 11:51:38 DEBUG : teste.tar.gz: Failed to remove: object not found
2021/10/15 11:51:38 ERROR : teste.tar.gz: Failed to copy: update stor: 550 Permission denied.
2021/10/15 11:51:38 ERROR : Attempt 1/1 failed with 1 errors and: update stor: 550 Permission denied.
2021/10/15 11:51:38 INFO :
Transferred: 0 / 0 Byte, -, 0 Byte/s, ETA -
Errors: 1 (retrying may help)
Elapsed time: 1.4s

2021/10/15 11:51:38 DEBUG : 3 go routines active
2021/10/15 11:51:38 Failed to sync: update stor: 550 Permission denied.

Thank you for the log
Looks pretty obvious to me.

User mastersys has no write permission for directory /FTP(sda1)/FTP/ on the tp-link server.

The directory being empty confirms that Filezilla also failed to create a file there.

I think you can use a web interface of your tp-link or login there by ssh to fix directory permissions.

Hello
the directory was done because I had deleted the file.
file upload log by Filezilla.

Estado:	A resolver o endereço de xxxxxdyndns.info
Estado:	Conectando xxx.xxx.xx.xx:2121...
Estado:	Conexão estabelecida, esperando mensagem de boas-vindas...
Estado:	Servidor sem segurança, não suporta FTP sobre TLS.
Estado:	Identificado
Estado:	Obtendo lista de pastas...
Estado:	O servidor enviou uma resposta passiva com um endereço não roteável. Usando o endereço do servidor como alternativa.
Estado:	Listagem do diretório "/" bem sucedida
Estado:	Recuperando listagem do diretório de "/FTP(sda1)"...
Estado:	O servidor enviou uma resposta passiva com um endereço não roteável. Usando o endereço do servidor como alternativa.
Estado:	Calculando o fuso horário do servidor...
Estado:	Timezone offset of server is 0 seconds.
Estado:	Listagem do diretório "/FTP(sda1)" bem sucedida
Estado:	Recuperando listagem do diretório de "/FTP(sda1)/FTP"...
Estado:	O servidor enviou uma resposta passiva com um endereço não roteável. Usando o endereço do servidor como alternativa.
Estado:	Listagem do diretório "/FTP(sda1)/FTP" bem sucedida
Estado:	A resolver o endereço de xxxxxdyndns.info
Estado:	Conectando xxx.xxx.xx.xx.156:2121...
Estado:	Conexão estabelecida, esperando mensagem de boas-vindas...
Estado:	Servidor sem segurança, não suporta FTP sobre TLS.
Estado:	Identificado
Estado:	Iniciando o envio de D:\JSIDNEI\Downloads\teste.tar.gz
Estado:	O servidor enviou uma resposta passiva com um endereço não roteável. Usando o endereço do servidor como alternativa.
Estado:	Transferência do arquivo bem sucedida, transferência de 891.438.898 bytes em 112 segundos
Estado:	Recuperando listagem do diretório de "/FTP(sda1)/FTP"...
Estado:	O servidor enviou uma resposta passiva com um endereço não roteável. Usando o endereço do servidor como alternativa.
Estado:	Listagem do diretório "/FTP(sda1)/FTP" bem sucedida

log using command

rclone lsd "FTPSidnei:/FTP(sda1)/FTP/" -vv  --dump-headers --dump-bodies
2021/10/15 12:17:31 NOTICE: --dump-headers is obsolete - please use --dump headers instead
2021/10/15 12:17:31 NOTICE: --dump-bodies is obsolete - please use --dump bodies instead
2021/10/15 12:17:31 DEBUG : rclone: Version "v1.56.2-iva20" starting with parameters ["rclone" "lsd" "FTPSidnei:/FTP(sda1)/FTP/" "-vv" "--dump-headers" "--dump-bodies"]
2021/10/15 12:17:31 DEBUG : Creating backend with remote "FTPSidnei:/FTP(sda1)/FTP/"
2021/10/15 12:17:31 DEBUG : Using config file from "C:\\Users\\J.SIDNEI\\AppData\\Roaming\\rclone\\rclone.conf"
2021/10/15 12:17:31 DEBUG : ftp://xxxxxdyndns.info:2121/FTP(sda1)/FTP: Connecting to FTP server
2021/10/15 12:17:31 DEBUG : FTP Rx: "220 Welcome to TP-LINK FTP server"
2021/10/15 12:17:31 DEBUG : FTP Tx: "USER mastersys"
2021/10/15 12:17:31 DEBUG : FTP Rx: "331 Please specify the password."
2021/10/15 12:17:31 DEBUG : FTP Tx: PASS *****
2021/10/15 12:17:31 DEBUG : FTP Rx: "230 Login successful."
2021/10/15 12:17:31 DEBUG : FTP Tx: "FEAT"
2021/10/15 12:17:31 DEBUG : FTP Rx: "211-Features:"
2021/10/15 12:17:31 DEBUG : FTP Rx: " EPRT"
2021/10/15 12:17:31 DEBUG : FTP Rx: " EPSV"
2021/10/15 12:17:31 DEBUG : FTP Rx: " MDTM"
2021/10/15 12:17:31 DEBUG : FTP Rx: " PASV"
2021/10/15 12:17:31 DEBUG : FTP Rx: " REST STREAM"
2021/10/15 12:17:31 DEBUG : FTP Rx: " SIZE"
2021/10/15 12:17:31 DEBUG : FTP Rx: " TVFS"
2021/10/15 12:17:31 DEBUG : FTP Rx: " UTF8"
2021/10/15 12:17:31 DEBUG : FTP Rx: "211 End"
2021/10/15 12:17:31 DEBUG : FTP Tx: "TYPE I"
2021/10/15 12:17:31 DEBUG : FTP Rx: "200 Switching to Binary mode."
2021/10/15 12:17:31 DEBUG : FTP Tx: "OPTS UTF8 ON"
2021/10/15 12:17:31 DEBUG : FTP Rx: "200 Always in UTF8 mode."
2021/10/15 12:17:31 DEBUG : FTP Tx: "EPSV"
2021/10/15 12:17:31 DEBUG : FTP Rx: "229 Entering Extended Passive Mode (|||59990|)."
2021/10/15 12:17:31 DEBUG : FTP Tx: "LIST /FTP(sda1)/FTP"
2021/10/15 12:17:31 DEBUG : FTP Rx: "150 Here comes the directory listing."
2021/10/15 12:17:31 DEBUG : FTP Rx: "-rwxrwxrwx    1 0        0        891438898 Oct 15 15:13 teste.tar.gz"
2021/10/15 12:17:31 DEBUG : FTP Rx: "-rwxrwxrwx    1 0        0               0 Oct 14 12:49 teste.txt"
2021/10/15 12:17:31 DEBUG : FTP Rx: "226 Directory send OK."
2021/10/15 12:17:31 DEBUG : FTP Tx: "EPSV"
2021/10/15 12:17:31 DEBUG : FTP Rx: "229 Entering Extended Passive Mode (|||59991|)."
2021/10/15 12:17:31 DEBUG : FTP Tx: "LIST /FTP(sda1)/FTP"
2021/10/15 12:17:31 DEBUG : FTP Rx: "150 Here comes the directory listing."
2021/10/15 12:17:31 DEBUG : FTP Rx: "-rwxrwxrwx    1 0        0        891438898 Oct 15 15:13 teste.tar.gz"
2021/10/15 12:17:31 DEBUG : FTP Rx: "-rwxrwxrwx    1 0        0               0 Oct 14 12:49 teste.txt"
2021/10/15 12:17:31 DEBUG : FTP Rx: "226 Directory send OK."
2021/10/15 12:17:31 DEBUG : 2 go routines active

The beta has got a patch which makes --dump headers,bodies print directory listings.
Now when you use it, we have more data :smiley: (Cc @ncw)

It shows that the file on tp-link has user/group id of 0 i.e. belongs to root. This can mean one of the following:

  1. ftp server hides real owner of the file
  2. filezilla connected as root to the ftp server and uploaded the file as root
    rclone being connected to tp-link as mastersys, cannot overwrite a file owned by root or cannot write in the /FTP(sda1)/FTP folder belonging to root
    @JSidnei could you recheck the filezilla settings?
  3. filezilla uploaded the file being connected as another user mapped by tplink ftp server to root
    I can't analyze this case - it depends on the tp-link configuration. You should look into it..
  4. probably something else

perhaps copy a single file, add -vv to the command and post the entire output

Hi!
Filezilla and rclone are using the same username and password.

On the tp-link router, I just enter a username and password to access ftp.