I am trying to use a yum proxy to Centos 8 EPEL, but I keep getting 404’s on xml.xz files. The only entry in the Nexus log is that is about “An exception occurred determining the content type of asset”. I have tried to disable Strict Content Type Validation but it does not help fix the issue.
Is this a bug, or am I doing something wrong?
Nexus version:
Nexus OSS 3.21.1-01
Client error:
Cannot download ‘https://reposerver/repository/epel_mirror_2/8/Everything/x86_64/’: Yum repo downloading error: Downloading error(s): repodata/af449e2ed3e8482345740f973eab1fd3054df95d9eb701800529c05c6c9a1e31-prestodelta.xml.xz - Cannot download, all mirrors were already tried without success.
(showing 404 when trying from a browser)
Server log:
2020-03-27 11:05:00,594+0100 DEBUG [qtp350052038-1047] *UNKNOWN org.sonatype.nexus.httpclient.outbound - https://mirror.netsite.dk/epel/8/Everything/x86_64/repodata/af449e2ed3e8482345740f973eab1fd3054df95d9eb701800529c05c6c9a1e31-prestodelta.xml.xz < HTTP/1.1 200 OK @ 20.83 ms
2020-03-27 11:05:00,597+0100 WARN [qtp350052038-1047] *UNKNOWN org.sonatype.nexus.repository.storage.StorageTxImpl - An exception occurred determining the content type of asset 8/Everything/x86_64/repodata/af449e2ed3e8482345740f973eab1fd3054df95d9eb701800529c05c6c9a1e31-prestodelta.xml.xz in repository epel_mirror_2
Proxy configuration:
{
“name”: “epel_mirror_2”,
“format”: “yum”,
“url”: “REMOVED”,
“online”: true,
“storage”: {
“blobStoreName”: “EPEL”,
“strictContentTypeValidation”: false
},
“cleanup”: null,
“proxy”: {
“remoteUrl”: “REMOVED”,
“contentMaxAge”: 1440,
“metadataMaxAge”: 5
},
“negativeCache”: {
“enabled”: false,
“timeToLive”: 5
},
“httpClient”: {
“blocked”: false,
“autoBlock”: true,
“connection”: {
“retries”: null,
“userAgentSuffix”: null,
“timeout”: null,
“enableCircularRedirects”: false,
“enableCookies”: false
},
“authentication”: null
},
“routingRuleName”: null,
“type”: “proxy”
},