Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×
(node:3088352) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. (Use `node --trace-warnings ...` to show where the warning was created) ✕ Logging you in... Error: The CLI couldn't securely store your login credentials in a local keychain. Ensure you have libsecret installed. If a local keychain is not available, use environment variables before trying again. See https://go.atlassian.com/dac/platform/forge/getting-started/#log-in-with-an-atlassian-api-token for more.
I am getting these error also I installed libsecret in my system but giving the same error and also I tried 2 different approaches i.e. 1) save cred in env variable and 2) passing cred as an command line argument but nothing works.....
and also i tried as an root user and with root user both are giving same error
In Linux, the regular login method needs libsecret
to work, here is a workaround
Open your terminal.
Run the following commands:
read FORGE_EMAIL
read -s FORGE_API_TOKEN
export FORGE_EMAIL FORGE_API_TOKEN
You can find more details about using environment variables to login in Forger here: https://developer.atlassian.com/platform/forge/getting-started/#log-in-with-an-atlassian-api-token (Please head to the bottom of the page and the section "Using environment variables to login")
To avoid running these commands again and again, you can make the variable persistant by adding them in your shell's config file
Open Your Shell Configuration File
You can use your favorite editor (nano, vim, etc.,), i used nano here
nano ~/.bashrc
Add the Variables
Add the lines at the end of the file
export FORGE_EMAIL="your-mail"
export FORGE_API_TOKEN="your-api-token"
Save and Exit
Save the file and close the editor.
(For nano press -> Ctrl + O to save & Ctrl + X to exit)
Reload the Shell Configuration
Run the command to apply the changes:
source ~/.bashrc
You can check if the variables are set by running below commands.
echo $FORGE_EMAIL
echo $FORGE_API_TOKEN
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Shafeeq ,
I have tried this steps but still getting the same issue.
i.e :
✕ Logging you in...
Error: The CLI couldn't securely store your login credentials in a local keychain. Ensure you have libsecret installed. If a local keychain is not available, use environment variables before trying again. See https://go.atlassian.com/dac/platform/forge/getting-started/#log-in-with-an-atlassian-api-token for more.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
By doing this you can skip the
forge login
step, and directly execute forge commands for creating project, deploying it, installing it and others.
Eg.
forge deploy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Shafeeq https://community.developer.atlassian.com/t/unable-to-login-to-forge/93999
Have raised a similar query here, kindly check and support.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.