【发布时间】:2022-09-28 05:08:58
【问题描述】:
我正在将 Artifactory 版本 6.11(zip 安装,安装在 RH7)升级和迁移到 7.35 版本(安装在新的服务器和主机名上,rpm 安装)。我在克隆的 VM 上执行此操作作为测试,因此与我们原始系统唯一不同的是主机名。正如文档建议的那样,我首先将 6.11 升级到 7.35,一切似乎都很顺利。我按照升级步骤操作,migration.sh 脚本成功完成。
我遇到的主要问题是,当我进入 Artifacts 时,\'url to file\' 会出现 502 Bad Gateway nginx 错误。在我看来,指针在某处不正确,我对它可能在哪里感到困惑。升级成功,所以我知道数据在那里,但 Artifactory 无法正确链接到它。
更新/澄清:为了改进我的描述:当我进入 Application bar / Artifactory / Artifacts 并从左侧列中选择一个 repo 时,\'url to file\' 无法加载。我假设这是树视图?
在当前工作的服务器上,诸如 https://acme/artifactory/repo 之类的 url 指向一个目录列表。但是,在新服务器上,如果我使用 http (在测试 VM 上未安装证书,但安装在原始服务器上)。
在 v7.35 中,我进入 \'http 设置\' 并将服务器提供程序切换为 nginx 和 apache(Tomcat 设置为默认值),虽然站点在两者下运行良好,但 repo 文件的 url 仍然失败nginx 错误,无论服务器提供商如何。
当我对原始服务器进行完整系统导出时,文档让我取消选中“排除数据”。我还导出了存储库,并通过路径将它们导入。一切似乎都像在原始服务器上一样正确显示,但是当我单击 url 时,我仍然无法查看目录列表。
可能是文件存储的位置不同吗?如果是这样,我将如何将其指向正确的位置?
V7.35: /opt/jfrog/artifactory/var/data/artifactory/filestore
V6.11: /opt/artifactory/artifactory-pro-6.11.3/data/filestore
基本 URL 与原始安装相同 http(s)://domain/artifactory
artifactory-service.log 的输出
2022-03-25T16:58:40.429Z [jfrt ] [INFO ] [3bb67ba1f30d560e] [ifactoryApplicationContext:564] [ttp-nio-8081-exec-10] - Artifactory application context set to READY by reload
2022-03-25T16:58:40.430Z [jfrt ] [INFO ] [3bb67ba1f30d560e] [c.CentralConfigServiceImpl:933] [ttp-nio-8081-exec-10] - Configuration reloaded.
2022-03-25T17:09:04.013Z [jfrt ] [INFO ] [708a8ae7c307ec92] [c.CentralConfigServiceImpl:914] [http-nio-8081-exec-5] - Reloading configuration... old revision 212, new revision 213
2022-03-25T17:09:04.121Z [jfrt ] [INFO ] [708a8ae7c307ec92] [c.CentralConfigServiceImpl:542] [http-nio-8081-exec-5] - New configuration with revision 213 saved.
2022-03-25T17:09:04.121Z [jfrt ] [INFO ] [708a8ae7c307ec92] [ifactoryApplicationContext:564] [http-nio-8081-exec-5] - Artifactory application context set to NOT READY by reload
2022-03-25T17:09:04.181Z [jfrt ] [INFO ] [708a8ae7c307ec92] [ifactoryApplicationContext:564] [http-nio-8081-exec-5] - Artifactory application context set to READY by reload
2022-03-25T17:09:04.181Z [jfrt ] [INFO ] [708a8ae7c307ec92] [c.CentralConfigServiceImpl:933] [http-nio-8081-exec-5] - Configuration reloaded.
2022-03-25T17:36:47.707Z [jfrt ] [INFO ] [d7bb51eedd93b03c] [aseBundleCleanupServiceImpl:84] [art-exec-20 ] - Starting to cleanup incomplete Release Bundles
2022-03-25T17:36:47.708Z [jfrt ] [INFO ] [d7bb51eedd93b03c] [b.ReleaseBundleServiceImpl:415] [art-exec-20 ] - Finished deleting orphan/unidentified items from _intransit repository
2022-03-25T17:36:47.709Z [jfrt ] [INFO ] [d7bb51eedd93b03c] [aseBundleCleanupServiceImpl:90] [art-exec-20 ] - Finished incomplete Release Bundles cleanup
-
日志表明没有问题。您能否澄清以下两点。 1.您是否无法从 Artifactory UI 下载任何文件,即使它们在左侧树形视图的 UI 中可见。应用程序 > 工件 > 工件 > 扩展存储库 > 它应该显示工件列表 > 立即下载。让我知道你是否可以下载。 2. 当你在 IP 和端口上打开 Artifactory 时会发生什么? localhost:8082
-
@GajapathiKimidi 当我扩展存储库时,我可以向下钻取并下载 .rpm、.env。文件等。但是,\'url to file\' 总是以 502 Bad Gateway 结尾。当我加载 hostname:8082 时,它直接将我带到 Artifactory 登录屏幕。
标签: artifactory