[Spacewalk-list] Spacewalk 2.6: Error: Cannot retrieve repository metadata (repomd.xml) for repository

Sreejith P G sreejith.512 at gmail.com
Mon May 22 08:58:15 UTC 2017


Hi Team,
          I configures Spacewalk 2.6 on CentOS 7 server and created two
channel one for CentOS 7 and another one for CentOS6. Both CentOS6 and
CentOS 7 clients got registered by executing rhnreg_ks command. CentOS7
client works fine after registering while CentOS 6 client is not able to
fetch any packages for update. Its throwing an error "Error: Cannot
retrieve repository metadata (repomd.xml) for repository: nus_centos-6.9.
Please verify its path and try again". I could find the files are present
under /var/cache/rhn/repodata/nus_centos-6.9/ of spacewalk server. Please
help me to fix the error.

[root at testvm_cent6 ~]# yum repolist enabled
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Loading mirror speeds from cached hostfile
repo id
              repo name
                             status
nus_centos-6.9
               NUS_CentOS-6.9
                              0
repolist: 0
[root at testvm_cent6 ~]#
[root at testvm_cent6 ~]#
[root at testvm_cent6 ~]# yum update
Loaded plugins: fastestmirror, rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
Setting up Update Process
Loading mirror speeds from cached hostfile
Error: Cannot retrieve repository metadata (repomd.xml) for repository:
nus_centos-6.9. Please verify its path and try again
[root at testvm_cent6 ~]#
[root at testvm_cent6 ~]#

[root at testvm_cent6 ~]# rhn_check -vvvvv
D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: locked   db index       /var/lib/rpm/Packages
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring
D: added key gpg-pubkey-b8002de1-553126bd to keyring
D: added key gpg-pubkey-0608b895-4bd22942 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D: check_action{'action': "<?xml
version='1.0'?>\n<methodCall>\n<methodName>packages.update</methodName>\n<params>\n<param>\n<value><array><data>\n<value><array><data>\n<value><string>wireshark</string></value>\n<value><string>1.8.10</string></value>\n<value><string>25.el6</string></value>\n<value><string></string></value>\n<value><string>x86_64</string></value>\n</data></array></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n",
'version': 2, 'id': 22}
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 1495443024.81 with expiration of
1495446624.81 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010007, 'X-RHN-Auth-Server-Time':
'1495443024.8', 'X-RHN-Auth':
'zMEDXERP8Dkd/DdPov8qAvr7SxPpagt02fBasOt0Kno=', 'X-RHN-Auth-Channels':
[['nus_centos-6.9', '20170521234023', '1', '1']], 'X-RHN-Auth-User-Id': '',
'X-RHN-Auth-Expire-Offset': '3600.0'}
D: handle_action{'action': "<?xml
version='1.0'?>\n<methodCall>\n<methodName>packages.update</methodName>\n<params>\n<param>\n<value><array><data>\n<value><array><data>\n<value><string>wireshark</string></value>\n<value><string>1.8.10</string></value>\n<value><string>25.el6</string></value>\n<value><string></string></value>\n<value><string>x86_64</string></value>\n</data></array></value>\n</data></array></value>\n</param>\n</params>\n</methodCall>\n",
'version': 2, 'id': 22}
D: handle_action actionid = 22, version = 2
D: do_call packages.update([['wireshark', '1.8.10', '25.el6', '',
'x86_64']],){'cache_only': None}
D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring
D: added key gpg-pubkey-b8002de1-553126bd to keyring
D: added key gpg-pubkey-0608b895-4bd22942 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm
Loaded plugins: fastestmirror, rhnplugin
Config time: 0.017
D: rpcServer: Calling XMLRPC up2date.listChannels
This system is receiving updates from RHN Classic or Red Hat Satellite.
Looking for repo options for [main]
Looking for repo options for [nus_centos-6.9]
Repo 'nus_centos-6.9' setting option 'enabled' = '1'
Repo 'nus_centos-6.9' setting option 'gpgcheck' = '1'
Repo 'nus_centos-6.9' setting option 'timeout' = '120'
rpmdb time: 0.000
Loading mirror speeds from cached hostfile
repo time: 0.000
Setting up Package Sacks
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 1495443024.91 with expiration of
1495446624.91 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010007, 'X-RHN-Auth-Server-Time':
'1495443024.91', 'X-RHN-Auth':
'zX1+Crxbr0FSSXfJfCsf0FT3aYiEmH3uXRtGheyY8MI=', 'X-RHN-Auth-Channels':
[['nus_centos-6.9', '20170521234023', '1', '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 1495443024.93 with expiration of
1495446624.93 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010007, 'X-RHN-Auth-Server-Time':
'1495443024.93', 'X-RHN-Auth':
'sxKYtMrQQ+fIzNwVcEWN/UTNVjvrYLAHs5Kk/PZ6m/I=', 'X-RHN-Auth-Channels':
[['nus_centos-6.9', '20170521234023', '1', '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 1495443024.95 with expiration of
1495446624.95 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010007, 'X-RHN-Auth-Server-Time':
'1495443024.94', 'X-RHN-Auth':
'3ru/r4GXGQZbA2jySl4VaeRR9P8TXEHfGZDVOzdcTgA=', 'X-RHN-Auth-Channels':
[['nus_centos-6.9', '20170521234023', '1', '1']], 'X-RHN-Auth-User-Id': '',
'X-RHN-Auth-Expire-Offset': '3600.0'}
D: Sending back response((6,), 'Fatal error in Python code occurred', {})
D: do_call packages.checkNeedUpdate('rhnsd=1',){}
D: opening  db environment /var/lib/rpm cdb:mpool:joinenv
D: opening  db index       /var/lib/rpm/Packages rdonly mode=0x0
D: loading keyring from pubkeys in /var/lib/rpm/pubkeys/*.key
D: couldn't find any keys in /var/lib/rpm/pubkeys/*.key
D: loading keyring from rpmdb
D: opening  db index       /var/lib/rpm/Name rdonly mode=0x0
D: added key gpg-pubkey-c105b9de-4e0fd3a3 to keyring
D: added key gpg-pubkey-b8002de1-553126bd to keyring
D: added key gpg-pubkey-0608b895-4bd22942 to keyring
D: Using legacy gpg-pubkey(s) from rpmdb
D: opening  db index       /var/lib/rpm/Providename rdonly mode=0x0
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm
Loaded plugins: fastestmirror, rhnplugin
Config time: 0.006
This system is receiving updates from RHN Classic or Red Hat Satellite.
Looking for repo options for [main]
Looking for repo options for [nus_centos-6.9]
Repo 'nus_centos-6.9' setting option 'enabled' = '1'
Repo 'nus_centos-6.9' setting option 'gpgcheck' = '1'
Repo 'nus_centos-6.9' setting option 'timeout' = '120'
rpmdb time: 0.000
Loading mirror speeds from cached hostfile
repo time: 0.000
Setting up Package Sacks
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 1495443025.13 with expiration of
1495446625.13 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010007, 'X-RHN-Auth-Server-Time':
'1495443025.13', 'X-RHN-Auth':
'5sR3KDeJEpNLW+e/qbYt+rwFyHehn1tiuaej0vmh4yw=', 'X-RHN-Auth-Channels':
[['nus_centos-6.9', '20170521234023', '1', '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 1495443025.15 with expiration of
1495446625.15 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010007, 'X-RHN-Auth-Server-Time':
'1495443025.15', 'X-RHN-Auth':
'pwBGm27KrxBtaGDD7nZeA5pSuxZFvDYk1YbcPo3ReDc=', 'X-RHN-Auth-Channels':
[['nus_centos-6.9', '20170521234023', '1', '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 1495443025.17 with expiration of
1495446625.17 seconds.
successfully retrieved authentication token from up2date server
D: logininfo:{'X-RHN-Server-Id': 1000010007, 'X-RHN-Auth-Server-Time':
'1495443025.17', 'X-RHN-Auth':
'icPd2dqPlfgloYNQZ4ECnX7ZVG6yioL66bY+r/uz5C0=', 'X-RHN-Auth-Channels':
[['nus_centos-6.9', '20170521234023', '1', '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
D: closed   db index       /var/lib/rpm/Providename
D: closed   db index       /var/lib/rpm/Name
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm
[root at testvm_cent6 ~]#

\\\\\\\



[root at vswapp01 ~]# ls -ltr /var/cache/rhn/repodata/nus_centos-6.9/
total 28992
-rw-r--r--. 1 root root     1676 May 21 12:44 repomd.xml
-rw-r--r--. 1 root root  2123265 May 21 12:44 primary.xml.gz
-rw-r--r--. 1 root root 20515415 May 21 12:44 other.xml.gz
-rw-r--r--. 1 root root  7040897 May 21 12:44 filelists.xml.gz
[root at vswapp01 ~]#


-- 
Regards,
Sreejith P G
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170522/84b768eb/attachment.htm>


More information about the Spacewalk-list mailing list