从6.0.2升级到Artifactory 6.9.1后,无法请求元数据服务Service-Id

时间:2019-04-10 14:33:36

标签: artifactory

我已使用以下提供的说明将Artifactory 6.0.2安装的一些测试实例升级到了6.9.1版:

https://www.jfrog.com/confluence/display/RTF/Upgrading+Artifactory

我已经尝试了yum升级和rpm安装路径,并希望在日志文件中没有错误消息的情况下结束安装,以最大程度地减少此类错误引起的潜在问题。

在安装和执行许多手动修复步骤后,我遇到错误"Unable to request the Metadata Service Service-Id",找不到以下结果的Google结果

2019-04-09 16:22:13,409 [art-init] [ERROR] (o.a.m.s.s.ArtifactoryMetadataClientConfigStore:111) - Unable to request the Metadata Service Service-Id

2019-04-09 16:22:13,409 [art-init] [ERROR] (o.a.m.s.MetadataEventServiceImpl:188) - Unable to init the Metadata client. The Metadata Event pipeline will be disabled.

我尝试了yum升级和rpm安装路径。

升级后,我注意到Catalina和Artifactory日志文件中存在错误,并跟踪了有关这些错误消息的google搜索结果(在我的后代问题下方添加了此内容)

(1)创建: /var/opt/jfrog/artifactory/access/etc/bootstrap.creds

 Containing: 

access-admin@127.0.0.1=NEW_PASSWORD

(2)删除了访问文件夹:

rm -rf /opt/jfrog/artifactory/tomcat/webapps/access

(3)更改了Artifactory目录的权限:

cd /var/opt/jfrog/artifactory/ chown -R artifactory:artifactory .

(4)编辑了artifactory.system.properties文件,

artifactory.pathChecksum.migration.job.enabled=true

(5)通过将以下内容添加到同一文件中,实现了sha 256迁移:

##SHA2 Migration block artifactory.sha2.migration.job.enabled=true artifactory.sha2.migration.job.queue.workers=5

(5)最后,Rebooted instance

但是,包括The Metadata Event pipeline will be disabled在内的错误仍然存​​在。

我希望Artifactory服务器的最终状态将是Artifactory或Catalina日志文件中都没有错误消息。

在修复此错误方面的任何帮助,以便我可以部署最新的Artifactory版本,都将受到高度赞赏。

谢谢。

=====================

以下是一些初始化更改后出现的错误日志:

(1)2019-03-27 05:03:22,872 [art-init] [WARN ] (o.j.a.c.AccessClientHttpException:41) - Unrecognized ErrorsModel by Access. Original message: Failed on executing /api/v1/system/ping, with response: Not Found 2019-03-27 05:03:22,872 [art-init] [ERROR] (o.a.s.a.AccessServiceImpl:364) - Could not ping access server: {} org.jfrog.access.client.AccessClientHttpException: HTTP response status 404:Failed on executing /api/v1/system/ping, with response: Not Found.

(2)2019-03-27 05:06:53,235 [art-exec-3] [INFO ] (o.a.s.j.m.s.Sha256MigrationJobDelegate:216) - SHA256 migration job (for existing artifacts) is disabled and will not run, there are 52496 artifacts without SHA256 values in the database.  Future versions of Artifactory may enforce this migration as a prerequisite for upgrades.

(3)2019-04-04 16:20:10,951 [localhost-startStop-1] [JFrog-Access] [WARN ] (o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext:550) - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.jersey.JerseyAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jerseyConfig' defined in URL [jar:file:/opt/jfrog/artifactory/tomcat/webapps/access/WEB-INF/lib/access-application-4.2.0.jar!/org/jfrog/access/rest/config/JerseyConfig.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.jfrog.access.rest.config.JerseyConfig]: Constructor threw exception; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'systemResource' defined in URL [jar:file:/opt/jfrog/artifactory/tomcat/webapps/access/WEB-INF/lib/access-server-rest-4.2.0.jar!/org/jfrog/access/server/rest/resource/system/SystemResource.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'backupSubResource' defined in URL [jar:file:/opt/jfrog/artifactory/tomcat/webapps/access/WEB-INF/lib/access-server-rest-4.2.0.jar!/org/jfrog/access/server/rest/resource/system/backup/BackupSubResource.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'backupServiceImpl': Unsatisfied dependency expressed through field 'importerExporter'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'accessImporterExporterImpl': Unsatisfied dependency expressed through method 'setServerBootstrap' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accessServerBootstrapImpl': Invocation of init method failed; nested exception is java.lang.IllegalStateException: Failed to bootstrap initial access credentials.

1 个答案:

答案 0 :(得分:0)

感谢您的反馈@ error404。

我们最终在Jfrog支持(https://www.jfrog.com/jira/browse/RTFACT-18939)的帮助下打开了一张票证,该票务员可以复制该问题,随后将票证标记为“修复版本:6.10.0”

尽管没有严格说明,但我认为此修订版本更新意味着所描述的问题将在下一版本中得到解决。