Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Only one authentication method is allowed" error while using Jfrog cli pipe

a2l March 31, 2022

I'm trying to access Jfrog artifactory from bitbucket pipeline and it is failing with following error.  I have configured only one variable in Repository variables using `JF_ARTIFACTORY_` prefix and there are no other varaibles with JF_ARTIFACTORY_ prefix at workspace level.

```

pipe: jfrog/jfrog-setup-cli:1.0.03s
source ./jfrog-setup-cli.sh<1s
+ source ./jfrog-setup-cli.sh
Downloading version 1.37.1 of JFrog CLI...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
9 19.0M 9 1790k 0 0 15.8M 0 0:00:01 --:--:-- 0:00:01 15.8M
100 19.0M 100 19.0M 0 0 45.2M 0 --:--:-- --:--:-- --:--:-- 55.6M
[Info] Importing server ID 'serverid'
[Error] Only one authentication method is allowed: Username + Password/API key, RSA Token (SSH) or Access Token.
```
It seems that there are more than one authentication methods being enabled/used but I'm not aware  of any other authentication method that is enabled but it is finding something (besides the access token).
Can anyone help me identify what could be going wrong here?
If I use the version 2.13.0 jfrog cli version, I get following error. I could change the version using repository variable `JFROG_CLI_VERSION`
```
source ./jfrog-setup-cli.sh1s
+ source ./jfrog-setup-cli.sh
Downloading version $JFROG_CLI_VERSION of JFrog CLI...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 80 0 80 0 0 439 0 --:--:-- --:--:-- --:--:-- 439
/usr/bin/jfrog: line 5: syntax error near unexpected token `]'
/usr/bin/jfrog: line 5: ` } ]'```

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 4, 2022

Hi @a2l,

I would suggest raising an issue here:

This pipe is developed by jfrog, and the repo's README page https://bitbucket.org/jfrog/jfrog-setup-cli/src/master/ asks users to report issues in that issue tracker.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events