[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.
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.
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
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
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
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
The beta has got a patch which makes --dump headers,bodies print directory listings.
Now when you use it, we have more data (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:
ftp server hides real owner of the file
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?
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..