cURL / Mailing Lists / curl-users / Single Mail


RNFR command fails with error (21) QUOT command failed with 550

From: Raghu Udupa <>
Date: Thu, 7 Apr 2011 17:38:47 +0000


When we attempt to send a file via SSL_FTP using CURL to remote server, only rename on fourth attempt is successful. On each of these attempts, file gets stored successfully. Only renaming fails on first three attempts. Some times all four attempts in renaming fails. We are using curl 7.20.0

Any help is appreciated.

curl --version
curl 7.20.0 (i686-pc-linux-gnu) libcurl/7.20.0 OpenSSL/1.0.0 zlib/ libidn/0.5.6 libssh2/1.2.4
Protocols: dict file ftp ftps http https imap imaps ldap pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: Debug TrackMemory IDN IPv6 Largefile NTLM SSL libz

Store command line
/usr/bin/curl --config /config/curl.cfg -T /datadir/6043005110974310300 -u user:password<>
Store is successful as shown below on all four attempts
CURL: } [data not shown]
CURL: 20 3223k 0 0 20 656k 0 855k 0:00:03 --:--:-- 0:00:03 880k
 64 3223k 0 0 64 2080k 0 1173k 0:00:02 0:00:01 0:00:01 1187k* Remembering we are in dir "auto/export/"
CURL: * SSLv3, TLS alert, Client hello (1):
CURL: } [data not shown]
CURL: < 226 File receive OK.
CURL: 100 3223k 0 0 100 3223k 0 1216k 0:00:02 0:00:02 --:--:-- 1227k* Connection #0 to host left intact

CURL: * FTP 0x820a1e0 state change from STOP to QUIT
CURL: < 221 Goodbye.

CURL: * FTP 0x820a1e0 state change from QUIT to STOP
CURL: * Closing connection #0
CURL: * SSLv3, TLS alert, Client hello (1):
CURL: } [data not shown

Rename command line
/usr/bin/curl --config /usr/ops/5.0/config/curl.cfg -Q "RNFR custdir/6043005110974310300" -Q "RNTO custdir/data.doc" -u user:password<>

But, rename fails on first 3 attempts
CURL: * protocol connect phase DONE
CURL: * DO phase starts
CURL: > RNFR custdir/6043005110974310300
CURL: * FTP 0x8209f50 state change from STOP to QUOTE
CURL: < 550 RNFR command failed.


List admin:
Received on 2011-04-07