Forums

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

Restore Passwords To Recover Admin User Rights: setenv.sh

Deleted user December 28, 2018

Hi,

 

I am not able to inject the setenv.sh to restore the admin user right from a imported cloud site-backup on my server-version:

 

Tutorial: https://confluence.atlassian.com/doc/restore-passwords-to-recover-admin-user-rights-158390.html?_ga=2.230325340.1533054907.1545952478-1044970277.1545589042

 

CMD:

 

kubectl exec [container_id] -- mkdir /var/atlassian/application-data/confluence/bin

--> Works (but confusing that the bin folder is not already present?)


kubectl exec [container_id] -- touch /var/atlassian/application-data/confluence/bin/setenv.sh

--> Works (cat results emty content for created .sh file)

kubectl exec [container_id] -- echo "-Datlassian.recovery.password=<pw>" >> /var/atlassian/application-data/confluence/bin/setenv.sh

--> Does not work:

--> -bash: /var/atlassian/application-data/confluence/bin/setenv.sh: No such file or directory

 

How can this be the case?

Your support is very appreciated :)

1 answer

0 votes
Bastian Stehmann
Community Champion
December 28, 2018

Hi @[deleted],

The bin folder should be in your installation directory,  not in your application data directory.

Deleted user December 28, 2018

Hi @Bastian Stehmann,

 

in which path is the default installation directory of the official docker confluence server image? I've only set the application data directory for kubernetes volume integration..

 

Thanks a lot :)

Bastian Stehmann
Community Champion
December 28, 2018

Hmm, I'm not sure where it is on the docker image.

Default when using the installer is /opt/atlassian/confluence

Deleted user December 28, 2018

@Bastian Stehmannyes the default installation directory on the official docker image is also /opt/atlassian/confluence and the /bin/setenv.sh is already located in there.

 

But the problem persists:

I can cat the file and the contents of setenv.sh gets successfully prompted.

But if I try to append the recovery pw line, bash says the file does not exist?!

echo "-Datlassian.recovery.password=<pw>" >> /opt/atlassian/confluence/bin/setenv.sh

 

--> -bash: /opt/atlassian/confluence/bin/setenv.sh: No such file or directory

 

How can that be the case?

Bastian Stehmann
Community Champion
December 28, 2018

That's weird,  never had this before. Maybe something with rocker? I'm not so used to that.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events