Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Recover admin user and password

Ghaith Haddad August 20, 2019

Hello everyone,

So i lost my admin user password and im trying to follow the steps in this docs:

https://confluence.atlassian.com/jirakb/restore-passwords-to-recover-admin-user-rights-972329273.html

 

but the line its asking me to add in the setenv.sh file does not exist apparently. The line is:

-Datlassian.recovery.password=<your-password>

 im not sure if im doing something wrong here.

Any help or suggestions is GREATLY appreciated.

1 answer

0 votes
Krister Broman _Advania_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2019

Replace <your-password> with ABCD1234

When you restart the server, you can now login with admin rights using recovery_admin as user with ABCD1234 as password.

Krister Broman _Advania_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2019
Krister Broman _Advania_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2019

Once completed make sure to remove that line and restart server again, as its otherwise a security risk. 

Ghaith Haddad August 20, 2019

Yeah i tried that but do i have to include the line: 

-Datlassian.recovery.password 

as well, if yes what's the correct syntax? like thats how i had it the first time and it didnt work:

 JVM_SUPPORT_RECOMMENDED_ARGS="-Datlassian.recovery.password=<abcd123>"

 

or should i remove the <> or anything else?

Krister Broman _Advania_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2019

Yes remove <>, those would be invalid characters so I dont think it will work with those at all

Ghaith Haddad August 20, 2019

i see thanks, and everything else should stay the same, like the  -  for example at the beginning? 

Krister Broman _Advania_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 20, 2019

Yes everything else the same and yes include the -

Oh and remember you MUST start Jira manually, meaning run start-jira.sh and not through the service (Step 3 in https://confluence.atlassian.com/jirakb/restore-passwords-to-recover-admin-user-rights-972329273.html

Suggest an answer

Log in or Sign up to answer