Red Hat Satellite 6 クライアントで Yum が '[Errno 14] HTTPS Error 404 - Not Found Trying other mirror' エラーで失敗する
Environment
- Red Hat Satellite 6.x
- Red Hat Enterprise Linux 5.x、6.x、7.x.
Issue
- Satellite 6.x クライアントで、
yumコマンドが以下のエラーで失敗します。
https://satellite.domain.com/pulp/repos/test/Library/content/dist/rhel/server/6/6Server/x86_64/os/repodata /repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Resolution
-
コンテンツホストに正しいリリースバージョンを設定して問題を解決することができます。
- Satellite GUI で
Hosts>Content Hostsに移動し、影響のあるクライアントをクリックします。DetailsセクションでContent Host Contentを編集して適切な release version (今回の例では 7Server) およびライフサイクル環境を選択します。 -
下図は、Satellite の GUI 上での上記の変更を説明していますので参照してください。

- Satellite GUI で
-
あるいは、コンテンツホスト上で、subscription-manager を使用しても正しいリリースバージョンを設定できます。
# cat /etc/redhat-release --> Verify the host RHEL release : # subscription-manager release --show --> Verify the subscription manager release set # subscription-manager release --set=7Server --> Set the correct release # yum clean all # yum repolist
Root Cause
- ホストに、間違ったサブスクリプションマネージャーのリリースが設定されています。
Diagnostic Steps
-
Satellite 6 サーバーのサブスクリプションがあるクライアントで、
yum repolistコマンドを実行します。このコマンドの結果は次のように出力されます。[root@client1 ~] # yum repolist Loaded plugins: package_upload, product-id, refresh-packagekit, security, subscription-manager This system is receiving updates from Red Hat Subscription Management. https://satellite.domain.com/pulp/repos/test/Library/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Trying other mirror. repo id repo name status rhel-6-server-rpms Red Hat Enterprise Linux 6 Server (RPMs) 0 repolist: 0 -
Satellite Server の
/var/log/foreman/production.logファイルには、次のようなエラーが表示されます。ActionController::RoutingError (No route matches [GET] "/pulp/repos/test/Library/content/dist/rhel/server/6/6Server/x86_64/os/repodata/repomd.xml"): /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop' /usr/lib/ruby/gems/1.8/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments