- Newest
- Most votes
- Most comments
It seems like your CodeBuild process is encountering an issue with malformed URLs for AlmaLinux repositories, specifically with the inclusion of an additional directory that doesn't belong in the URL. This is causing 404 errors when trying to download dependencies, as the repository is trying to resolve packages from a path that doesn't exist.
This might not necessarily be a new bug but could be a configuration issue or a change in the repository structure. Here's how you can troubleshoot and potentially resolve this:
Steps to Resolve the Issue: Check the Base URL Configuration:
Review your yum or dnf repository configuration files (/etc/yum.repos.d/*) to ensure the base URLs are correct.
Ensure that no extra directory (/p/) is being appended to the package paths in the repository configuration.
Update Repository URLs:
If the URLs have changed or the repository configuration has somehow been updated to include that extra directory (/p/), you might need to modify the repository URLs to remove this incorrect part. For example, make sure that:
http://aws.repo.almalinux.org/8.10/BaseOS/x86_64/os/Packages/p/python3-dateutil-2.6.1-6.el8.noarch.rpm is changed to:
https://aws.repo.almalinux.org/8.10/BaseOS/x86_64/os/Packages/python3-dateutil-2.6.1-6.el8.noarch.rpm Check if Mirrors Are the Problem: Sometimes the mirrors themselves might be misconfigured or out-of-sync. You can try manually changing the mirror URL to a different one, or you could run a dnf clean all to clear the metadata and then attempt a fresh download.
For example, you can switch mirrors in the .repo files under /etc/yum.repos.d/.
Temporarily Use a Different Repository or Mirror: If you believe that the repository is not working properly, try switching to another mirror for a quick test. Use a URL that you know is valid, like the CentOS mirrors or a different AlmaLinux mirror.
Rebuild the Docker Image: After ensuring that your repository configuration is correct and mirrors are updated, try rebuilding the Docker image. This might help reset any cache that’s causing the issue.
Check for Changes in AlmaLinux Repositories: Look for any announcements or changes in the AlmaLinux repository setup that might have affected how dependencies are served. Sometimes updates to the repository configuration or new versions of the OS can cause issues like this.
Verify the Package Existence: Manually check if the package python3-dateutil-2.6.1-6.el8.noarch.rpm exists at the expected location. This can help confirm whether it’s a problem with the repository or with your build process.
regards m Zubair https://zeonedge.com