Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
howto:how_to_fix_yum_basic_auth_behind_a_proxy [2015/03/24 21:27] – smark | howto:how_to_fix_yum_basic_auth_behind_a_proxy [2015/03/24 21:33] – [Resolution] smark | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== How To Fix Yum Basic HTTP Authentication Behind a Proxy ====== | ====== How To Fix Yum Basic HTTP Authentication Behind a Proxy ====== | ||
- | ====== Problem | + | ===== Problem ===== |
When configuring a yum proxy via / | When configuring a yum proxy via / | ||
[root@myhost yum.repos.d]# | [root@myhost yum.repos.d]# | ||
Line 10: | Line 10: | ||
Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel6-some-repo-x.y. Please verify its path and try again | Error: Cannot retrieve repository metadata (repomd.xml) for repository: rhel6-some-repo-x.y. Please verify its path and try again | ||
- | ====== Additional Information | + | ===== Additional Information ===== |
The customer used a cloud-based proxy service (ZScaler) but has NOT implemented proxy authentication. The proxy is configured correctly in / | The customer used a cloud-based proxy service (ZScaler) but has NOT implemented proxy authentication. The proxy is configured correctly in / | ||
- | ====== Troubleshooting | + | ===== Troubleshooting ===== |
A packet capture indicated the following HTTP header when requesting the repository information: | A packet capture indicated the following HTTP header when requesting the repository information: | ||
GET http:// | GET http:// | ||
Line 59: | Line 59: | ||
This problem currently exists in RHEL 6.6 but may be resolved in a future version. It likely exists on any system with the python-urlgrabber-3.9.1-9 package. | This problem currently exists in RHEL 6.6 but may be resolved in a future version. It likely exists on any system with the python-urlgrabber-3.9.1-9 package. | ||
- | ====== Resolution | + | ===== Resolution ===== |
- | Modify / | + | |
- | Apply the patch as documented in the NEXUS URL. | + | - Modify / |
- | Copy the file urlgrabber.patch to the /root/ directory. | + | |
- | Back up the existing grabber.py file: | + | |
- | cp / | + | |
- | Patch the file: | + | cp / |
- | patch / | + | |
- | Each command should return an output similar to below: | + | patch / |
- | patching file / | + | |
- | Hunk #2 succeeded at 426 (offset -5 lines). | + | patching file / |
- | Hunk #3 succeeded at 828 (offset -6 lines). | + | Hunk #2 succeeded at 426 (offset -5 lines). |
- | Hunk #4 succeeded at 1253 (offset -9 lines). | + | Hunk #3 succeeded at 828 (offset -6 lines). |
- | Hunk #5 succeeded at 1349 (offset -9 lines). | + | Hunk #4 succeeded at 1253 (offset -9 lines). |
- | Re-run the "yum check-update" | + | Hunk #5 succeeded at 1349 (offset -9 lines). |
+ | |