分析過程:
早上發現bamboo無法訪問,便使用命令
ps -ef | grep 8085
發現沒有任何服務佔用8085連接埠(bamboo使用tomcat作為內嵌伺服器,連接埠使用8085),
原來是伺服器沒有啟動,於是重啟bamboo服務,結果仍然無法正常訪問;
查看日誌,報錯資訊如下:
2014-04-01 10:12:54,652 INFO [localhost-startStop-1] [MessageDatabase] Database /opt/app/bamboo/atlassian-bamboo-4.4.4-home/jms-store/bamboo/KahaDB/lock is locked...
waiting 10 seconds for the database to be unlocked.
Reason: java.io.IOException: File '/opt/app/bamboo/atlassian-bamboo-4.4.4-home/jms-store/bamboo/KahaDB/lock' could not be locked.
猜測大概是因為程式鎖定了資料庫導致。
但是有點搞不明白,既然都沒有服務啟動,而資料庫又是內建的,非共用資料庫,怎麼會出現資料庫鎖定呢???
google尋找原因,發現以下回複:
-----------------------------------------
after so much serach i found more than one instace were running.
ps -ax | grep bamboo
then I kill all the process and restart the server.
and its fixed.
thanks for all your help.
-----------------------------------------
-----------------------------------------
You can shut down your Bamboo, make sure that there are no other Bamboo instances
running (ps -ax | grep bamboo), delete 'BambooHome/jms-store' directory
and start your Bamboo instance.
Armen.
-------------------------------------------
嘗試之,發現竟然有多個bamboo的執行個體;何其詭異哪!!!!!
殺死所有進程,重啟bamboo Server,搞定...