cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

cf login auth failure in CI_CD deployment

RK0008
Explorer
0 Kudos
562

I am using BTP trail account and have  issue where i am trying to deploy application from github through CI/CD pipeline in BTP.

error is failing acceptance test when the job run for CI/CD  service.

Error Code: 401
Raw Response: {"error":"invalid_client","error_description":"{\"error\":\"invalid_grant\",\"error_description\":\"User authentication failed.\"}"}

although i repeatedly changed CLI password and used same command to login manually to CLI ,its getting connected  but when its  running from job its repeatedly failing at acceptance test.

Not sure how to solve this ( since i am using BTP trail account ) can anyone help here any BTP admin experts please

acceptance test failining.png

 

Accepted Solutions (0)

Answers (1)

Answers (1)

RK0008
Explorer
0 Kudos

Yes , gregorw .

 

i tried locally using command cf login and it worked.

but same thing when i add credential in this below service , when i trigger job its failing at acceptance test with error as authentication.

question is here do we add BTP cockpit or CF CLI cred  for dev subaccount ?

 CI_CD.png

gregorw
SAP Mentor
SAP Mentor
0 Kudos
Is it still the same error message as above?
RK0008
Explorer
0 Kudos
yes its still same error as above , tried many times .
Sibai
Discoverer
0 Kudos
I had the same problem. The issue was that the password contained special characters. Simply change the password to one that includes only uppercase letters, lowercase letters, and digits.
ol___r
Product and Topic Expert
Product and Topic Expert
0 Kudos
Please confirm if it was special characters in the password. From my point of view this should not cause an issue; but I did not test it.
vmakarevich
Explorer
0 Kudos
Yes I had the same issue. It was special characters in password
ol___r
Product and Topic Expert
Product and Topic Expert
0 Kudos
We checked this and there is no issue with special characters. All characters are allowed as a cf password in the CICD service. Maybe this was an issue that has been resolved in the meantime.