Forums

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

Confluence Login Recovery

TechOps April 17, 2019

Good Afternoon.,

Due to some security issues, we had to rebuild our Confluence server.  For whatever reason, none of our local passwords are working so we can validate the new install before swapping it out with the old one. 

Following the plethora of articles and community questions, I'm just frustrated.  I followed the instructions here: https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html  but they don't tell you what the heck to put in the setenv.sh file.  There is a ton of crap in there, so my best guess was to add the line:

CATALINS_OPTS="-Datlassian.recovery.password=<new password here>"

This line isn't called out in its entirety the article above, so I'm basically shooting in the dark.  No examples anywhere, just links to other places with the same vague information.

This article is useless to me: https://confluence.atlassian.com/doc/recognized-system-properties-190430.html that's awesome that it shows me the properties, but how the heck do I use them?  Zero examples.

I did stop the services manually, and started them manually using the following commands:

sudo /opt/atlassian/confluence/bin/stop-confluence.sh
sudo /opt/atlassian/confluence/bin/start-confluence.sh

Heck, I even tried to stop manually and start using sudo service confluence start, no luck.

Can someone please post an example of how the line (and where) it should be added to the almighty setenv.sh file?

1 answer

1 accepted

0 votes
Answer accepted
Fong Thai
Contributor
April 17, 2019

Hi,

I think you need to keep whatever your original setenv.sh file has.

Then, add this line:

CATALINA_OPTS="-Datlassian.recovery.password=<new password here> ${CATALINA_OPTS}"

Hope this help.

TechOps April 18, 2019

Thank you Fong!  That does help.  Unfortunately, it still didn't work.  I wonder if it is a bug with the new version 6.15.2.

Fong Thai
Contributor
April 18, 2019

If it's the case, then I suggest you to raise a support ticket to Atlassian so they can help to look into the issue you face. https://support.atlassian.com/contact/

Like TechOps likes this
TechOps April 19, 2019

Fong- In the block of configs similar to the one you posted above, does it matter where in the list the line above is added?  Should it be at the end?  Beginning?  Does it matter?

Thank you!
Matt

Fong Thai
Contributor
April 21, 2019

It should be the last one you mention that CATALINA_OPS, you may have multiple lines for it, and as you see the one I posted, we just add 1 more property for the password reset (and keep all previous ones).

If you're not sure, then it's OK to add it as the last line!

;)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events