【发布时间】:2016-01-18 07:02:28
【问题描述】:
我目前正在 Windows Server 2008 R2 上运行 Artifactory Professional 4.0.2 rev 40009 的实例。
我已将 https://mirror.aarnet.edu.au 配置为 Artifactory 中的远程 Yum 存储库。
我已经在 linux 服务器上配置 yum 指向这个工件实例。
当我运行命令时:
yum install -y epel-release
我收到这样的 404 错误:
epel/7/x86_64/updateinfo FAILED
http://<Artifactory Server Instance>/artifactory/mirror.aarnet.edu.au/pub/epel/7/x86_64/repodata/0dd9044655fe1722d6579c768395f719a74f9954cf78e80d0b757a313be4f7e2-updateinfo.xml.bz2: [Errno 14] HTTP Error 404 - Not Found| 0 B --:--:-- ETA Trying other mirror.
如果我直接浏览网址,我会收到类似的 404 错误:
{
"errors" : [ {
"status" : 404,
"message" : "Not Found"
} ]
}
Artifactory 中的远程 Yum Repo 配置:
<remoteRepository>
<key>mirror.aarnet.edu.au</key>
<type>yum</type>
<description>Mirror of Yum packages hosted by mirror.aarnet.edu.au</description>
<includesPattern>pub/centos/**,epel/**,pub/epel/**,pub/elrepo/**,pub/el6-dom0/**,pub/fedora/**,pub/fedora-secondary/**,</includesPattern>
<repoLayoutRef>simple-default</repoLayoutRef>
<dockerApiVersion>V1</dockerApiVersion>
<forceDockerAuthentication>false</forceDockerAuthentication>
<blackedOut>false</blackedOut>
<handleReleases>true</handleReleases>
<handleSnapshots>true</handleSnapshots>
<maxUniqueSnapshots>0</maxUniqueSnapshots>
<suppressPomConsistencyChecks>true</suppressPomConsistencyChecks>
<propertySets>
<propertySetRef>artifactory</propertySetRef>
</propertySets>
<archiveBrowsingEnabled>false</archiveBrowsingEnabled>
<url>https://mirror.aarnet.edu.au</url>
<offline>false</offline>
<hardFail>false</hardFail>
<storeArtifactsLocally>true</storeArtifactsLocally>
<fetchJarsEagerly>false</fetchJarsEagerly>
<fetchSourcesEagerly>false</fetchSourcesEagerly>
<retrievalCachePeriodSecs>0</retrievalCachePeriodSecs>
<assumedOfflinePeriodSecs>300</assumedOfflinePeriodSecs>
<missedRetrievalCachePeriodSecs>7200</missedRetrievalCachePeriodSecs>
<remoteRepoChecksumPolicyType>generate-if-absent</remoteRepoChecksumPolicyType>
<unusedArtifactsCleanupPeriodHours>24</unusedArtifactsCleanupPeriodHours>
<shareConfiguration>false</shareConfiguration>
<synchronizeProperties>false</synchronizeProperties>
<listRemoteFolderItems>true</listRemoteFolderItems>
<rejectInvalidJars>false</rejectInvalidJars>
<allowAnyHostAuth>false</allowAnyHostAuth>
<socketTimeoutMillis>15000</socketTimeoutMillis>
<enableCookieManagement>false</enableCookieManagement>
<enableTokenAuthentication>false</enableTokenAuthentication>
<proxyRef>Developer-Proxy</proxyRef>
</remoteRepository>
Yum 回购配置:
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://<artifactory server instance>/artifactory/mirror.aarnet.edu.au/pub/epel/$releasever/$basearch/
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=http://<artifactory server instance>/artifactory/mirror.aarnet.edu.au/pub/epel/$releasever/$basearch/debug
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=http://<artifactory server instance>/artifactory/mirror.aarnet.edu.au/pub/epel/$releasever/SRPMS
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1
在 Artifactory 中删除缓存并删除远程存储库的内容修复了该问题,但它不断重复出现,我们正在寻找永久修复。
我该如何解决这个问题?
输出失败的二进制 url ?trace :
Request ID: 11bb6581
Repo Path ID: mirror.aarnet.edu.au:pub/centos/7/updates/x86_64/repodata/1d3ddc7dc7e6b67102e2dec1e43813582e2de2d1c813007350586aee0e32eb2e-primary.sqlite.bz2:
Method Name: GET
User: <UserName>
Time: 2016-02-02T13:56:45.565+11:00
Thread: http-nio-8082-exec-28
Steps:
2016-02-02T13:56:45.565+11:00 Received request
2016-02-02T13:56:45.565+11:00 Request source = 10.62.58.23, Last modified = 01-01-70 09:59:59 +10:00, If modified since = -1, Thread name = http-nio-8082-exec-28
2016-02-02T13:56:45.565+11:00 Executing any BeforeDownloadRequest user plugins that may exist
2016-02-02T13:56:45.565+11:00 Exiting download process - intercepted by addon manager
【问题讨论】:
-
您是如何配置远程存储库的?你是如何配置你的 yum 的?
-
@JBaruch 感谢您的回复,我已经用信息更新了问题
-
第一眼看起来不错。请尝试将网址粘贴到浏览器中,看看是否仍然是404?如果是,请将
?trace添加到URL末尾并查看结果。 -
@JBaruch 我已经删除了缓存并删除了内容。我会密切关注它,如果它再次出现在 repo 中,我将使用
?trace浏览网址并将其发布在这里。 -
今天在同一个存储库中再次出现问题,距离我上次删除缓存并删除此存储库的内容已经过去了 2 周。尝试执行“yum install -y epel-release”时会出现“....primary.sqlite.bz2:[Errno 14] HTTP 错误 404 - 未找到”。如果我浏览带有 ?trace 末尾的 url,则输出为:
标签: artifactory yum