Ftp Error 21
good, bad or incomplete: Range Purpose 1xx Positive Preliminary reply The requested action is being initiated; expect another reply before proceeding with a new command. (The user-process sending another command before the completion reply err_ftp_failed would be in violation of protocol; but server-FTP processes should queue any commands that ftp connection failed arrive while a preceding command is in progress.) This type of reply can be used to indicate that the command was accepted error code 26 the proxy failed to connect to the web server, ssl connection failed and the user-process may now pay attention to the data connections, for implementations where simultaneous monitoring is difficult. The server-FTP process may send at most, one 1xx reply per command. 2xx Positive Completion reply The https://www.ibm.com/support/knowledgecenter/SSLTBW_2.2.0/com.ibm.zos.v2r2.halu001/clierr.htm requested action has been successfully completed. A new request may be initiated. 3xx Positive Intermediate reply The command has been accepted, but the requested action is being held in abeyance, pending receipt of further information. The user should send another command specifying this information. This reply is used in command sequence groups. 4xx Transient Negative Completion reply The command was not accepted and the requested action did not take place, but the https://en.wikipedia.org/wiki/List_of_FTP_server_return_codes error condition is temporary and the action may be requested again. The user should return to the beginning of the command sequence, if any. It is difficult to assign a meaning to "transient", particularly when two distinct sites (Server- and User-processes) have to agree on the interpretation. Each reply in the 4xx category might have a slightly different time value, but the intent is that the user-process is encouraged to try again. A rule of thumb in determining if a reply fits into the 4xx or the 5xx (Permanent Negative) category is that replies are 4xx if the commands can be repeated without any change in command form or in properties of the User or Server (e.g., the command is spelled the same with the same arguments used; the user does not change his file access or user name; the server does not put up a new implementation.) 5xx Permanent Negative Completion reply The command was not accepted and the requested action did not take place. The User-process is discouraged from repeating the exact request (in the same sequence). Even some "permanent" error conditions can be corrected, so the human user may want to direct his User-process to reinitiate the command sequence by direct action at some point in the future (e.g.
not all, available error codes in libcurl. Why they occur and possibly what you can do to fix the problem are also included. CURLcode Almost all "easy" interface functions return a CURLcode error code. No matter https://curl.haxx.se/libcurl/c/libcurl-errors.html what, using the curl_easy_setopt option CURLOPT_ERRORBUFFER is a good idea as it will give you a human readable error string that may offer more details about the cause of the error than just the error code. http://support.2brightsparks.com/knowledgebase/articles/213469-common-ftp-errors-and-socket-error-messages curl_easy_strerror can be called to get an error string from a given CURLcode number. CURLcode is one of the following: CURLE_OK (0) All fine. Proceed as usual. CURLE_UNSUPPORTED_PROTOCOL (1) The URL you passed to libcurl used error code a protocol that this libcurl does not support. The support might be a compile-time option that you didn't use, it can be a misspelled protocol string or just a protocol libcurl has no code for. CURLE_FAILED_INIT (2) Very early initialization code failed. This is likely to be an internal error or problem, or a resource problem where something fundamental couldn't get done at init time. CURLE_URL_MALFORMAT (3) The URL was not properly formatted. ftp error codes CURLE_NOT_BUILT_IN (4) A requested feature, protocol or option was not found built-in in this libcurl due to a build-time decision. This means that a feature or option was not enabled or explicitly disabled when libcurl was built and in order to get it to function you have to get a rebuilt libcurl. CURLE_COULDNT_RESOLVE_PROXY (5) Couldn't resolve proxy. The given proxy host could not be resolved. CURLE_COULDNT_RESOLVE_HOST (6) Couldn't resolve host. The given remote host was not resolved. CURLE_COULDNT_CONNECT (7) Failed to connect() to host or proxy. CURLE_FTP_WEIRD_SERVER_REPLY (8) The server sent data libcurl couldn't parse. This error code is used for more than just FTP and is aliased as CURLE_WEIRD_SERVER_REPLY since 7.51.0. CURLE_REMOTE_ACCESS_DENIED (9) We were denied access to the resource given in the URL. For FTP, this occurs while trying to change to the remote directory. CURLE_FTP_ACCEPT_FAILED (10) While waiting for the server to connect back when an active FTP session is used, an error code was sent over the control connection or similar. CURLE_FTP_WEIRD_PASS_REPLY (11) After having sent the FTP password to the server, libcurl expects a proper reply. This error code indicates that an unexpected code was returned. CURLE_FTP_ACCEPT_TIMEOUT (12) During an active FTP session while waiting for the server to connect, the CURLOPT_ACCEPTTIMEOUT_MS (or the internal default) timeout expired. CURLE_FTP_WEIRD_PASV_REPLY
SyncBackFree,use a different FTP engine and so return less cryptic error messages. Article Detail When testing an FTP connection you may receive one of the following errors: Socket Error # 11001, Host not found: Check that the hostname or IP address has been entered correctly. Socket Error # 11004, Unable to connect: Check to make sure there isn't a trailing or leading space character on the FTP hostname. Also, enter the hostname or IP address, not a URL, e.g. if you have entered something like ftp://my.hostname.com/ then change it to my.hostname.com Socket Error # 10061, Connection refused: The hostname is correct, but either the FTP server is not listening on the port, there is no FTP server running, or a firewall is blocking the connection. Socket Error # 10093: This can happen when the network connection goes down, e.g. the FTP server is no longer connected to the network. Socket Error # 10038: If you are using Serv-U modify your FTP server settings so that the following are unticked: “Block anti time-out schemes”, “Block FTP_bounce attacks and FXP”, and “Block users who connect more than 6 times within 60 seconds for 30 minutes.”. You may also want to be sure you are using a passive connection. Socket Error # 10039: There may be a problem getting the IP address for the hostname. Socket Error # 10052: The host you were connected to crashed and rebooted. Try reconnecting at a later time. Unable to connect: Connection time out: The hostname may be incorrect or the FTP server may be behind a firewall. Unable to connect. Not logged in: The username and/or password is not correct. Unable to connect. Error connecting with SSL: The FTP server does not support SSL, or you are using implicit SSL and it only supports explicit, or the wrong port number is