yum update に失敗し、"There was an error communicating with RHN. RHN support will be disabled" エラーが発生する
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
Issue
-
yum update に失敗し、"There was an error communicating with RHN. RHN support will be disabled" エラーが発生します。
-
システムが Red Hat Network ( RHN ) に接続していません。
-
yum update に失敗し、以下のエラーが発生します。
#yum update
Loading "rhnplugin" plugin
Loading "security" plugin
There was an error communicating with RHN.
RHN support will be disabled.
Error communicating with server.The message was:
timed out
Skipping security plugin, no data
Setting up Update Process
Skipping security plugin, no data
Skipping security plugin, no data
No Packages marked for Update
- rhn-profile-sync を実行すると以下のエラーが表示されます。
# rhn-profile-sync -vv
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
A protocol error occurred:Forbidden , attempt #1,
A protocol error occurred:Forbidden , attempt #2,
A protocol error occurred:Forbidden , attempt #3,
A protocol error occurred:Forbidden , attempt #4,
A protocol error occurred:Forbidden , attempt #5,
There was a RhnServerException while testing login:
Error communicating with server.The message was:
Forbidden
- または、以下のようになります。
[root@vmwmftapp08-dev rhn]# rhn-profile-sync -vv
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
A socket error occurred:(113, 'No route to host'), attempt #1
A socket error occurred:(113, 'No route to host'), attempt #2
A socket error occurred:(114, 'Operation already in progress'), attempt #3
A socket error occurred:(114, 'Operation already in progress'), attempt #4
[1]+ Stopped rhn-profile-sync -vv
Resolution
- rhn.redhat.com にアクセスできるようにプロキシーまたはファイアウォールのルールを修正します。
- /etc/sysconfig/rhn/up2date で Red Hat サーバー名および SSL 証明書のパスが正しいかどうかを確認します。
serverURL=https://xmlrpc.rhn.redhat.com/XMLRPC
sslCACert=/usr/share/rhn/RHNS-CA-CERT
Root Cause
- システムが RHN (rhn.redhat.com) サーバーに接続できません。
Diagnostic Steps
-
システムが RHN に登録されていないか、RHN と長期間やりとりしていない可能性があります。
-
接続がタイムアウトになった等、接続に問題があります。
- ネットワーク接続を確認します。
# telnet rhn.redhat.com 80
# telnet rhn.redhat.com 443
- RHN にシステムを登録します。
# rhnreg_ks --username rhn-username --password user-password --force
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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
