请稍等 ...
×

采纳答案成功!

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

启动artifactory-jcr 镜像报错,缺少master.key,如何解决?

022-01-17T15:57:06.001Z 35[jfob ] [INFO ] [4ce5626ecd3865c6] [security_keys.go:149 ] [main ] - Master key is missing. Pending for 110 seconds with 2m0s timeout [startup]
2022-01-17T15:57:10.183Z [jfrou] [INFO ] [46b278ef0a9101f0] [security_keys.go:149 ] [main ] - Master key is missing. Pending for 115 seconds with 2m0s timeout
2022-01-17T15:57:10.489Z [jfint] [INFO ] [219cf4f8403f6e06] [security_keys.go:149 ] [main ] - Master key is missing. Pending for 115 seconds with 2m0s timeout [startup]
2022-01-17T15:57:10.602Z [jfmd ] [INFO ] [7b1c4e26a789cd62] [security_keys.go:149 ] [main ] - Master key is missing. Pending for 115 seconds with 2m0s timeout [init]
2022-01-17T15:57:11.059Z 35[jfob ] [INFO ] [4ce5626ecd3865c6] [security_keys.go:149 ] [main ] - Master key is missing. Pending for 115 seconds with 2m0s timeout [startup]
2022-01-17T15:57:14.497Z [jffe ] [INFO ] [ ] [ ] [main ] - pinging artifactory, attempt number 100
2022-01-17T15:57:14.568Z [jffe ] [INFO ] [ ] [ ] [main ] - pinging artifactory attempt number 100 failed with code : ECONNREFUSED
2022-01-17T15:57:14.987Z [jfrou] [FATAL] [46b278ef0a9101f0] [bootstrap.go:98 ] [main ] - Failed resolving master key: failed resolving ‘shared.security.masterKey’ key; file does not exist: /opt/jfrog/artifactory/var/etc/security/master.key
2022-01-17T15:57:15.129Z [jfmd ] [ERROR] [7b1c4e26a789cd62] [keys.go:23 ] [main ] - Failed resolving master key: failed resolving ‘shared.security.masterKey’ key; file does not exist: /opt/jfrog/artifactory/var/etc/security/master.key

正在回答

1回答

在命令行执行:

export MASTER_KEY=$(openssl rand -hex 32)

echo ${MASTER_KEY}


最好是放到bash_profile里面,这样机器启动就会自动加载

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号