satellite-sync fails with ORA-00001: unique constraint (RHNSAT.RHN_ERRATA_ADVISORY_UQ) violated

Solution Verified - Updated -


satellite-sync fails with ORA-00001: unique constraint (RHNSAT.RHN_ERRATA_ADVISORY_UQ) violated

Complete error :
Exception Handler Information
Traceback (most recent call last):
  File "/usr/bin/satellite-sync", line 136, in main
    return satsync.Runner().main()
  File "/usr/share/rhn/satellite_tools/", line 199, in main
    ret = method()
  File "/usr/share/rhn/satellite_tools/", line 313, in _step_errata
  File "/usr/share/rhn/satellite_tools/", line 1704, in import_errata
  File "/usr/share/rhn/satellite_tools/", line 417, in import_errata
  File "/usr/share/rhn/server/importlib/", line 617, in run
  File "/usr/share/rhn/server/importlib/", line 177, in submit
    dml = self.backend.processErrata(self.batch)
  File "/usr/share/rhn/server/importlib/", line 700, in processErrata
  File "/usr/share/rhn/server/importlib/", line 1325, in __processObjectCollection
    return self.__processObjectCollection__(objColl, parentTable, childDict, **kwargs)
  File "/usr/share/rhn/server/importlib/", line 1495, in __processObjectCollection__
    return self.__doDML(dml)
  File "/usr/share/rhn/server/importlib/", line 1603, in __doDML
    self.__doInsert(dml.insert, dml.tables)
  File "/usr/share/rhn/server/importlib/", line 1609, in __doInsert
    self.__doInsertTable(tname, dict)
  File "/usr/share/rhn/server/importlib/", line 1621, in __doInsertTable
  File "/usr/share/rhn/server/importlib/", line 419, in query
    executeStatement(statement, values, self.count)
  File "/usr/share/rhn/server/importlib/", line 449, in executeStatement
    count = count + apply(statement.executemany, (), tempdict)
  File "/usr/share/rhn/server/rhnSQL/", line 103, in executemany
    return apply(self._execute_wrapper, (self._executemany, ) + p, kw)
  File "/usr/share/rhn/server/rhnSQL/", line 159, in _execute_wrapper
    raise apply(sql_base.SQLError, ret)
SQLError: (1, 'ORA-00001: unique constraint (RHNSAT.RHN_ERRATA_ADVISORY_UQ) violated\n', 'insert into rhnErrata (advisory_name, advisory, product, description, advisory_type, severity_id, notes, org_id, solution, id, topic, synopsis, last_modified, issue_date, update_date, locally_modified, advisory_rel, refers_to) values (:advisory_name, :advisory, :product, :description, :advisory_type, :severity_id, :notes, :org_id, :solution, :id, :topic, :synopsis, :last_modified, :issue_date, :update_date, :locally_modified, :advisory_rel, :refers_to)')


Red Hat Network Satellite v5.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In