【背景】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里的用户登陆,成功,迁移大功告成,哇哈哈哈