Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

503 Bad sequence of commands

I am attempting to connect to FTP and I am receiving the following error message:

 

Exception in component tFTPConnection_1 (FTP)
javax.net.ssl.SSLException: 503 Bad sequence of commands.

 at org.apache.commons.net.ftp.FTPSClient.execPROT(FTPSClient.java:528)
 at configuration.ftp_0_1.FTP.tFTPConnection_1Process(FTP.java:533)
 at configuration.ftp_0_1.FTP.runJobInTOS(FTP.java:2011)
 at configuration.ftp_0_1.FTP.main(FTP.java:1862)

 

The FTP uses SSL, passive connection mode and explicit security mode. The port (21), host, username and password are all correct; using the same settings I can log in through FileZilla. I can also log into SFTP without any issues using the same sequence (I change the FTPConnection component). What am I doing wrong?

Labels (2)
4 Replies
Anonymous
Not applicable
Author

Hello,

It indicates the server is unavailable.

Have you tried to set the FTPS option (it is FTP over SSH) on tFTPConnection component?

Best regards

Sabrina

 

Anonymous
Not applicable
Author

I tired that. The box is checked (FTPS Support (support tFTPGet temporarily). I took at screenshot of my configuration. As you can see from the screenshot I have to use a keystore. I created one and imported a key given to me by the host of the FTP. That is all that has happened in that regard.
Capture.PNG
Anonymous
Not applicable
Author

Hello,

Did you still get the 503 bad sequence of commands error?

For creating keystore and truststore, you can check documentation:

https://docs.oracle.com/cd/E19509-01/820-3503/ggfen/

Best regards

Sabrina

fred271828
Contributor
Contributor

I'm getting this same error now when FTPSClient.execPROT("P") is being called.  The error has nothing to do with the keystore as the FTPSClient.connect and FTPSClient.login are both succeeding.