<br><font size=2 face="sans-serif">happy to wait for 0.3 or get the git,
since I now get the following error</font>
<br>
<br><font size=2 face="sans-serif">+++ sending log as an email +++</font>
<br>
<br><font size=2 face="sans-serif">SYNC ERROR: unhandled exception occurred:</font>
<br>
<br><font size=2 face="sans-serif">(Check logs/email for potentially more
detail)</font>
<br>
<br><font size=2 face="sans-serif">(1400, 'ORA-01400: cannot insert NULL
into ("SPACEWALK"."RHNCHANNELFAMILY"."NAME")\n',
'INSERT INTO  rhnChannelFamily (id, name, label, org_id, product_url)
VALUES (rhn_channel_family_id_seq.nextval, :name, :label, :org, :url)')</font>
<br>
<br><font size=2 face="sans-serif"><br>
<br>
</font><font size=1 face="Arial"><b>Andy Linux</b><br>
Lead Linux Engineer<br>
UNIX Team<br>
BNZ<br>
<br>
DDI: 04 4746330<br>
Mobile: 0212840435</font>
<br>
<br><tt><font size=2>Pradeep Kilambi <pkilambi@redhat.com> wrote
on 18/10/2008 04:02:25 a.m.:<br>
<br>
> Ah yes, I fixed this for spacewalk 0.3..if you already have the git
repo <br>
> checked out you should have the fix for this. If not, Jus apply the
<br>
> following patch on your spacewalk server:<br>
> <br>
> $ diff -u /usr/share/rhn/server/importlib/backend.py.old <br>
> /usr/share/rhn/server/importlib/backend.py<br>
> --- /usr/share/rhn/server/importlib/backend.py.old    2008-10-17
<br>
> 11:00:16.000000000 -0400<br>
> +++ /usr/share/rhn/server/importlib/backend.py    2008-10-17
<br>
> 11:00:30.000000000 -0400<br>
> @@ -270,7 +270,7 @@<br>
>         """<br>
>  <br>
>         h = self.dbmodule.prepare(_query_org_family)<br>
> -       h.execute(org_id =family['label'])<br>
> +      h.execute(label =family['label'])<br>
>         row = h.fetchone_dict()<br>
>         if row:<br>
>            return<br>
> <br>
> That should fix your issue.<br>
> <br>
> Thanks,<br>
> ~ Prad<br>
> <br>
> <br>
> Andy_Hamberger@bnz.co.nz wrote:<br>
> ><br>
> > Hi There<br>
> ><br>
> > It is spacewalk 0.2. In meantime I have rebuild the server on
real <br>
> > hardware instead of VMWARE. Performance now is very good. I am
able to <br>
> > sync actual channels, but not cloned channels. frozen is a cloned
<br>
> > channel.<br>
> ><br>
> ><br>
> > /var/log/rhn/rhn_server_satellite.log<br>
> ><br>
> > 2008/10/16 19:18:48 +13:00 RHN Entitlement Certificate sync complete<br>
> > 2008/10/16 19:18:48 +13:00<br>
> > 2008/10/16 19:18:48 +13:00 Retrieving / parsing arches data<br>
> > 2008/10/16 19:18:48 +13:00 arches data complete<br>
> > 2008/10/16 19:18:48 +13:00<br>
> > 2008/10/16 19:18:48 +13:00 Retrieving / parsing additional arches
data<br>
> > 2008/10/16 19:18:48 +13:00 additional arches data complete<br>
> > 2008/10/16 19:18:48 +13:00<br>
> > 2008/10/16 19:18:48 +13:00 Retrieving / parsing channel data<br>
> > 2008/10/16 19:18:49 +13:00    p = previously imported/synced
channel<br>
> > 2008/10/16 19:18:49 +13:00    . = channel not yet imported/synced<br>
> > 2008/10/16 19:18:49 +13:00    base-channels:<br>
> > 2008/10/16 19:18:49 +13:00       . frozen-080608-rhel-s390x-server-5
  <br>
> >      4675<br>
> > 2008/10/16 19:18:49 +13:00<br>
> > 2008/10/16 19:18:49 +13:00<br>
> > SYNC ERROR: unhandled exception occurred:<br>
> ><br>
> > Exception reported from wgplsat01.nz.thenational.com<br>
> > Time: Thu Oct 16 19:18:49 2008<br>
> > Exception type server.rhnSQL.sql_base.SQLError<br>
> ><br>
> > Exception Handler Information<br>
> > Traceback (most recent call last):<br>
> >   File "/usr/bin/satellite-sync", line 142, in
main<br>
> >     return satsync.Runner().main()<br>
> >   File "/usr/share/rhn/satellite_tools/satsync.py",
line 206, in main<br>
> >     ret = method()<br>
> >   File "/usr/share/rhn/satellite_tools/satsync.py",
line 279, in <br>
> > _step_channels<br>
> >     self.syncer.process_channels()<br>
> >   File "/usr/share/rhn/satellite_tools/satsync.py",
line 611, in <br>
> > process_channels<br>
> >     sync_handlers.import_channels(requested_channels)<br>
> >   File "/usr/share/rhn/satellite_tools/sync_handlers.py",
line 199, in <br>
> > import_channels<br>
> >     importer.run()<br>
> >   File "/usr/share/rhn/server/importlib/importLib.py",
line 628, in run<br>
> >     self.fix()<br>
> >   File "/usr/share/rhn/server/importlib/channelImport.py",
line 59, in <br>
> > fix<br>
> >     self.__postprocessChannel(channel)<br>
> >   File "/usr/share/rhn/server/importlib/channelImport.py",
line 81, in <br>
> > __postprocessChannel<br>
> >     self.backend.lookupOrgFamily(family, channel['org_id'])<br>
> >   File "/usr/share/rhn/server/importlib/backend.py",
line 273, in <br>
> > lookupOrgFamily<br>
> >     h.execute(org_id=family['label'])<br>
> >   File "/usr/share/rhn/server/rhnSQL/int_oracle.py",
line 112, in execute<br>
> >     return apply(self._execute_wrapper, (self._execute,
) + p, kw)<br>
> >   File "/usr/share/rhn/server/rhnSQL/int_oracle.py",
line 155, in <br>
> > _execute_wrapper<br>
> >     retval = apply(function, p, kw)<br>
> >   File "/usr/share/rhn/server/rhnSQL/int_oracle.py",
line 251, in <br>
> > _execute<br>
> >     return self._execute_(args, kwargs)<br>
> >   File "/usr/share/rhn/server/rhnSQL/driver_cx_Oracle.py",
line 101, <br>
> > in _execute_<br>
> >     'Not all variables bound', k)<br>
> > SQLError: (1008, 'Not all variables bound', 'LABEL')<br>
> ><br>
> > *Andy Linux*<br>
> > Lead Linux Engineer<br>
> > UNIX Team<br>
> > BNZ<br>
> ><br>
> > DDI: 04 4746330<br>
> > Mobile: 0212840435<br>
> ><br>
> > Pradeep Kilambi <pkilambi@redhat.com> wrote on 15/10/2008
02:05:35 a.m.:<br>
> ><br>
> > > Yea looks like some query is throwing an SQL exception while
trying to<br>
> > > execute with label param. Please look at<br>
> > > /var/log/rhn/rhn_server_satellite.log and look for traceback.
Attach it<br>
> > > here so I can look at whats happening. Also is this in spacewalk-0.2?<br>
> > ><br>
> > > Thanks,<br>
> > > ~ Prad<br>
> > ><br>
> > ><br>
> > > Andy_Hamberger@bnz.co.nz wrote:<br>
> > > ><br>
> > > > Hello There<br>
> > > ><br>
> > > > I am trying to import an exported channel from a satellite
server<br>
> > > > (5.1) and when I run the satellite-sync on the spacewalk
server I get<br>
> > > > the following error and I don't get any emails either.
Goolging it<br>
> > > > looks like some oracle error.<br>
> > > ><br>
> > > > /usr/bin/satellite-sync -m . -c frozen-080608-rhel-s390x-server-5<br>
> > > ><br>
> > > ><br>
> > > > 13:56:03 Red Hat Network Satellite - file-system synchronization<br>
> > > > 13:56:03    mp:<br>
> > > >  /var/satellite/rhn-sat-import/frozen-080608-rhel-s390x-server-5<br>
> > > > 13:56:03    db:  spacewalk/<password>@xe<br>
> > > > 13:56:03<br>
> > > > 13:56:03 Retrieving / parsing channel-families data<br>
> > > > 13:56:04 channel-families data complete<br>
> > > > 13:56:04<br>
> > > > 13:56:04 Retrieving / parsing arches data<br>
> > > > 13:56:05 arches data complete<br>
> > > > 13:56:05<br>
> > > > 13:56:05 Retrieving / parsing additional arches data<br>
> > > > 13:56:05 additional arches data complete<br>
> > > > 13:56:05<br>
> > > > 13:56:05 Retrieving / parsing channel data<br>
> > > > 13:56:05    p = previously imported/synced
channel<br>
> > > > 13:56:05    . = channel not yet imported/synced<br>
> > > > 13:56:05    base-channels:<br>
> > > > 13:56:05       . frozen-080608-rhel-s390x-server-5
       4675<br>
> > > > 13:56:05<br>
> > > > +++ sending log as an email +++<br>
> > > ><br>
> > > > SYNC ERROR: unhandled exception occurred:<br>
> > > ><br>
> > > > (Check logs/email for potentially more detail)<br>
> > > ><br>
> > > > (1008, 'Not all variables bound', 'LABEL')<br>
> > > ><br>
> > > ><br>
> > > > *Andy Linux*<br>
> > > > Lead Linux Engineer<br>
> > > > UNIX Team<br>
> > > > BNZ<br>
> > > ><br>
> > > > DDI: 04 4746330<br>
> > > > Mobile: 0212840435<br>
> > > > CAUTION - This message may contain privileged and confidential
<br>
> > information<br>
> > > > intended only for the use of the addressee named above.
If you are <br>
> > not the<br>
> > > > intended recipient of this message you are hereby notified
that <br>
> > any use,<br>
> > > > dissemination, distribution or reproduction of this
message is <br>
> > prohibited.<br>
> > > > This email was sent by the Bank of New Zealand. You
can contact us on<br>
> > > > 0800 ASK BNZ (0800 275 269). Any views expressed in
this message <br>
> > are those<br>
> > > > of the individual sender and may not necessarily reflect
the views <br>
> > of Bank<br>
> > > > of New Zealand.<br>
> > > >  <br>
> > > > <br>
> > ------------------------------------------------------------------------<br>
> > > ><br>
> > > > _______________________________________________<br>
> > > > Spacewalk-list mailing list<br>
> > > > Spacewalk-list@redhat.com<br>
> > > > https://www.redhat.com/mailman/listinfo/spacewalk-list<br>
> > ><br>
> > CAUTION - This message may contain privileged and confidential
information <br>
> > intended only for the use of the addressee named above. If you
are not the <br>
> > intended recipient of this message you are hereby notified that
any use, <br>
> > dissemination, distribution or reproduction of this message is
prohibited. <br>
> > This email was sent by the Bank of New Zealand. You can contact
us on <br>
> > 0800 ASK BNZ (0800 275 269). Any views expressed in this message
are those <br>
> > of the individual sender and may not necessarily reflect the
views of Bank <br>
> > of New Zealand.<br>
> >   <br>
> <br>
> <br>
> -- <br>
> --<br>
> Pradeep Kilambi<br>
> RHN Satellite Engineering<br>
> pkilambi@redhat.com<br>
> Phone: +1 919 754 4285<br>
> RHCE # 805008680430554<br>
> <br>
> <br>
</font></tt><pre>
CAUTION - This message may contain privileged and confidential information 
intended only for the use of the addressee named above. If you are not the 
intended recipient of this message you are hereby notified that any use, 
dissemination, distribution or reproduction of this message is prohibited. 
This email was sent by the Bank of New Zealand. You can contact us on 
0800 ASK BNZ (0800 275 269). Any views expressed in this message are those 
of the individual sender and may not necessarily reflect the views of Bank 
of New Zealand.
</pre>