Hi Team,
I have modified the URL's for base and updates in the script on satellite server
then ran the sync script and getting below errors.however packages were sync which are more than 500 as per the logs
channel="centos6-x86_64-base"
url="
http://centos.mirrors.tds.net/centos/6.10/os/x86_64/"
channel="centos6-x86_64-updates"
url="
http://centos.mirrors.tds.net/pub/linux ... es/x86_64/"
# ./sync-channels-centos6.sh
ERROR: (23, 'ERROR: duplicate key value violates unique constraint "rhn_cnp_cid_nid_uq"', 'Could not update database entry.')
Traceback (most recent call last):
File "/usr/bin/spacewalk-repo-sync", line 186, in <module>
sys.exit(abs(main() or 0))
File "/usr/bin/spacewalk-repo-sync", line 179, in main
sync.sync()
File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/reposync.py", line 209, in sync
[self.channel_label], [], "server.app.yumreposync")
File "/usr/lib/python2.6/site-packages/spacewalk/server/taskomatic.py", line 65, in add_to_repodata_queue_for_channel_package_subscription
add_to_repodata_queue(channel, caller, reason[:128])
File "/usr/lib/python2.6/site-packages/spacewalk/server/taskomatic.py", line 51, in add_to_repodata_queue
queue.add(entry)
File "/usr/lib/python2.6/site-packages/spacewalk/server/taskomatic.py", line 43, in add
bypass_filters=self._boolean_as_char(entry.bypass_filters))
File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/sql_base.py", line 147, in execute
return self._execute_wrapper(self._execute, *p, **kw)
File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py", line 292, in _execute_wrapper
raise sql_base.SQLSchemaError(error_code, e.pgerror, e)
spacewalk.server.rhnSQL.sql_base.SQLSchemaError: (99999, 'ERROR: current transaction is aborted, commands ignored until end of transaction block', '', InternalError('current transaction is aborted, commands ignored until end of transaction block\n',))
ERROR: Cannot retrieve repository metadata (repomd.xml) for repository: centos6-x86_64-spacewalkclient. Please verify its path and try again
[root@mncosat01 satellite]#
[root@mncosat01 satellite]#
Also i have noticed in the script that the below URL not working for spacewalkclient
#### Channel label: centos6-x86_64-spacewalkclient ####
Repo URL:
http://yum.spacewalkproject.org/latest- ... /6/x86_64/