Bug 627150 - SQL error on inserting "rhnTaskQueue"
Summary: SQL error on inserting "rhnTaskQueue"
Keywords:
Status: CLOSED DUPLICATE of bug 627933
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Satellite Synchronization
Version: 540
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: sat540-blockers
TreeView+ depends on / blocked
 
Reported: 2010-08-25 08:26 UTC by Garik Khachikyan
Modified: 2015-01-04 21:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-08-30 16:59:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Garik Khachikyan 2010-08-25 08:26:41 UTC
Description of problem:
satellite-sync gives an SQL error (not sure at what state - was running unattended) and emails following:
---
08:34:40 
SYNC ERROR: unhandled exception occurred:

Exception reported from smqe-sat11.lab.eng.brq.redhat.com
Time: Wed Aug 25 08:34:40 2010
Exception type server.rhnSQL.sql_base.SQLError

Exception Handler Information
Traceback (most recent call last):
  File "/usr/bin/satellite-sync", line 143, in main
    return satsync.Runner().main()
  File "/usr/share/rhn/satellite_tools/satsync.py", line 218, in main
    ret = method()
  File "/usr/share/rhn/satellite_tools/satsync.py", line 342, in _step_errata
    schedule_errata_cache_update(self._affected_channels)
  File "/usr/share/rhn/server/importlib/errataCache.py", line 32, in schedule_errata_cache_update
    h.executemany(label=channels)
  File "/usr/share/rhn/server/rhnSQL/sql_base.py", line 177, in executemany
    return apply(self._execute_wrapper, (self._executemany, ) + p, kw)
  File "/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py", line 118, in _execute_wrapper
    raise apply(sql_base.SQLError, ret)
SQLError: (1400, 'ORA-01400: cannot insert NULL into ("SMQE_SAT11"."RHNTASKQUEUE"."ORG_ID")\n', "insert into rhnTaskQueue (org_id, task_name, task_data, priority, earliest) select c.org_id, 'update_errata_cache_by_channel', c.id, 0, SYSDATE from rhnChannel c where c.label = :label")
---

Version-Release number of selected component (if applicable):
Satellite iso: Satellite-5.4.0-RHEL5-re20100820.0-x86_64.iso

How reproducible:
1 from 1 attempt

Steps to Reproduce:
1. satellite-sync -c rhel-i386-server-vt-5 -c rhn-tools-rhel-i386-server-5 -c rhel-i386-server-5
2.
3.
  
Actual results:
Exception in console:
--
Downloading:######################################## - complete
08:34:33    Importing *relevant* errata: rhel-i386-server-vt-5 (50)
            ________________________________________
Downloading:######################################## - complete
08:34:39    Importing *relevant* errata: rhn-tools-rhel-i386-server-5 (4)
            ________________________________________
Downloading:######################################## - complete
+++ sending log as an email +++

SYNC ERROR: unhandled exception occurred:

(Check logs/email for potentially more detail)

(1400, 'ORA-01400: cannot insert NULL into ("SMQE_SAT11"."RHNTASKQUEUE"."ORG_ID")\n', "insert into rhnTaskQueue (org_id, task_name, task_data, priority, earliest) select c.org_id, 'update_errata_cache_by_channel', c.id, 0, SYSDATE from rhnChannel c where c.label = :label")

You have new mail in /var/spool/mail/root
--

Expected results:
no tracebacks, no exception emails.

Additional info:

Comment 1 Michael Mráka 2010-08-30 16:59:23 UTC

*** This bug has been marked as a duplicate of bug 627933 ***


Note You need to log in before you can comment on or make changes to this bug.