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:
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 :)
Hi @[deleted],
The bin folder should be in your installation directory, not in your application data directory.
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 :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm, I'm not sure where it is on the docker image.
Default when using the installer is /opt/atlassian/confluence
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's weird, never had this before. Maybe something with rocker? I'm not so used to that.
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.