cancel
Showing results for 
Search instead for 
Did you mean: 

Can't deploy .mtar file using NEO SDK - behind corporate proxy

smok1
Explorer
0 Kudos

Hi guys,

I seem to have trouble deploying to SCP using the NEO SDK. Error as follows:

(!) ERROR: Wrong credentials. Enter correct user name and password. Note that your user will be locked after 5 consecutive failed authentication attempts.

FYI, this works when i'm not behind the corporate proxy and i've already set my proxy settings in the NEO SDK accordingly. I've also imported my companies certificates into the java cacerts file.

Accepted Solutions (0)

Answers (6)

Answers (6)

Subit
Product and Topic Expert
Product and Topic Expert
0 Kudos

@Samuel Mok @Jonatan Schropel Did you find any solution to this issue.I am facing the same error.

jonatansch
Advisor
Advisor
0 Kudos

Hi Samuel Mok,

Do you face the issue with other commands that require authentication as well? or only when executing the deploy command?

regards,

Jonatan

jonatansch
Advisor
Advisor
0 Kudos

Hi Samuel,

Have you configured your environment variables as described here:

https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/7613dee4711e1014839a8273b0e...

Regards,

Jonatan

smok1
Explorer
0 Kudos

I did. And I've went through all the SAP documentation as well.

There seems to be no way to import the certs via the Neo SDK to get around this issue. My client's network team had to disable SSL to allow for the connection.

smok1
Explorer
0 Kudos

Some updates: My client's network team has to disable SSL for it to work. Not a good solution. Is there an alternative way with the SDK around this?

jonatansch
Advisor
Advisor
0 Kudos

Hi Samuel,

Could you please provide the additional log entries. From the log messages above we could not investigate.

Best regards,

Jonatan

smok1
Explorer
0 Kudos

Hi Jonatan,

Here's the full log:

2019-10-23 14:21:28,535 INFO [main] com.sap.jpaas.infrastructure.console.ConsoleLogger: Arguments: -host ap1.hana.ondemand.com --account pw2lafapbi --user smok --id mobxtest 2019-10-23 14:21:29,287 INFO [main] com.sap.jpaas.infrastructure.console.ConsoleLogger: Starting execution of command [display-mta] 2019-10-23 14:21:29,446 INFO [pool-2-thread-1] com.sap.jpaas.infrastructure.console.ConsoleLogger: No SDK status file for your configuration was found. Creating a new status file... 2019-10-23 14:21:30,111 INFO [main] com.sap.jpaas.infrastructure.console.ConsoleLogger: There is no tools page available on host ap1.hana.ondemand.com. The default tools page on host hana.ondemand.com will be used instead. This is expected behaviour as some hosts do not have corresponding tools pages 2019-10-23 14:21:30,114 INFO [main] com.sap.jpaas.infrastructure.console.ConsoleLogger: Version validity check is completed 2019-10-23 14:21:30,115 INFO [main] com.sap.jpaas.infrastructure.console.ConsoleLogger: Command [display-mta] init() finished for [828] ms 2019-10-23 14:21:30,118 INFO [main] com.sap.cloud.lm.sl.hcp.client.cmd.SlServiceBaseCommand: Executing 'display-mta' with the following parameters 2019-10-23 14:21:30,118 INFO [main] com.sap.cloud.lm.sl.hcp.client.cmd.SlServiceBaseCommand: mta-id: mobxtest 2019-10-23 14:21:33,939 INFO [main] com.sap.cloud.lm.sl.hcp.client.utils.UrlBuilder: Appended SAP CP SL Service base domain to the host ULR 'slservice.ap1.hana.ondemand.com' 2019-10-23 14:21:34,144 INFO [main] com.sap.jpaas.infrastructure.console.ConsoleLogger: Command [display-mta] cleanup() finished for [0] ms 2019-10-23 14:21:34,147 FATAL [main] com.sap.jpaas.infrastructure.console.ConsoleLogger: (!) ERROR: Wrong credentials. Enter correct user name and password. Note that your user will be locked after 5 consecutive failed authentication attempts. com.sap.jpaas.infrastructure.console.exception.SecurityException: Wrong credentials. Enter correct user name and password. Note that your user will be locked after 5 consecutive failed authentication attempts. at com.sap.jpaas.infrastructure.console.ConsoleClient.run(ConsoleClient.java:207) at com.sap.jpaas.infrastructure.console.ConsoleClient.main(ConsoleClient.java:80) Caused by: com.sap.core.utils.infrastructure.validation.AuthenticationException: Wrong credentials. Enter correct user name and password. Note that your user will be locked after 5 consecutive failed authentication attempts. at com.sap.core.utils.infrastructure.validation.LandscapeHostValidator.validateHttpResponseStatus(LandscapeHostValidator.java:437) at com.sap.core.utils.infrastructure.validation.HttpResponseValidator.process(HttpResponseValidator.java:36) at org.apache.http.protocol.ImmutableHttpProcessor.process(ImmutableHttpProcessor.java:139) at org.apache.http.protocol.HttpRequestExecutor.postProcess(HttpRequestExecutor.java:308) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:495) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57) at com.sap.cloud.lm.sl.hcp.client.cmd.SlServiceBaseCommand.authorizeUser(SlServiceBaseCommand.java:75) at com.sap.cloud.lm.sl.hcp.client.cmd.SlServiceBaseCommand.getHttpClient(SlServiceBaseCommand.java:39) at com.sap.cloud.lm.sl.hcp.client.cmd.DisplayMTACommand.getInventoryClient(DisplayMTACommand.java:56) at com.sap.cloud.lm.sl.hcp.client.cmd.DisplayMTACommand.run(DisplayMTACommand.java:63) at com.sap.jpaas.infrastructure.console.CommandManager.run(CommandManager.java:185) at com.sap.jpaas.infrastructure.console.CommandManager.run(CommandManager.java:146) at com.sap.jpaas.infrastructure.console.ConsoleClient.executeCommand(ConsoleClient.java:243) at com.sap.jpaas.infrastructure.console.ConsoleClient.run(ConsoleClient.java:185) ... 1 more

smok1
Explorer
0 Kudos

FYI, this is via the Cloud Platform Console Client. Logs are as below:

2019-10-23 14:21:33,939 INFO [main] com.sap.cloud.lm.sl.hcp.client.utils.UrlBuilder: Appended SAP CP SL Service base domain to the host ULR 'slservice.ap1.hana.ondemand.com' 2019-10-23 14:21:34,144 INFO [main] com.sap.jpaas.infrastructure.console.ConsoleLogger: Command [display-mta] cleanup() finished for [0] ms 2019-10-23 14:21:34,147 FATAL [main] com.sap.jpaas.infrastructure.console.ConsoleLogger: (!) ERROR: Wrong credentials. Enter correct user name and password. Note that your user will be locked after 5 consecutive failed authentication attempts. com.sap.jpaas.infrastructure.console.exception.SecurityException: Wrong credentials. Enter correct user name and password. Note that your user will be locked after 5 consecutive failed authentication attempts. at com.sap.jpaas.infrastructure.console.ConsoleClient.run(ConsoleClient.java:207) at com.sap.jpaas.infrastructure.console.ConsoleClient.main(ConsoleClient.java:80) Caused by: com.sap.core.utils.infrastructure.validation.AuthenticationException: Wrong credentials. Enter correct user name and password. Note that your user will be locked after 5 consecutive failed authentication attempts. at com.sap.core.utils.infrastructure.validation.LandscapeHostValidator.validateHttpResponseStatus(LandscapeHostValidator.java:437) at com.sap.core.utils.infrastructure.validation.HttpResponseValidator.process(HttpResponseValidator.java:36)