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?
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.
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/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.