Closed jhult closed 6 years ago
I had been thinking about the correct handling of the script.
I could add such script but I am unsure where to apply the script.
Triggering the script when Jira is up seems to be unhealthy.
Triggering the script for each startup seems also to be unhealthy.
What would be helpful?
I'm not sure I know the best way (or place) to do this.
I'm okay with doing it on each startup but others might not be. Maybe we could have sort of flag in docker-compose.yml which would enable this?
@jhult Did the rm -rf
stuff solve the issue?
This hints at the issue possibly being linked to permissions.
@blacklabelops Can you expand on following?
Triggering the script for each startup seems also to be unhealthy.
rm -rf
does not always solve the issue. Often, it does. However, sometimes I have to manually go empty the entire plugins folder and then move back JARs a few at a time.
It is also worth noting that a docker restart
does NOT reset the restarted container, any new files created within the container will still be there after the restart. The ENTRYPOINT
should make some attempt to clean up the container.
After some googling I would say that removing those folders is safe, just increases your startup time.
Proposal: Env with value true
or false
. When true
then cleanup script is triggered inside entrypoint.
Description
Jira fails to start sometimes with the following error:
Stoping and starting sometimes fixes the issue.
This doesn't appear to be the fault of the Docker container.
Has anyone else run into this?
Additional Reading
What I've tried
Possible solutions
I'm wondering if we can or should add some sort of script to clear the plugin cache such as this:
rm -rf /var/atlassian/jira/plugins/.bundled-plugins/
rm -rf /var/atlassian/jira/plugins/.osgi-plugins/
Steps to Reproduce
Expected behavior: [What you expect to happen] Jira starts successfully
Actual behavior: [What actually happens] Startup hangs
Reproduces how often: [What percentage of the time does it reproduce?] It is not 100% of the time but seems often, maybe 80% +.
Versions
7.x