You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
We should move the /opt/atlassian/stash/work/catalina.pid to /var/run
It is because we are symlinking /opt/atlassian/stash to the latest version of stash. Every time we run the chef script to upgrade stash, it will change the symlink target and failed the stash restart since the service can't find the pid.
So the situation is like this:
/opt/atlassian/stash -> /opt/atlassian/stash-3.9.0
the catalina.pid is located in /opt/atlassian/stash-3.9.0
We run the cookbooks to update stash, now it points to /opt/atlassian/stash -> /opt/atlassian/stash-3.10.0
the catalina.pid is still located in /opt/atlassian/stash-3.9.0
At the end of cookbook, we restart the stash service. But it fails because it can't find /opt/atlassian/stash-3.10.0/work/catalina.pid
We should move the
/opt/atlassian/stash/work/catalina.pidto/var/runIt is because we are symlinking
/opt/atlassian/stashto the latest version of stash. Every time we run the chef script to upgrade stash, it will change the symlink target and failed the stash restart since the service can't find the pid.So the situation is like this:
/opt/atlassian/stash->/opt/atlassian/stash-3.9.0the
catalina.pidis located in/opt/atlassian/stash-3.9.0We run the cookbooks to update stash, now it points to
/opt/atlassian/stash->/opt/atlassian/stash-3.10.0the
catalina.pidis still located in/opt/atlassian/stash-3.9.0At the end of cookbook, we restart the stash service. But it fails because it can't find
/opt/atlassian/stash-3.10.0/work/catalina.pidreference: http://stackoverflow.com/questions/5173636/must-my-pidfile-be-located-in-var-run