标签:问题 ima 选项 reference 完成 index reset com 日志
昨天下午,jira服务器因为电源线故障挂掉了,重启之后,发现服务不正常,索引失败。报错日志如下:
Caused by: com.atlassian.jira.util.RuntimeIOException: java.io.IOException: read past EOF
at com.atlassian.jira.index.WriterWrapper$1.get(WriterWrapper.java:60)
at com.atlassian.jira.index.WriterWrapper$1.get(WriterWrapper.java:53)
at com.atlassian.jira.index.WriterWrapper.<init>(WriterWrapper.java:46)
at com.atlassian.jira.index.WriterWrapper.<init>(WriterWrapper.java:53)
at com.atlassian.jira.index.DefaultIndexEngine$DefaultWriterFactory.get(DefaultIndexEngine.java:269)
at com.atlassian.jira.index.DefaultIndexEngine$WriterReference.doCreate(DefaultIndexEngine.java:250)
at com.atlassian.jira.index.DefaultIndexEngine$WriterReference.doCreate(DefaultIndexEngine.java:227)
at com.atlassian.jira.index.DefaultIndexEngine$ReferenceHolder$2.get(DefaultIndexEngine.java:311)
at com.atlassian.jira.concurrent.ResettableLazyReference.getOrCreateUnderLock(ResettableLazyReference.java:97)
at com.atlassian.jira.concurrent.ResettableLazyReference.getOrCreate(ResettableLazyReference.java:89)
at com.atlassian.jira.index.DefaultIndexEngine$ReferenceHolder.get(DefaultIndexEngine.java:308)
at com.atlassian.jira.index.DefaultIndexEngine$SearcherFactoryImpl.useNRT(DefaultIndexEngine.java:397)
按照网上的方法,先备份再导入,依然报错。
解决办法:
1,停止jira服务
[root@jira-server ~]# /etc/init.d/jira stop
2,进入jira的数据目录,删除索引文件
[root@jira-server ~]# rm -rf /srv/atlassian/application-data/jira/caches/indexes
3,启动jira服务
[root@jira-server ~]# /etc/init.d/jira start
4,重建jira索引
登录jira,进入设置选项中的系统设置
输入管理员密码
选择左侧菜单栏底部的索引选项
点击重新索引等待完成即可
标签:问题 ima 选项 reference 完成 index reset com 日志
原文地址:http://blog.51cto.com/hld1992/2140295