You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installation of Amazon Corretto on SLES 12.5 fails when the repositories are refreshed. The issue seems to be, that the repository returns an access denied error for the URL:
In newer versions rpm seems to ignore the access denied error, but the version from SLES 12.5 shows this behaviour:
XXXXXXX@YYYYYYY:/home/XXXXXXX> sudo zypper addrepo https://yum.corretto.aws/corretto.repo
Adding repository 'Amazon Corretto' ......................................................................................................................................................................................................[done]
Repository 'Amazon Corretto' successfully added
URI : https://yum.corretto.aws/x86_64
Enabled : Yes
GPG Check : Yes
Autorefresh : No
Priority : 99 (default priority)
Repository priorities are without effect. All enabled repositories share the same priority.
XXXXXXX@YYYYYYY:/home/XXXXXXX> sudo zypper refresh
Retrieving repository 'Amazon Corretto' metadata .........................................................................................................................................................................................[done]
Building repository 'Amazon Corretto' cache ..............................................................................................................................................................................................[done]
Repository 'SLE-Module-Web-Scripting12-Pool' is up to date.
Repository 'SLE-Module-Web-Scripting12-Updates' is up to date.
Repository 'SLE-SDK12-SP5-Pool' is up to date.
Repository 'SLE-SDK12-SP5-Updates' is up to date.
Repository 'SLES12-SP5-Pool' is up to date.
Repository 'SLES12-SP5-Updates' is up to date.
Repository 'adoptopenjdk' is up to date.
Repository 'Network Utilities (SLE_12)' is up to date.
Repository 'Server Monitoring Software (SLE_12)' is up to date.
All repositories have been refreshed.
XXXXXXX@YYYYYYY:/home/XXXXXXX> sudo zypper refresh
Permission to access 'https://yum.corretto.aws/x86_64/media.1/media' denied.
Abort, retry, ignore? [a/r/i/...? shows all options] (a): a
ABORT request: Aborting requested by user
XXXXXXX@YYYYYYY:/home/XXXXXXX> sudo zypper -v refresh
Verbosity: 1
Initializing Target
Specified repositories:
Checking whether to refresh metadata for Amazon Corretto
Retrieving: repomd.xml ...................................................................................................................................................................................................................[done]
Permission to access 'https://yum.corretto.aws/x86_64/media.1/media' denied.
Abort, retry, ignore? [a/r/i/...? shows all options] (a): a
ABORT request: Aborting requested by user
XXXXXXX@YYYYYYY:/home/XXXXXXX>
To work around this issue I now used a local apache server to filter out the broken URL. I create a local proxy (first line ensures the media.1/media url generates a 404, and in other cases proxies to the repository):
Installation of Amazon Corretto on SLES 12.5 fails when the repositories are refreshed. The issue seems to be, that the repository returns an access denied error for the URL:
https://yum.corretto.aws/x86_64/media.1/media
In newer versions rpm seems to ignore the access denied error, but the version from SLES 12.5 shows this behaviour:
To Reproduce
sudo zypper addrepo https://yum.corretto.aws/corretto.repo
sudo zypper refresh
and accept the unknown repository keysudo zypper -v refresh
Result:
If refresh is forced, it will work, but that is not a good state to run in production.
Expected behavior
No error is reported, the repository data is up-to-date.
Additional infos
This issue from SuSE diagnoses, that the server should return a 404 for a non existing path and not 403, which sound reasonable:
https://bugzilla.opensuse.org/show_bug.cgi?id=1032348
Maybe the directory settings just need to be changed, so that not existing files are reported as not existing files.
The text was updated successfully, but these errors were encountered: