I've tried a few ways to start/stop jira and neither are working. For starters, here's my UD script that initially installs and starts Jira
executing using dedicated user
`sMMMMMMMMMMMMMM+
MMMMMMMMMMMMMM
:sdMMMMMMMMMMM
MMMMMM
`sMMMMMMMMMMMMMM+ MMMMMM
MMMMMMMMMMMMMM +MMMMM
:sMMMMMMMMMMM MMMMM
MMMMMM `UOJ
`sMMMMMMMMMMMMM+ MMMMMM
MMMMMMMMMMMMMM +MMMMM
:sdMMMMMMMMMM MMMMM
MMMMMM `UOJ
MMMMMM
+MMMMM
MMMMM
`UOJ
Atlassian Jira
Version : 8.19.1
If you encounter issues starting or stopping Jira, please see the Troubleshooting guide at https://docs.atlassian.com/jira/jadm-docs-0819/Troubleshooting+installation
Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE: /opt/atlassian/jira
Using CATALINA_HOME: /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME: /opt/atlassian/jira/jre/
Using CLASSPATH: /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Using CATALINA_PID: /opt/atlassian/jira/work/catalina.pid
cat: /opt/atlassian/jira/work/catalina.pid: Permission denied
PID file found but either no matching process was found or the current user does not have permission to stop the process. Stop aborted.
2. I tried to switch user to Jira and run the same command, but now it's asking me for a password?
[sudo] password for jira:
I don't have a password set, so I tried no password and it didn't work.
3. I tried the standard systemctl stop jira and got:
Failed to start jira.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
What else can I do to get Jira to stop/start from the terminal?
Hi @MP32
It sounds like you have sudo privileges, so to get around the password issue run sudo -i this will switch you to root, then just su jirauser.
I would definitely go through the logs as it looks like a permission issue on the filesystem.
I followed the steps for option 2 in that doc and I'm still running into the same error after I changed the file permissions. This error is the one that keeps showing up after permissions got changed and I tried running as root and Jira user:
PID file found but either no matching process was found or the current user does not have permission to stop the process. Stop aborted.
I looked at the logs and towards the bottom it says this, not sure if any of this is relevant or not
user.country : US
user.dir : /
user.home : /root
user.language : en
user.name : root
user.timezone : UTC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it looks like Jira is running as root. run the top command to find the PID of Jira. You can then just kill the process. Once the process is killed then switch to the jira user and start the process again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried doing killall -9 jira and it said that there's no process named jira. I ran ps aux | grep jira to try to find the PID and this was the output:
root 3637 0.2 13.2 5031304 531924 ? Sl Oct27 0:57 /opt/atlassian/jira/jre//bin/java -Djava.util.logging.config.file=/opt/atlassian/jira/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms384m -Xmx2048m -XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=512m -Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory -XX:-OmitStackTraceInFastThrow -Djava.locale.providers=COMPAT -Djdk.tls.ephemeralDHKeySize=2048-Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -Xlog:gc*:file=/opt/atlassian/jira/logs/atlassian-jira-gc-%t.log:tags,time,uptime,level:filecount=5,filesize=20M -XX:+ExplicitGCInvokesConcurrent -Dignore.endorsed.dirs= -classpath /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar -Dcatalina.base=/opt/atlassian/jira -Dcatalina.home=/opt/atlassian/jira -Djava.io.tmpdir=/opt/atlassian/jira/temp org.apache.catalina.startup.Bootstrap start
root 3676 0.0 0.1 193160 6900 ? Ssl Oct27 0:01 /usr/bin/stunnel5 /var/run/efs/stunnel-config.fs-05869e2bcc0fa812b.var.atlassian.application-data.jira.20620
root 24058 0.0 0.1 192440 4312 pts/2 S 02:42 0:00 su jira
jira 24059 0.0 0.0 126736 3992 pts/2 S+ 02:42 0:00 bash
root 24212 0.0 0.1 241656 7180 pts/3 S+ 02:43 0:00 sudo vim /opt/atlassian/jira/logs/catalina.out
root 24213 0.0 0.2 150328 9360 pts/3 Sl+ 02:43 0:00 vim /opt/atlassian/jira/logs/catalina.out
root 25771 0.0 0.0 121280 972 pts/0 S+ 03:06 0:00 grep --color=auto jira
How else can I find the PID? The columns aren't named, but I tried a ton of the different numbers and it said "no such process" when trying to kill it
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
looks like the PID is 3637. run kill -9 3637
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.