背景:

由于公司机房停电,jira服务器在停电期间需要关机处理,然而待重启启动服务时,jira出现报错,页面报错信息如下:

[Jira]启动报错无法删除缓存文件felix-cache的解决方法

Unable to clean the cache directory: /home/atlassian/data/jira/plugins/.osgi-plugins/felix caused by: Unable to delete file: /home/atlassian/data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle186/version0.0/revision.location

报错原因可以推断为由于Tomcat服务的不正确关闭触发了OSGI插件的不一致导致。

解决方法如下:

1、首先,需要关闭jira的tomcat服务,命令如下:

1)查询进程ps -ef|grep java 或ps -ef|grep tomcat

2)删除进程(关闭服务)kill –9 xxxx  (xxxx为进程id)

2、先定位到指定路径,用到命令为cd和ls

1)发现一个问题:指定路径下无看到.osgi-plugins文件。原因:其为隐藏文件,采取命令ls –a即可查看文件首字符为.(英文句号)的隐藏文件

3、定位到指定路径后删除目标文件,命令如下rm -if felix-cache

4、重启jira服务即可

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-16
  • 2022-12-23
  • 2022-12-23
  • 2021-06-12
猜你喜欢
  • 2021-12-25
  • 2022-01-08
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-11-10
相关资源
相似解决方案