rclone: FTP: 500 'LIST ': command not understood

I’m using rclone-v1.38-175-g159fce01β-osx-amd64 trying to talk to FTP (Solaris ftpd) running clone ls my_ftp: -vvv

I get:

2017/11/22 21:51:34 DEBUG : Using config file from “/Users/me/.config/rclone/rclone.conf” 2017/11/22 21:51:34 DEBUG : rclone: Version “v1.38-175-g159fce01β” starting with parameters [“rclone” “ls” “my_ftp:” “-vvv”] 2017/11/22 21:51:34 DEBUG : ftp://abc:21: Connecting to FTP server 2017/11/22 21:51:36 INFO : ftp://abc:21: Modify window not supported 2017/11/22 21:51:37 ERROR : : error listing: 500 'LIST ': command not understood. 2017/11/22 21:51:37 Failed to ls: 500 'LIST ': command not understood.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 29 (17 by maintainers)

Most upvoted comments

got the same with Solaris, probably it can be helpful send LIST

220 ... FTP server ready.
331 Password required for ....
230 User ... logged in.
200 Type set to A.
227 Entering Passive Mode (...)
500 'LIST ': command not understood.

send LIST . // with dot to use current dir

220 ... FTP server ready.
331 Password required for ...
230 User ... logged in.
200 Type set to A.
227 Entering Passive Mode (...)
150 Opening ASCII mode data connection for /bin/ls.
total 80
-rw-------   1 user group           68 file1
drwxr-xr-x   3 user group          512 dir 1
drwxr-xr-x   3 user group          512 dir 2
226 Transfer complete.
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 680 bytes in 1 transfers.
221-Thank you for using the FTP service on ...
221 Goodbye.

pray upstream to trim trailing space,

I’ve sent lots of patches to jlaffaye/ftp and they’ve been accepted so if someone wants to have a go at that - it will probably be accepted.

Having previously had this issue on a FRITZ!Box 7530, I can confirm the beta above resolves the 500 and functions as expected without a trailing slash.

Great! Having your confirmation I am now going to submit a change to upstream, wait for @jlaffaye reaction and integrate changes back if all goes well. It can take a while before we see the fix in an official rclone release. Thank you

@Kyle-Tweedie Could you please disable workarounds for a moment and try this rclone beta instead? https://github.com/ivandeex/rclone/releases/tag/v1.54-ftp01 Does it solve the problem for you? (just for reference, the beta fix is https://github.com/ivandeex/ftp/commit/7c9cab6372b53639bb3f29f86e994fc40668ac7a) Hope it helps! Ivan

@ivandeex @ncw I noticed that the command would work if I added “/” at the end of the source dir. So instead of “abcFTP:” I’d use “abcFTP:/” and the latter would work.

bug.log