cancel
Showing results for 
Search instead for 
Did you mean: 

DEV164 Workflows HandsOn - Authentication error

vsp4btp
Explorer
0 Kudos

I am doing the exercises for DEV164 (Workflows). I have successfully finished the step "Build MTA Project". I can see the WFTutorial_0.0.1.mtar file. But, when I try to perform the next step "Deploy MTA Archive", I am getting the below error:

Authentication failed: API endpoint: https://api.cf.us10.hana.ondemand.com Authenticating... Password: API endpoint: https://api.cf.us10.hana.ondemand.com API version: 3.108.0 Not logged in. Use 'cf login' or 'cf login --sso' to log in. FAILED

I am unable to proceed with my exercises. Please help me get over this error.

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Illya
Product and Topic Expert
Product and Topic Expert

Hi @vsp4btp 

you must first sign in to your cloud foundry dev space before you can deploy your application to it.

If not already done, enable your cloud foundry on subaccount level (Overview) and create a space called "DEV".

Back in SAP Business Application Studio (BAS) select the "View -> Find Command ..." menu. Enter "CF" and select the "CF: Login to Cloud Foundry" entry. Follow the steps as described in the BAS.
Once you have successfully signed in to your cloud foundry space, try deploying your .mtar file again.

Hope, this helps you!

BR,
Illya

vsp4btp
Explorer
0 Kudos
I am doing all that is mentioned. But still unable to deploy the project. What am I still missing?

Answers (4)

Answers (4)

You need to click on the new terminal command and write cf login. In that you need to provide your subaccount user id and password. 

once successful login you need to right click on the mtar file generated and deploy it.

 Thanks

Kapil Jain

Srinivas-Rao
Contributor

Yes - you need to login to the right subaccount and space, before you deploy the workflow. On the left bottom, you will have the option to setup your organization OR use the cf login CLI command to setup the target to which you want to deploy the workflow.

jerryjanda
Community Manager
Community Manager
0 Kudos

Please note that cross-posting identical content is against our rules of engagement (https://community.sap.com/resources/rules-of-engagement). Specifically, the rules forbid: "Posts that are of duplicate content, whether from a single account or across multiple accounts from the same user, within the community."

This question also appeared at https://answers.sap.com/questions/13526422/authentication-error-while-deploying-mta-archive.html, and that's where the answer from Denys van Kempen appears.

For that reason, I am going to lock this thread and recommend that people go to the link above for additional information.

--Jerry

vsp4btp
Explorer
0 Kudos

Got it finally !! Thanks to Denys van Kempen !!

Used the cf login --sso option from built-in terminal in BAS and got the temp auth code.

Authenticated myself with that temp code.

But, why BAS is not accepting my actual password is till a mystery to me.