For some weird reason Rclone is parsing FTP output wrong and adds a space, rendering ls ouput a mess and sync unusable.
Using the ftp command on linux or filezilla nothing seems out of place.
rclone v1.59.0
- os/version: arch (64 bit)
- os/kernel: 5.18.12-arch1-1 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.18.3
- go/linking: dynamic
- go/tags: none
Also tested on Windows
Remote type:
FTP
The config is the default FTP with nothing special added.
This is the FTP output:
drwxrwxrwx 2 ---- staff 256 Mar 21 2019 ANAGRAFICA
drwxrwxrwx 2 ---- staff 256 Apr 16 2019 APP
-rw-rw-rw- 1 ---- staff 2506 Dec 17 2013 CaratteristicheUM_temp.xml
-rw-rw-rw- 1 ---- staff 136 Dec 17 2013 FuoriRange.txt
-rw-rw---- 1 ---- sapsys 35074 Mar 13 2019 PM_GV2.CSV
-rw-rw---- 1 ---- sapsys 30047 Jul 19 23:00 PM_GV2.TXT
-rw-rw-rw- 1 ---- staff 435 Dec 28 2015 config.xml
This is the Rclone output:
rclone -vv --dump bodies ls -l ftpDemetra:SESTOSG
2022/07/20 14:08:35 DEBUG : rclone: Version "v1.59.0" starting with parameters ["rclone" "-vv" "--dump" "bodies" "ls" "-l" "ftpDemetra:SESTOSG"]
2022/07/20 14:08:35 DEBUG : Creating backend with remote "ftpDemetra:SESTOSG"
2022/07/20 14:08:35 DEBUG : Using config file from "/home/rob/.config/rclone/rclone.conf"
2022/07/20 14:08:35 DEBUG : ftp://----:21/SESTOSG: Connecting to FTP server
2022/07/20 14:08:35 DEBUG : FTP Rx: "220 --- FTP server (Version 4.2 Fri Apr 6 19:34:30 CDT 2018) ready."
2022/07/20 14:08:35 DEBUG : FTP Tx: "USER ---"
2022/07/20 14:08:35 DEBUG : FTP Rx: "331 Password required for ftppm."
2022/07/20 14:08:35 DEBUG : FTP Tx: PASS *****
2022/07/20 14:08:35 DEBUG : FTP Rx: "230-Last unsuccessful login: Wed Jul 20 14:06:04 2022 on ftp from ::ffff:10.200.40.50"
2022/07/20 14:08:35 DEBUG : FTP Rx: "230-Last login: Wed Jul 20 14:07:11 2022 on ftp from ::ffff:10.200.40.50"
2022/07/20 14:08:35 DEBUG : FTP Rx: "230 User ---- logged in."
2022/07/20 14:08:35 DEBUG : FTP Tx: "FEAT"
2022/07/20 14:08:35 DEBUG : FTP Rx: "500 'FEAT': command not understood."
2022/07/20 14:08:35 DEBUG : FTP Tx: "TYPE I"
2022/07/20 14:08:35 DEBUG : FTP Rx: "200 Type set to I."
2022/07/20 14:08:35 DEBUG : FTP Tx: "EPSV"
2022/07/20 14:08:36 DEBUG : FTP Rx: "229 Entering Extended Passive Mode (|||62755|)"
2022/07/20 14:08:36 DEBUG : FTP Tx: "LIST ."
2022/07/20 14:08:36 DEBUG : FTP Rx: "150 Opening data connection for /bin/ls."
2022/07/20 14:08:36 DEBUG : FTP Rx: "total 200\n-rwxr----- 1 ---- staff 255 Apr 4 2019 .profile\ndrwx------ 2 ---- staff 256 Apr 9 2019 .ssh\ndrwxrwxrwt 4 ---- sapsys 4096 May 18 2019 ALTOMONTE\ndrwxrwxrwt 4 ---- sapsys 4096 May 27 13:00 AZOTATI\ndrwxrwxrwt 4 ---- sapsys 4096 May 18 2019 BUSSI\ndrwxrwxrwt 4 ---- sapsys 4096 Mar 13 2019 CANDELA\ndrwxrwxr-x 2 ---- sapsys 36864 Jul 19 20:00 ESTRAZIONE_MAT\ndrwxrwxrwx 2 ---- staff 256 Sep 29 2021 GUIDE\ndrwxrwxrwt 4 ---- staff 256 Oct 10 2018 IDROELETTRICO\ndrwxrwxrwt 5 ---- sapsys 4096 May 18 2019 MARGHERALEVANTE\ndrwxrwxrwt 4 ---- sapsys 4096 Jul 20 13:27 SESTOSG\ndrwxrwxrwt 4 ---- sapsys 4096 Apr 10 2019 SIMERICRICHI\ndrwxrwxrwt 4 ---- sapsys 8192 Nov 19 2021 SIRACUSA\ndrwxrwxrwt 4 ---- sapsys 4096 Apr 10 2019 TERNI\ndrwxrwxrwt 4 ---- sapsys 4096 May 27 13:00 TORVISCOSA\ndrwxrwxrwt 3 ---- sapsys 8192 Jul 20 14:01 UPLOAD\ndrwxr-xr-x 2 root system 256 Nov 6 2013 lost+found\ndrwxrwxr-x 2 ---- staff 256 Apr 11 2019 test_1104\n"
2022/07/20 14:08:36 DEBUG : FTP Rx: "226 Transfer complete."
2022/07/20 14:08:36 DEBUG : FTP Tx: "EPSV"
2022/07/20 14:08:36 DEBUG : FTP Rx: "229 Entering Extended Passive Mode (|||62756|)"
2022/07/20 14:08:36 DEBUG : FTP Tx: "LIST SESTOSG"
2022/07/20 14:08:36 DEBUG : FTP Rx: "150 Opening data connection for /bin/ls."
2022/07/20 14:08:36 DEBUG : FTP Rx: "total 160\ndrwxrwxrwx 2 ---- staff 256 Mar 21 2019 ANAGRAFICA\ndrwxrwxrwx 2 ---- staff 256 Apr 16 2019 APP\n-rw-rw-rw- 1 ---- staff 2506 Dec 17 2013 CaratteristicheUM_temp.xml\n-rw-rw-rw- 1 ---- staff 136 Dec 17 2013 FuoriRange.txt\n-rw-rw---- 1 ---- sapsys 35074 Mar 13 2019 PM_GV2.CSV\n-rw-rw---- 1 ---- sapsys 30047 Jul 19 23:00 PM_GV2.TXT\n-rw-rw-rw- 1 ---- staff 435 Dec 28 2015 config.xml\n"
2022/07/20 14:08:36 DEBUG : FTP Rx: "226 Transfer complete."
2506 CaratteristicheUM_temp.xml
136 FuoriRange.txt
35074 PM_GV2.CSV
435 config.xml
30047 PM_GV2.TXT
2022/07/20 14:08:36 DEBUG : FTP Tx: "EPSV"
2022/07/20 14:08:36 DEBUG : ftp://----:21/SESTOSG: Connecting to FTP server
2022/07/20 14:08:36 DEBUG : FTP Rx: "229 Entering Extended Passive Mode (|||62757|)"
2022/07/20 14:08:36 DEBUG : FTP Tx: "LIST SESTOSG/ APP"
2022/07/20 14:08:36 DEBUG : FTP Rx: "220 ---- FTP server (Version 4.2 Fri Apr 6 19:34:30 CDT 2018) ready."
2022/07/20 14:08:36 DEBUG : FTP Tx: "USER ----"
2022/07/20 14:08:36 DEBUG : FTP Rx: "150 Opening data connection for /bin/ls."
2022/07/20 14:08:36 DEBUG : FTP Rx: "SESTOSG/:\ntotal 160\ndrwxrwxrwx 2 ---- staff 256 Mar 21 2019 ANAGRAFICA\ndrwxrwxrwx 2 ---- staff 256 Apr 16 2019 APP\n-rw-rw-rw- 1 ---- staff 2506 Dec 17 2013 CaratteristicheUM_temp.xml"
2022/07/20 14:08:36 DEBUG : FTP Rx: "\n-rw-rw-rw- 1 ---- staff 136 Dec 17 2013 FuoriRange.txt\n-rw-rw---- 1 ---- sapsys 35074 Mar 13 2019 PM_GV2.CSV\n-rw-rw---- 1 ---- sapsys 30047 Jul 19 23:00 PM_GV2.TXT\n-rw-rw-rw- 1 ---- staff 435 Dec 28 2015 config.xml\n"
2022/07/20 14:08:36 DEBUG : FTP Rx: "226 Transfer complete."
2506 APP/ CaratteristicheUM_temp.xml
136 APP/ FuoriRange.txt
35074 APP/ PM_GV2.CSV
435 APP/ config.xml
30047 APP/PM_GV2.TXT
I'm pretty sure that the issue comes from the date format, as you can see when the year is showed instead of a date a space will be added messing up the parsing.
Thanks!