Невозможно запросить Service-Id службы метаданных после обновления до Artifactory 6.9.1 с 6.0.2 - PullRequest
0 голосов
/ 10 апреля 2019

Я обновил несколько тестовых экземпляров нашей Установки Artifactory 6.0.2 до версии 6.9.1, используя предоставленные инструкции, найденные по адресу:

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

Я пробовал оба нямпути обновления и 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 голосов
/ 26 апреля 2019

Спасибо за отзыв @ error404.

В итоге мы открыли тикет с поддержкой Jfrog (https://www.jfrog.com/jira/browse/RTFACT-18939), который смог повторить проблему и впоследствии пометил тикет как «Fix Version / s: 6.10.0»

Хотя это и не указано строго, я предполагаю, что это обновление Fix Fix подразумевает, что описанная проблема будет исправлена ​​в следующем выпуске.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...