简体   繁体   English

无法按源启动 JIRA

[英]Can't start JIRA by source

OS: CentOS操作系统:CentOS

Installed JIRA by official guide:通过官方指南安装 JIRA:

https://confluence.atlassian.com/adminjiraserver/installing-jira-applications-on-linux-from-archive-file-938846844.html https://confluence.atlassian.com/adminjiraserver/installing-jira-applications-on-linux-from-archive-file-938846844.html

When start JIRA, got error:启动JIRA时出现错误:

[jira@node1 bin]$ ./start-jira.sh

To run JIRA in the foreground, start the server with start-jira.sh -fg
executing as current 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.5.1


If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at https://docs.atlassian.com/jira/jadm-docs-085/Troubleshooting+installation

Using JIRA_HOME:       /home/jira/jirasoftware-home

Server startup logs are located in /home/jira/jirasoftware/atlassian-jira-software-8.5.1-standalone/logs/catalina.out
Using CATALINA_BASE:   /home/jira/jirasoftware/atlassian-jira-software-8.5.1-standalone
Using CATALINA_HOME:   /home/jira/jirasoftware/atlassian-jira-software-8.5.1-standalone
Using CATALINA_TMPDIR: /home/jira/jirasoftware/atlassian-jira-software-8.5.1-standalone/temp
Using JRE_HOME:        /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64/jre/bin/java
Using CLASSPATH:       /home/jira/jirasoftware/atlassian-jira-software-8.5.1-standalone/bin/bootstrap.jar:/home/jira/jirasoftware/atlassian-jira-software-8.5.1-standalone/bin/tomcat-juli.jar
Using CATALINA_PID:    /home/jira/jirasoftware/atlassian-jira-software-8.5.1-standalone/work/catalina.pid
/home/jira/jirasoftware/atlassian-jira-software-8.5.1-standalone/bin/check-java.sh: line 31: [: -ne: unary operator expected
/home/jira/jirasoftware/atlassian-jira-software-8.5.1-standalone/bin/set-gc-params.sh: line 5: [: -ge: unary operator expected
Existing PID file found during start.
Unable to read PID file. Start aborted.

Check JAVA_HOME:检查JAVA_HOME:

[jira@node1 bin]$ echo $JAVA_HOME
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.232.b09-0.el7_7.x86_64/jre/bin/java

Check PID:检查PID:

[jira@node1 bin]$ ps aux | grep jira
root      8185  0.0  0.4 241148  4552 pts/0    S    06:47   0:00 sudo su - jira
root      8186  0.0  0.2 191748  2300 pts/0    S    06:47   0:00 su - jira
jira      8187  0.0  0.2 116096  2812 pts/0    S    06:47   0:00 -bash
jira      8299  0.0  0.1 155364  1876 pts/0    R+   07:04   0:00 ps aux
jira      8300  0.0  0.0 112712   960 pts/0    R+   07:04   0:00 grep --color=auto jira

No PID exists in the jira user process. jira用户进程中不存在 PID。 Why aborted?为什么流产?

Use script to stop the jira and then start it again.使用脚本停止 jira,然后重新启动它。 As you can see in the log you have already PID file:正如您在日志中看到的,您已经有了 PID 文件:

Existing PID file found during start.

Or you can remove the PID file by hand and try to start again或者您可以手动删除PID文件并尝试重新启动

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM