请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

jfrog容器停止以后再启动又无法登陆

jfrog第一次启动后可以正常登陆,创建私有镜像仓库,但是使用
docker stop artifactory-jcr
docker start artifactory-jcr
重启jfrog后,jfrog又无法正常启动

登陆 http://192.168.99.101:8081/ 返回如下错误
{
“errors” : [ {
“status” : 500,
“message” : “Artifactory failed to initialize: check Artifactory logs for errors.”
} ]
}
想问一下清风老师,jfrog正确的重启方式是什么,怎么可以持久化

正在回答 回答被采纳积分+3

2回答

清风 2021-03-02 16:13:42

docker stop artifactory-jcr
docker start artifactory-jcr

这样重启没问题,需要保证持久化目录$JFROG_HOME/artifactory/var/etc/有 777 权限

mkdir -p $JFROG_HOME/artifactory/var/etc/

cd $JFROG_HOME/artifactory/var/etc/

touch ./system.yaml

chown -R $UID:$GID $JFROG_HOME/artifactory/var

chmod -R 777 $JFROG_HOME/artifactory/var


2 回复 有任何疑惑可以回复我~
  • 权限配置了,还是出同样的错误,每次都需要清空数据在重新创建
    回复 有任何疑惑可以回复我~ 2021-03-16 09:19:15
  • 清风 回复 yangze8818 #2
    请尝试升级到最新版本,docker pull releases-docker.jfrog.io/jfrog/artifactory-jcr:latest
    回复 有任何疑惑可以回复我~ 2021-03-16 13:41:58
  • 解决了吗?遇到了同样的问题
    
    2021-08-02T04:06:46.273Z [jfrou] [INFO ] [7a67cd0881e64e16] [security_keys.go:114          ] [main                ] - Master key is missing. Pending for 115 seconds with 2m0s timeout
    2021-08-02T04:06:46.542Z [jfmd ] [INFO ] [3e7c60563cb3473a] [security_keys.go:114          ] [main                ] - Master key is missing. Pending for 115 seconds with 2m0s timeout [init]
    2021-08-02T04:06:51.190Z [jfrou] [FATAL] [7a67cd0881e64e16] [bootstrap.go:92               ] [main                ] - Failed resolving master key: failed resolving 'shared.security.masterKey' key; file does not exist: /opt/jfrog/artifactory/var/etc/security/master.key
    2021-08-02T04:06:51.477Z [jfmd ] [ERROR] [3e7c60563cb3473a] [keys.go:22                    ] [main                ] - Failed resolving master key: failed resolving 'shared.security.masterKey' key; file does not exist: /opt/jfrog/artifactory/var/etc/security/master.key
    回复 有任何疑惑可以回复我~ 2021-08-02 12:08:38
清风 2022-03-06 20:14:13

我试了下,把JFrog home设置为~/JFROG_HOME, 更新环境变量,然后根据教程配置,镜像用最新版的JCR,重启就能正常了

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信