My Oracle Support Banner

Spacewalk2.4: ERROR: Redstone.xmlrpc.XmlRpcFault: Unhandled Internal Exception: ORA-00001: Unique Constraint (Doc ID 2234520.1)

Last updated on AUGUST 04, 2018

Applies to:

Linux OS - Version Oracle Linux 6.0 and later
Information in this document applies to any platform.

Symptoms


While cloning channel getting the below error:

# spacecmd --debug -u "${SPCMD_USER}" -p "${SPCMD_PASS}" -q -- softwarechannel_clonetree -s oraclelinux6-x86_64 -p test
DEBUG: : False
DEBUG: Read configuration from /root/.spacecmd/config
DEBUG: Loading configuration section [spacecmd]
DEBUG: Current Configuration: {'username': 'dsiadm', 'password': '*********',
'server': 'localhost'}
DEBUG: Configuration section [localhost] does not exist
DEBUG: Connecting to https://localhost/rpc/api
DEBUG: Server API Version = 17
INFO: Spacewalk Username: dsiadm
DEBUG: Loading cache from /root/.spacecmd/localhost/ssm
DEBUG: /root/.spacecmd/localhost/ssm does not exist
DEBUG: : False
DEBUG: Loading cache from /root/.spacecmd/localhost/systems
DEBUG: Loading cache from /root/.spacecmd/localhost/errata
DEBUG: /root/.spacecmd/localhost/errata does not exist
DEBUG: Loading cache from /root/.spacecmd/localhost/packages_short
DEBUG: Loading cache from /root/.spacecmd/localhost/packages_long
DEBUG: Loading cache from /root/.spacecmd/localhost/packages_by_id
INFO: Connected to https://localhost/rpc/api as dsiadm
DEBUG: --child mode specified, finding children of oraclelinux6-x86_64
.
DEBUG: Found children ['oraclelinux6-x86_64-addons',
'oraclelinux6-x86_64-scl21', 'oraclelinux6-x86_64-spacewalk24-client']
.
DEBUG: channels=['oraclelinux6-x86_64', 'oraclelinux6-x86_64-addons',
'oraclelinux6-x86_64-scl21', 'oraclelinux6-x86_64-spacewalk24-client']
DEBUG: Cloning oraclelinux6-x86_64
INFO: Cloning oraclelinux6-x86_64 as testoraclelinux6-x86_64
ERROR: redstone.xmlrpc.XmlRpcFault: unhandled internal exception: ORA-00001:
unique constraint (SPACEWALK.RHN_ERRATA_ADVISORY_UQ) violated
Traceback (most recent call last):
File "/usr/bin/spacecmd", line 146, in <module>
shell.print_result(shell.onecmd(precmd), precmd)
File "/usr/lib64/python2.6/cmd.py", line 219, in onecmd
return func(arg)
File "/usr/lib/python2.6/site-packages/spacecmd/softwarechannel.py", line
971, in do_softwarechannel_clonetree
options.original_state)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
verbose=self.__verbose
File "/usr/lib64/python2.6/xmlrpclib.py", line 1253, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib64/python2.6/xmlrpclib.py", line 1392, in _parse_response
return u.close()
File "/usr/lib64/python2.6/xmlrpclib.py", line 838, in close
raise Fault(**self._stack[0])
Fault: <Fault -1: 'redstone.xmlrpc.XmlRpcFault: unhandled internal exception:
ORA-00001: unique constraint (SPACEWALK.RHN_ERRATA_ADVISORY_UQ) violated\n'> 

 

#softwarechannel_clonetree is only working with -o option (But it does not clone any errata)

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.