JIRA startup failed, JIRA has been locked.

聽海★藍心夢發表於2011-08-29

一、故障現象

介面登入時提示:
JIRA Startup Failed
You cannot access JIRA at present. Look at the table below to identify the reasons 

Description 
The jira.home directory '/data/www/jira_home/jiradata' is already locked. Please see the JIRA documentation for more information on locked jira.home directories.
 
後臺啟動:
[oracle@bogon bin]$ ./startup.sh
Detecting JVM PermGen support...
PermGen switch is supported. Setting to 256m
If you encounter issues starting up JIRA Standalone Edition, please see the Troubleshooting guide at
Using CATALINA_BASE:   /home/atlassian-jira-enterprise-4.0.2-standalone
Using CATALINA_HOME:   /home/atlassian-jira-enterprise-4.0.2-standalone
Using CATALINA_TMPDIR: /home/atlassian-jira-enterprise-4.0.2-standalone/temp
Using JRE_HOME:        /usr/java/jdk1.6.0_25
Using CLASSPATH:       /home/atlassian-jira-enterprise-4.0.2-standalone/bin/bootstrap.jar
touch: cannot touch `/home/atlassian-jira-enterprise-4.0.2-standalone/logs/catalina.out': Permission denied

二、故障原因
'/data/www/jira_home' 下有一個 .jira-home.lock檔案,刪除重新啟動就好了。
.jira-home.lock檔案是為了防止在一臺機器上跑多個JIRA站點,並且又設定了同一個jira.home的情況。

三、故障排除
1、查詢.jira-home.lock檔案
[root@bogon ~]# find / -name '.jira-home.lock'
/data/www/jira_home/jiradata/.jira-home.lock

2、關閉jira命令
/data/www/jira/bin/shutdown.sh

【注】/data/www是我的安裝路徑,修改為自己的安裝目錄

3、啟動jira命令
/data/www/jira/bin/startup.sh

故障解決。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/751371/viewspace-706101/,如需轉載,請註明出處,否則將追究法律責任。

相關文章