【背景】java
原先的Confluence, JIRA, Fisheye都部署在一臺服務器(192.168.200.203)上,致使這臺機器太卡,公司又分配了兩臺虛擬機來分開這幾個應用(192.168.200.241, 192.168.200.242),按照如下進行分配: mysql
Fisheye: 192.168.200.241,考慮到Fisheye是代碼審查工具,開發人員有18我的同時使用,並且訪問頻率很高,故單獨給Fisheye放在一臺機器上 linux
Confluence, JIRA:192.168.200.242:這兩個放在一臺機器上,訪問人數不是特別多,訪問頻率不是很高 web
【開工】sql
JIRA: 數據庫
scp -r oecs-g2/apache-tomcat-6.0.35-jira/ sysadmin@192.168.200.242:/usr/local/oecs-g2/apache-tomcat-6.0.35-jira/ apache
scp -r oecs-g2/jirahome/ sysadmin@192.168.200.242: /usr/local/oecs-g2/jira/jirahome vim
# Do not modify this file unless instructed. It is here to store the location of the JIRA home directory only and is typically written to by the installer. tomcat
jira.home=/usr/local/oecs-g2/jira/jirahome 服務器
<?xml version="1.0" encoding="UTF-8"?>
<jira-database-config>
<name>defaultDS</name>
<delegator-name>default</delegator-name>
<database-type>mysql</database-type>
<jdbc-datasource>
<url>jdbc:mysql://192.168.200.203:3306/jira?useUnicode=true&characterEncoding=UTF8&sessionVariables=storage_engine=InnoDB</url>
<driver-class>com.mysql.jdbc.Driver</driver-class>
<username>jira</username>
<password>jira</password>
<pool-min-size>20</pool-min-size>
<pool-max-size>20</pool-max-size>
<pool-max-wait>30000</pool-max-wait>
<validation-query>select 1</validation-query>
<min-evictable-idle-time-millis>60000</min-evictable-idle-time-millis>
<time-between-eviction-runs-millis>300000</time-between-eviction-runs-millis>
<pool-max-idle>20</pool-max-idle>
<pool-remove-abandoned>true</pool-remove-abandoned>
<pool-remove-abandoned-timeout>300</pool-remove-abandoned-timeout>
<pool-test-while-idle>true</pool-test-while-idle>
<validation-query-timeout>3</validation-query-timeout>
</jdbc-datasource>
</jira-database-config>
Fisheye遷移:
scp -r /usr/local/oecs-g2/fisheye/ sysadmin@192.168.200.241:/usr/local/oecs-g2/fisheye
22 <web-server site-url="http://192.168.200.241:8060">
23 <http bind=":8060" proxy-port="8060" proxy-scheme="http" proxy-host="192.168.200.241"/>
24 </web-server>
33 crowd.server.url=http\://192.168.200.242\:8080/jira/
4. 至此Fisheye配置完成,能夠在Fisheye上使用JIRA用戶進行登陸並進行代碼審查
Reference:
配置JIRA & FishEye:
https://confluence.atlassian.com/display/FISHEYE0210/JIRA+and+Crowd+Authentication
Confluence遷移:
scp -r /usr/local/oecs-g2/confluence/apache-tomcat-6.0.35.confluence sysadmin@192.168.200.242:/usr/local/oecs-g2/apache-tomcat-6.0.35.confluence
scp -r /usr/local/oecs-g2/confluence/data sysadmin@192.168.200.242:/usr/local/oecs-g2/confluence/
com.atlassian.util.concurrent.lazyreference$initializationexception java.lang.nullpointerexception
百度了很久,找不到關鍵信息,再次使用google,找到很多信息,技術搜索還得用谷哥
解決辦法,如下爲E文原版內容:
This error is most commonly caused by either of the following:
個人問題出在第2點上,數據庫沒有配置,先前配置JIRA和Fisheye的時候去改數據庫配置的時候,發現都是直接用ip訪問了,大意了,沒在乎,問題居然出在大意的地方,讓粗心給折騰的……
àà
全部用戶使用JIRA裏的用戶登陸,成功,遷移大功告成,哇哈哈哈