Artifactory——启动错误[Artifactory failed to initialize: check Artifactory logs for errors.]解决方案
Posted Starzkg
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Artifactory——启动错误[Artifactory failed to initialize: check Artifactory logs for errors.]解决方案相关的知识,希望对你有一定的参考价值。
问题描述
浏览器访问http://ip:8081:
{
"errors" : [
{
"status" : 500,
"message" : "Artifactory failed to initialize: check Artifactory logs for errors."
} ]
}
环境配置
JDK 1.8
Artifactory 6.x
问题分析
查看日志
tail /usr/local/jfrog/logs/catalina/catalina.out -n 50
tail /usr/local/jfrog/access/logs/access.log
查阅资料
https://stackoverflow.com/questions/55196720/artifactory-6-8-7-wont-start-as-cant-connect-to-access-server
https://www.thinbug.com/q/51565648
解决方案
卸载旧版本java
yum remove java-1.8.0-openjdk
yum remove java-1.8.0-openjdk-devel
yum remove java-1.8.0-openjdk-headless
查看可用openjdk版本
yum --showduplicate list java-1.8.0-openjdk*
卸载新版本java
yum remove java-1.8.0-openjdk-headless-1.8.0.282.b08-1.el7_9
yum remove java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9
yum remove java-1.8.0-openjdk-devel-1.8.0.282.b08-1.el7_9
重启Artifactory
systemctl restart artifactory
参考文章
artifactory 6.8.7 won’t start as can’t connect to access server
centos7 yum 安装指定版本 jdk java
Artifactory无法初始化:上下文为空
以上是关于Artifactory——启动错误[Artifactory failed to initialize: check Artifactory logs for errors.]解决方案的主要内容,如果未能解决你的问题,请参考以下文章
CentOS 8安装JFrog Artifactory社区版解决方案