To assess whether the service is still running, runps -A | grep jira.
Resolution
To kill the java process and stop JIRA,
Pass the-forceparameter tocatalina.shas:
catalina.sh stop -force
Still not shutting down properly?
Icon
If the above results in an error, such as:
Kill failed: $CATALINA_PID not set
Add the following line of code to the top of your<JIRA-Installation-Directory>/bin/setenv.shfile (Standalone instance):
CATALINA_PID="<Change this to your preferred location>/id.pid"
export CATALINA_PID
Tomcat will automatically write its process id toid.pidin your specified path and kill its process with the-forceparameter.
In addition to the above, you can try acustom scriptthat runsshutdown.shfirst before forcing Tomcat to shutdown. This script will sleep 60 seconds then look inside./id.pidto check if Tomcat is still running. If Tomcat is still running, it will issue acatalina.sh stop -force.
Also,hereyou can find a script which forces JIRA to shutdown and deletes the lock file in the JIRA Home directory. It will look inside./id.pidfor the process ID and runcatalina.sh stop -forcefor that process. Both scripts need to be saved in<JIRA install>/binand assumeid.pidis located in the same location.
Lets start by making sure there is no JIRA instance running. In order to do it so, please run the following command from your Terminal:
1
2
3
4
5
6
7
8
9
10
11
12
psaux |grepjira
//as the output, you willfindsomething similar to:
rafael 9233 0.0 0.0 2432784 600 s001 S+ 5:14PM 0:00.00grepjira
//Please,killthe process as per following:
kill-9 9176
//where 9176 is the processID to my JIRA instance,inthe example above mentioned
According to the above mentioned, your JAVA_HOME is pointing to JAVA JRE instead of JAVA JDK. Please, review where your Java JDK6 or JDK7 is installed and setup your JAVA_HOME as perInstalling Javadocumentation.
After you have done that, go to <jira-home> directory and run the following from your terminal:
1
./bin/start-jira.sh
In case you continue on experiencing difficulties on starting up your JIRA instance, I would kindly advise you to open a Support ticket under (https://support.atlassian.com)
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步