My centos6.5 don't want to grab packages from spacewalk

General support questions
shensi
Posts: 7
Joined: 2015/10/02 07:54:27

My centos6.5 don't want to grab packages from spacewalk

Post by shensi » 2015/10/02 08:43:07

Hi guys,

I have a problem. It appeared maybe a week ago. I don't know why (obviously)

I have 200 machines running on centos 6.5 and a spacewalk server to manage them.
Every commands from spacewalk are working well. But now I can't update my clients anymore (from the client with yum update or from spacewalk)

This is the error messages :

From client :

Code: Select all

root@feutre25-l:/var/log# yum update
Modules complémentaires chargés : fastestmirror, refresh-packagekit, rhnplugin, security
This system is receiving updates from RHN Classic or Red Hat Satellite.
Configuration du processus de mise à jour
Loading mirror speeds from cached hostfile
 * base: mirror.ibcp.fr
 * extras: ftp.rezopole.net
 * updates: mirror.ibcp.fr
Résolution des dépendances
--> Lancement de la transaction de test
---> Package bash.x86_64 0:4.1.2-33.el6 will be mis à jour
---> Package bash.x86_64 0:4.1.2-33.el6_7.1 will be an update
---> Package db4.x86_64 0:4.7.25-19.el6_6 will be mis à jour
---> Package db4.x86_64 0:4.7.25-20.el6_7 will be an update
---> Package db4-cxx.x86_64 0:4.7.25-19.el6_6 will be mis à jour
---> Package db4-cxx.x86_64 0:4.7.25-20.el6_7 will be an update
---> Package db4-devel.x86_64 0:4.7.25-19.el6_6 will be mis à jour
---> Package db4-devel.x86_64 0:4.7.25-20.el6_7 will be an update
---> Package db4-utils.x86_64 0:4.7.25-19.el6_6 will be mis à jour
---> Package db4-utils.x86_64 0:4.7.25-20.el6_7 will be an update
---> Package device-mapper.x86_64 0:1.02.95-3.el6_7.2 will be mis à jour
---> Package device-mapper.x86_64 0:1.02.95-3.el6_7.3 will be an update
---> Package device-mapper-event.x86_64 0:1.02.95-3.el6_7.2 will be mis à jour
---> Package device-mapper-event.x86_64 0:1.02.95-3.el6_7.3 will be an update
---> Package device-mapper-event-libs.x86_64 0:1.02.95-3.el6_7.2 will be mis à jour
---> Package device-mapper-event-libs.x86_64 0:1.02.95-3.el6_7.3 will be an update
---> Package device-mapper-libs.x86_64 0:1.02.95-3.el6_7.2 will be mis à jour
---> Package device-mapper-libs.x86_64 0:1.02.95-3.el6_7.3 will be an update
---> Package firefox.x86_64 0:38.2.1-1.el6.centos will be mis à jour
---> Package firefox.x86_64 0:38.3.0-2.el6.centos will be an update
---> Package glibc.x86_64 0:2.12-1.166.el6_7.1 will be mis à jour
---> Package glibc.x86_64 0:2.12-1.166.el6_7.3 will be an update
---> Package glibc-common.x86_64 0:2.12-1.166.el6_7.1 will be mis à jour
---> Package glibc-common.x86_64 0:2.12-1.166.el6_7.3 will be an update
---> Package glibc-devel.x86_64 0:2.12-1.166.el6_7.1 will be mis à jour
---> Package glibc-devel.x86_64 0:2.12-1.166.el6_7.3 will be an update
---> Package glibc-headers.x86_64 0:2.12-1.166.el6_7.1 will be mis à jour
---> Package glibc-headers.x86_64 0:2.12-1.166.el6_7.3 will be an update
---> Package initscripts.x86_64 0:9.03.49-1.el6.centos will be mis à jour
---> Package initscripts.x86_64 0:9.03.49-1.el6.centos.1 will be an update
---> Package kernel.x86_64 0:2.6.32-573.7.1.el6 will be installé
---> Package kernel-firmware.noarch 0:2.6.32-573.3.1.el6 will be mis à jour
---> Package kernel-firmware.noarch 0:2.6.32-573.7.1.el6 will be an update
---> Package kernel-headers.x86_64 0:2.6.32-573.3.1.el6 will be mis à jour
---> Package kernel-headers.x86_64 0:2.6.32-573.7.1.el6 will be an update
---> Package lvm2.x86_64 0:2.02.118-3.el6_7.2 will be mis à jour
---> Package lvm2.x86_64 0:2.02.118-3.el6_7.3 will be an update
---> Package lvm2-libs.x86_64 0:2.02.118-3.el6_7.2 will be mis à jour
---> Package lvm2-libs.x86_64 0:2.02.118-3.el6_7.3 will be an update
---> Package openldap.x86_64 0:2.4.40-5.el6 will be mis à jour
---> Package openldap.x86_64 0:2.4.40-6.el6_7 will be an update
---> Package procps.x86_64 0:3.2.8-33.el6 will be mis à jour
---> Package procps.x86_64 0:3.2.8-34.el6_7 will be an update
---> Package rng-tools.x86_64 0:5-1.el6 will be mis à jour
---> Package rng-tools.x86_64 0:5-2.el6_7 will be an update
---> Package selinux-policy.noarch 0:3.7.19-279.el6_7.5 will be mis à jour
---> Package selinux-policy.noarch 0:3.7.19-279.el6_7.6 will be an update
---> Package selinux-policy-targeted.noarch 0:3.7.19-279.el6_7.5 will be mis à jour
---> Package selinux-policy-targeted.noarch 0:3.7.19-279.el6_7.6 will be an update
--> Résolution des dépendances terminée

Dépendances résolues

=============================================================================================================================================================================================================================
 Paquet                                                     Architecture                             Version                                                  Dépôt                                                    Taille
=============================================================================================================================================================================================================================
Installation:
 kernel                                                     x86_64                                   2.6.32-573.7.1.el6                                       centos6-updates-x86_64                                    30 M
Mise à jour:
 bash                                                       x86_64                                   4.1.2-33.el6_7.1                                         centos6-updates-x86_64                                   908 k
 db4                                                        x86_64                                   4.7.25-20.el6_7                                          centos6-updates-x86_64                                   563 k
 db4-cxx                                                    x86_64                                   4.7.25-20.el6_7                                          centos6-updates-x86_64                                   588 k
 db4-devel                                                  x86_64                                   4.7.25-20.el6_7                                          centos6-updates-x86_64                                   6.6 M
 db4-utils                                                  x86_64                                   4.7.25-20.el6_7                                          centos6-updates-x86_64                                   130 k
 device-mapper                                              x86_64                                   1.02.95-3.el6_7.3                                        centos6-updates-x86_64                                   176 k
 device-mapper-event                                        x86_64                                   1.02.95-3.el6_7.3                                        centos6-updates-x86_64                                   124 k
 device-mapper-event-libs                                   x86_64                                   1.02.95-3.el6_7.3                                        centos6-updates-x86_64                                   118 k
 device-mapper-libs                                         x86_64                                   1.02.95-3.el6_7.3                                        centos6-updates-x86_64                                   223 k
 firefox                                                    x86_64                                   38.3.0-2.el6.centos                                      centos6-updates-x86_64                                    70 M
 glibc                                                      x86_64                                   2.12-1.166.el6_7.3                                       centos6-updates-x86_64                                   3.8 M
 glibc-common                                               x86_64                                   2.12-1.166.el6_7.3                                       centos6-updates-x86_64                                    14 M
 glibc-devel                                                x86_64                                   2.12-1.166.el6_7.3                                       centos6-updates-x86_64                                   986 k
 glibc-headers                                              x86_64                                   2.12-1.166.el6_7.3                                       centos6-updates-x86_64                                   615 k
 initscripts                                                x86_64                                   9.03.49-1.el6.centos.1                                   centos6-updates-x86_64                                   945 k
 kernel-firmware                                            noarch                                   2.6.32-573.7.1.el6                                       centos6-updates-x86_64                                    18 M
 kernel-headers                                             x86_64                                   2.6.32-573.7.1.el6                                       centos6-updates-x86_64                                   3.9 M
 lvm2                                                       x86_64                                   2.02.118-3.el6_7.3                                       centos6-updates-x86_64                                   856 k
 lvm2-libs                                                  x86_64                                   2.02.118-3.el6_7.3                                       centos6-updates-x86_64                                   941 k
 openldap                                                   x86_64                                   2.4.40-6.el6_7                                           updates                                                  283 k
 procps                                                     x86_64                                   3.2.8-34.el6_7                                           centos6-updates-x86_64                                   217 k
 rng-tools                                                  x86_64                                   5-2.el6_7                                                centos6-updates-x86_64                                    32 k
 selinux-policy                                             noarch                                   3.7.19-279.el6_7.6                                       centos6-updates-x86_64                                   882 k
 selinux-policy-targeted                                    noarch                                   3.7.19-279.el6_7.6                                       centos6-updates-x86_64                                   3.1 M

Résumé de la transaction
=============================================================================================================================================================================================================================
Installation de     1 paquet(s)
Mise à jour de    24 paquet(s)

Taille totale : 158 M
Taille totale des téléchargements : 158 M
Est-ce correct [o/N] : o
Téléchargement des paquets :


Erreur durant le téléchargement des paquets :
  procps-3.2.8-34.el6_7.x86_64: failed to retrieve getPackage/procps-3.2.8-34.el6_7.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  rng-tools-5-2.el6_7.x86_64: failed to retrieve getPackage/rng-tools-5-2.el6_7.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  device-mapper-event-libs-1.02.95-3.el6_7.3.x86_64: failed to retrieve getPackage/device-mapper-event-libs-1.02.95-3.el6_7.3.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  device-mapper-libs-1.02.95-3.el6_7.3.x86_64: failed to retrieve getPackage/device-mapper-libs-1.02.95-3.el6_7.3.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  bash-4.1.2-33.el6_7.1.x86_64: failed to retrieve getPackage/bash-4.1.2-33.el6_7.1.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  kernel-firmware-2.6.32-573.7.1.el6.noarch: failed to retrieve getPackage/kernel-firmware-2.6.32-573.7.1.el6.noarch.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  db4-cxx-4.7.25-20.el6_7.x86_64: failed to retrieve getPackage/db4-cxx-4.7.25-20.el6_7.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  device-mapper-1.02.95-3.el6_7.3.x86_64: failed to retrieve getPackage/device-mapper-1.02.95-3.el6_7.3.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  glibc-common-2.12-1.166.el6_7.3.x86_64: failed to retrieve getPackage/glibc-common-2.12-1.166.el6_7.3.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  selinux-policy-targeted-3.7.19-279.el6_7.6.noarch: failed to retrieve getPackage/selinux-policy-targeted-3.7.19-279.el6_7.6.noarch.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  initscripts-9.03.49-1.el6.centos.1.x86_64: failed to retrieve getPackage/initscripts-9.03.49-1.el6.centos.1.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  glibc-2.12-1.166.el6_7.3.x86_64: failed to retrieve getPackage/glibc-2.12-1.166.el6_7.3.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  kernel-headers-2.6.32-573.7.1.el6.x86_64: failed to retrieve getPackage/kernel-headers-2.6.32-573.7.1.el6.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  glibc-headers-2.12-1.166.el6_7.3.x86_64: failed to retrieve getPackage/glibc-headers-2.12-1.166.el6_7.3.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  db4-devel-4.7.25-20.el6_7.x86_64: failed to retrieve getPackage/db4-devel-4.7.25-20.el6_7.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  lvm2-2.02.118-3.el6_7.3.x86_64: failed to retrieve getPackage/lvm2-2.02.118-3.el6_7.3.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  kernel-2.6.32-573.7.1.el6.x86_64: failed to retrieve getPackage/kernel-2.6.32-573.7.1.el6.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  selinux-policy-3.7.19-279.el6_7.6.noarch: failed to retrieve getPackage/selinux-policy-3.7.19-279.el6_7.6.noarch.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  firefox-38.3.0-2.el6.centos.x86_64: failed to retrieve getPackage/firefox-38.3.0-2.el6.centos.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  db4-4.7.25-20.el6_7.x86_64: failed to retrieve getPackage/db4-4.7.25-20.el6_7.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  db4-utils-4.7.25-20.el6_7.x86_64: failed to retrieve getPackage/db4-utils-4.7.25-20.el6_7.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  glibc-devel-2.12-1.166.el6_7.3.x86_64: failed to retrieve getPackage/glibc-devel-2.12-1.166.el6_7.3.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  device-mapper-event-1.02.95-3.el6_7.3.x86_64: failed to retrieve getPackage/device-mapper-event-1.02.95-3.el6_7.3.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"
  lvm2-libs-2.02.118-3.el6_7.3.x86_64: failed to retrieve getPackage/lvm2-libs-2.02.118-3.el6_7.3.x86_64.rpm from centos6-updates-x86_64
error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Internal Server Error"

And the result on server side (in httpd logs) :

Code: Select all

==> access_log <==
192.168.10.165 - - [02/Oct/2015:10:42:19 +0200] "GET /XMLRPC/GET-REQ/epel6-x86_64/repodata/repomd.xml HTTP/1.1" 500 2846 "-" "rhn.rpclib.py/2.5.72-1.el6"

==> error_log <==
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165] mod_wsgi (pid=22999): Exception occurred processing WSGI script '/usr/share/rhn/wsgi/xmlrpc.py'.
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165] Traceback (most recent call last):
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]   File "/usr/share/rhn/wsgi/xmlrpc.py", line 22, in application
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]     return wsgiHandler.handle(environ, start_response, "xmlrpc", "server.xmlrpc")
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]   File "/usr/share/rhn/wsgi/wsgiHandler.py", line 45, in handle
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]     ret = appServ(req)
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]   File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheHandler.py", line 185, in handler
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]     ret = self._req_processor.auth_client()
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]   File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py", line 390, in auth_client
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]     return apacheAuth.auth_client()
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]   File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheAuth.py", line 165, in auth_client
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]     username       = token['X-RHN-Auth-User-Id']
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]   File "/usr/lib/python2.6/site-packages/rhn/UserDictCase.py", line 44, in __getitem__
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]     return self.data[key]
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165] KeyError: 'x-rhn-auth-user-id'

==> access_log <==
192.168.10.165 - - [02/Oct/2015:10:42:19 +0200] "GET /XMLRPC/GET-REQ/spacewalk-client-x86_64/repodata/repomd.xml HTTP/1.1" 500 2846 "-" "rhn.rpclib.py/2.5.72-1.el6"
192.168.10.165 - - [02/Oct/2015:10:42:19 +0200] "POST /XMLRPC HTTP/1.1" 200 1774 "-" "rhn.rpclib.py/2.5.72-1.el6"

==> error_log <==
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165] mod_wsgi (pid=22362): Exception occurred processing WSGI script '/usr/share/rhn/wsgi/xmlrpc.py'.
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165] Traceback (most recent call last):
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]   File "/usr/share/rhn/wsgi/xmlrpc.py", line 22, in application
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]     return wsgiHandler.handle(environ, start_response, "xmlrpc", "server.xmlrpc")
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]   File "/usr/share/rhn/wsgi/wsgiHandler.py", line 45, in handle
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]     ret = appServ(req)
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]   File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheHandler.py", line 185, in handler
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]     ret = self._req_processor.auth_client()
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]   File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py", line 390, in auth_client
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]     return apacheAuth.auth_client()
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]   File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheAuth.py", line 165, in auth_client
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]     username       = token['X-RHN-Auth-User-Id']
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]   File "/usr/lib/python2.6/site-packages/rhn/UserDictCase.py", line 44, in __getitem__
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165]     return self.data[key]
[Fri Oct 02 10:42:19 2015] [error] [client 192.168.10.165] KeyError: 'x-rhn-auth-user-id'

Can someone help me on this issue ?

shensi
Posts: 7
Joined: 2015/10/02 07:54:27

Re: My centos6.5 don't want to grab packages from spacewalk

Post by shensi » 2015/10/08 07:06:09

This is a debug output from a client

Code: Select all

root@fusain12-l:~# yum update
Modules complémentaires chargés : fastestmirror, refresh-packagekit, rhnplugin, security
D: login(forceUpdate=False) invoked
D: readCachedLogin invoked
D: Checking pickled loginInfo, currentTime=1444287930.02, createTime=1444287910.27, expire-offset=3600.0
D: readCachedLogin(): using pickled loginInfo set to expire at 1444291510.27
D: rpcServer: Calling XMLRPC up2date.listChannels
This system is receiving updates from RHN Classic or Red Hat Satellite.
Configuration du processus de mise à jour
Loading mirror speeds from cached hostfile
 * base: ftp.rezopole.net
 * extras: ftp.rezopole.net
 * updates: mirrors.ircam.fr
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at 1444287930.2 with expiration of 1444291530.2 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010204, 'X-RHN-Auth-Server-Time': '1444287929.42', 'X-RHN-Auth-Channels': [['centos6-base-x86_64', '20151008033432', '1', '1'], ['centos6-updates-x86_64', '20151008033946', '0', '1'], ['chromium-browser-noarch', '20151008035406', '0', '1'], ['epel6-x86_64', '20151008035404', '0', '1'], ['spacewalk-client-x86_64', '20151008033947', '0', '1']], 'X-RHN-Auth': 't3rkJ05w3HAxuHBBQSM4iYtvlqqZC9KqIFAyRMshjOY=', 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at 1444287930.24 with expiration of 1444291530.24 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010204, 'X-RHN-Auth-Server-Time': '1444287929.45', 'X-RHN-Auth-Channels': [['centos6-base-x86_64', '20151008033432', '1', '1'], ['centos6-updates-x86_64', '20151008033946', '0', '1'], ['chromium-browser-noarch', '20151008035406', '0', '1'], ['epel6-x86_64', '20151008035404', '0', '1'], ['spacewalk-client-x86_64', '20151008033947', '0', '1']], 'X-RHN-Auth': 'YuWL35X268p+Mn8IzHCSyFT5+TfFXqXx8MLWAI4Tv4w=', 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at 1444287930.29 with expiration of 1444291530.29 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010204, 'X-RHN-Auth-Server-Time': '1444287929.5', 'X-RHN-Auth-Channels': [['centos6-base-x86_64', '20151008033432', '1', '1'], ['centos6-updates-x86_64', '20151008033946', '0', '1'], ['chromium-browser-noarch', '20151008035406', '0', '1'], ['epel6-x86_64', '20151008035404', '0', '1'], ['spacewalk-client-x86_64', '20151008033947', '0', '1']], 'X-RHN-Auth': '0bBqfna0B+zJuJRCVChwRREDBgIdLWwH/yRX+eLKdPw=', 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
Erreur : Cannot retrieve repository metadata (repomd.xml) for repository: centos6-base-x86_64. Please verify its path and try again

Do you have any ideas ?

pwd
Posts: 61
Joined: 2014/12/23 11:54:42

Re: My centos6.5 don't want to grab packages from spacewalk

Post by pwd » 2015/10/08 07:17:03

try

Code: Select all

# yum clean all
# yum update
"God, root, what is difference?"

shensi
Posts: 7
Joined: 2015/10/02 07:54:27

Re: My centos6.5 don't want to grab packages from spacewalk

Post by shensi » 2015/10/08 07:34:28

pwd wrote:try

Code: Select all

# yum clean all
# yum update

Hi, I already tried it... Same result

Code: Select all

[root@fusain07-l ~]# yum clean all
Modules complémentaires chargés : fastestmirror, refresh-packagekit, rhnplugin, security
Nettoyage des dépôts : base centos6-base-x86_64 centos6-updates-x86_64 chromium-browser-noarch epel6-x86_64 extras spacewalk-client spacewalk-client-x86_64 updates
Nettoyage complet
Cleaning up list of fastest mirrors
[root@fusain07-l ~]# yum update
Modules complémentaires chargés : fastestmirror, refresh-packagekit, rhnplugin, security
This system is receiving updates from RHN Classic or Red Hat Satellite.
Configuration du processus de mise à jour
Determining fastest mirrors
 * base: ftp.rezopole.net
 * extras: ftp.rezopole.net
 * updates: fr2.rpmfind.net
base                                                                                                                                                                                                                  | 3.7 kB     00:00     
base/primary_db                                                                                                                                                                                                       | 4.6 MB     00:01     
Erreur : Cannot retrieve repository metadata (repomd.xml) for repository: centos6-base-x86_64. Please verify its path and try again

It seems that I have a problem with my centos6-base-x86_64 channel... But I don't have a clew of what to do on server side to solve this

pwd
Posts: 61
Joined: 2014/12/23 11:54:42

Re: My centos6.5 don't want to grab packages from spacewalk

Post by pwd » 2015/10/08 08:39:04

Have You edited base repo config file? For me it's look like You have something wrong in config file, or something wrong with gpg key in base repo.
"God, root, what is difference?"

shensi
Posts: 7
Joined: 2015/10/02 07:54:27

Re: My centos6.5 don't want to grab packages from spacewalk

Post by shensi » 2015/10/08 09:21:44

pwd wrote:Have You edited base repo config file? For me it's look like You have something wrong in config file, or something wrong with gpg key in base repo.

no, I didn't modify manually this file.
Last week, I deleted the synced repo and I synced it again in order to generate the repomd.xml

Code: Select all

[root@spacewalk repodata]# ll /var/cache/rhn/repodata/centos6-base-x86_64/
total 54712
-rw-r--r-- 1 root root 10393653  5 oct.  10:55 filelists.xml.gz
-rw-r--r-- 1 root root 41895702  5 oct.  10:55 other.xml.gz
-rw-r--r-- 1 root root  3723270  5 oct.  10:55 primary.xml.gz
-rw-r--r-- 1 root root     1039  5 oct.  10:55 repomd.xml
This is the command line I use :

Code: Select all

/usr/bin/spacewalk-repo-sync --channel centos6-base-x86_64 --url http://mirror.centos.org/centos/6/os/x86_64/ >> /var/log/rhn/reposync/spacewalk_sync.cron.log

shensi
Posts: 7
Joined: 2015/10/02 07:54:27

Re: My centos6.5 don't want to grab packages from spacewalk

Post by shensi » 2015/10/08 13:55:32

pwd wrote:Have You edited base repo config file? For me it's look like You have something wrong in config file, or something wrong with gpg key in base repo.
Where can I find this config file ?

shensi
Posts: 7
Joined: 2015/10/02 07:54:27

Re: My centos6.5 don't want to grab packages from spacewalk

Post by shensi » 2015/10/09 07:51:00

any ideas ?

pwd
Posts: 61
Joined: 2014/12/23 11:54:42

Re: My centos6.5 don't want to grab packages from spacewalk

Post by pwd » 2015/10/09 09:20:02

i don't have centos6 right now to check config of the base repo, maybe someone else, try disable pgp for test.
Google for this error:
Erreur : Cannot retrieve repository metadata (repomd.xml) for repository: centos6-base-x86_64. Please verify its path and try again
"God, root, what is difference?"

shensi
Posts: 7
Joined: 2015/10/02 07:54:27

Re: My centos6.5 don't want to grab packages from spacewalk

Post by shensi » 2015/10/23 11:47:46

Hi, for your information I am still looking for an issue :-)
Maybe anybody don't care ! lol

I did on client side may commands :

My client doesn't see any packages available :

Code: Select all

# yum repolist
Modules complémentaires chargés : fastestmirror, refresh-packagekit, rhnplugin, security
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
id du dépôt                                                                                        nom du dépôt                                                                                          statut
centos6-base-x86_64                                                                                CentOS 6 Base - x86_64                                                                                0
centos6-updates-x86_64                                                                             CentOS 6 Updates - x86_64                                                                             0
chromium-browser-noarch                                                                            Chromium browser - noarch                                                                             0
epel6-x86_64                                                                                       EPEL6 - x86_64                                                                                        0
spacewalk-client-x86_64                                                                            Spacewalk Client - x86_64                                                                             0
repolist: 0

Code: Select all

yum clean all
yum makecache
Modules complémentaires chargés : fastestmirror, refresh-packagekit, rhnplugin, security
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
Erreur : Cannot retrieve repository metadata (repomd.xml) for repository: centos6-base-x86_64. Please verify its path and try again
# rhn_check -vv
D: do_call packages.checkNeedUpdate('rhnsd=1',){}
Modules complémentaires chargés : fastestmirror, refresh-packagekit, rhnplugin
D: login(forceUpdate=False) invoked
D: readCachedLogin invoked
D: Checking pickled loginInfo, currentTime=1445600579.34, createTime=1445600571.47, expire-offset=3600.0
D: readCachedLogin(): using pickled loginInfo set to expire at 1445604171.47
D: rpcServer: Calling XMLRPC up2date.listChannels
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at 1445600579.47 with expiration of 1445604179.47 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010210, 'X-RHN-Auth-Server-Time': '1445600578.4', 'X-RHN-Auth': 'i0VUXyq2PjKnDstsxI05E6Bl9M9k4QT84xdxd3stKE4=', 'X-RHN-Auth-Channels': [['centos6-base-x86_64', '20151023032854', '1', '1'], ['centos6-updates-x86_64', '20151023033345', '0', '1'], ['chromium-browser-noarch', '20151023034524', '0', '1'], ['epel6-x86_64', '20151023034521', '0', '1'], ['spacewalk-client-x86_64', '20151023033347', '0', '1']], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at 1445600579.5 with expiration of 1445604179.5 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010210, 'X-RHN-Auth-Server-Time': '1445600578.44', 'X-RHN-Auth': 'dMRmgQUZVKNfQ6iZoxiPcnU9cKRHyNB+/4cvRL9CXv8=', 'X-RHN-Auth-Channels': [['centos6-base-x86_64', '20151023032854', '1', '1'], ['centos6-updates-x86_64', '20151023033345', '0', '1'], ['chromium-browser-noarch', '20151023034524', '0', '1'], ['epel6-x86_64', '20151023034521', '0', '1'], ['spacewalk-client-x86_64', '20151023033347', '0', '1']], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
updateLoginInfo() login info
D: login(forceUpdate=True) invoked
logging into up2date server
D: rpcServer: Calling XMLRPC up2date.login
D: writeCachedLogin() invoked
D: Wrote pickled loginInfo at 1445600579.55 with expiration of 1445604179.55 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010210, 'X-RHN-Auth-Server-Time': '1445600578.48', 'X-RHN-Auth': 'zudCJx8aE/mjyNwZ0b53SPTOs/Uk4/74D66b89No06A=', 'X-RHN-Auth-Channels': [['centos6-base-x86_64', '20151023032854', '1', '1'], ['centos6-updates-x86_64', '20151023033345', '0', '1'], ['chromium-browser-noarch', '20151023034524', '0', '1'], ['epel6-x86_64', '20151023034521', '0', '1'], ['spacewalk-client-x86_64', '20151023033347', '0', '1']], 'X-RHN-Auth-User-Id': '', 'X-RHN-Auth-Expire-Offset': '3600.0'}
D: local action status: ((6,), 'Fatal error in Python code occurred', {})
D: rpcServer: Calling XMLRPC registration.welcome_message

On server side, same issue :

Code: Select all

[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182] mod_wsgi (pid=27494): Exception occurred processing WSGI script '/usr/share/rhn/wsgi/xmlrpc.py'.
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182] Traceback (most recent call last):
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182]   File "/usr/share/rhn/wsgi/xmlrpc.py", line 22, in application
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182]     return wsgiHandler.handle(environ, start_response, "xmlrpc", "server.xmlrpc")
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182]   File "/usr/share/rhn/wsgi/wsgiHandler.py", line 45, in handle
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182]     ret = appServ(req)
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182]   File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheHandler.py", line 185, in handler
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182]     ret = self._req_processor.auth_client()
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182]   File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py", line 390, in auth_client
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182]     return apacheAuth.auth_client()
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182]   File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheAuth.py", line 165, in auth_client
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182]     username       = token['X-RHN-Auth-User-Id']
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182]   File "/usr/lib/python2.6/site-packages/rhn/UserDictCase.py", line 44, in __getitem__
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182]     return self.data[key]
[Fri Oct 23 13:42:58 2015] [error] [client 192.168.10.182] KeyError: 'x-rhn-auth-user-id'

What means : KeyError: 'x-rhn-auth-user-id'
Why doesn't SW recognize this key ?
Last edited by shensi on 2015/10/23 12:44:12, edited 1 time in total.

Post Reply