<div dir="ltr">Yes, I found that and did the update on my server.  Thank you for responding!</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 26, 2014 at 8:34 AM, Dimitar Yordanov <span dir="ltr"><<a href="mailto:dyordano@redhat.com" target="_blank">dyordano@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mark,<br>
<br>
  This issue was addressed in SW-nightly via bug report 1122438 - Syntax Error in SQL-Statement "subscribe_sql" in "rhnChannel.py"<br>
   <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1122438" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1122438</a><br>
<br>
Dimi<br>
<div><div class="h5"><br>
----- Original Message -----<br>
> From: "Mark Manley" <<a href="mailto:mwmanley@gmail.com">mwmanley@gmail.com</a>><br>
> To: <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
> Sent: Tuesday, August 19, 2014 12:20:37 AM<br>
> Subject: [Spacewalk-list] rhn-channel command bombs on servers when adding    child channels<br>
><br>
> Howdy,<br>
><br>
> I'm running Spacewalk client/server 2.2 on CentOS 6.4 and seeing these SQL<br>
> errors when trying to run the rhn-channel command on clients to add child<br>
> channels via a proxy. I'm redacting most of the traceback emails since it<br>
> emails quite a bit of information, including passwords. Is this a known bug?<br>
> I have no problems adding child channels via the Spacewalk server's web<br>
> interface or via the spacecmd command, and I used to do this quite a bit<br>
> with the 1.x versions of Spacewalk.<br>
><br>
> I see this running:<br>
><br>
> rhn-channel -a -c <CHILD CHANNEL LABEL> -u <USER> -p <PASSWORD><br>
><br>
> Removing child channels works great.<br>
><br>
> Thanks!<br>
><br>
> -MM<br>
><br>
> ######<br>
><br>
> Extra information about this error:<br>
> SQL Error generated: ('ERROR:  syntax error at or near<br>
> "rhnServerChannel"\nLINE 4:        join rhnServerChannel sc on<br>
> c.parent_channel = sc.cha...\n                    ^\n', <connection object<br>
> at 0x7fb57452bad0; dsn: 'port=5432<br>
> host=spacewalk\-db01\.prd\.nj1\.tapad\.com password=xxxxxxxxxxxxxxxxxxxxxxxx<br>
> dbname=spaceschema user=spaceuser', closed: 0>, '\nselect 1\n  from<br>
> rhnChannel c,\n       join rhnServerChannel sc on c.parent_channel =<br>
> sc.channel_id\n  where sc.server_id = %(sid)s\n    and c.label =<br>
> %(channel)s\n')<br>
><br>
> Exception Handler Information<br>
> Traceback (most recent call last):<br>
>   File "/usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py",<br>
>   line 122, in call_function<br>
>     response = func(*params)<br>
>   File "/usr/share/rhn/server/handlers/xmlrpc/up2date.py", line 171, in<br>
>   subscribeChannels<br>
>     username, passwd)<br>
>   File "/usr/lib/python2.6/site-packages/spacewalk/server/rhnChannel.py",<br>
>   line 1756, in subscribe_channel<br>
>     h.execute(sid=server_id, channel=str(channel))<br>
>   File<br>
>   "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/sql_base.py",<br>
>   line 147, in execute<br>
>     return self._execute_wrapper(self._execute, *p, **kw)<br>
>   File<br>
>   "/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py",<br>
>   line 294, in _execute_wrapper<br>
>     raise sql_base.SQLStatementPrepareError(self.dbh, e.pgerror, self.sql)<br>
> SQLStatementPrepareError: ('ERROR:  syntax error at or near<br>
> "rhnServerChannel"\nLINE 4:        join rhnServerChannel sc on<br>
> c.parent_channel = sc.cha...\n                    ^\n', <connection object<br>
> at 0x7fb57452bad0; dsn: 'port=5432<br>
> host=spacewalk\-db01\.prd\.nj1\.tapad\.com password=xxxxxxxxxxxxxxxxxxxxxxxx<br>
> dbname=spaceschema user=spaceuser', closed: 0>, '\nselect 1\n  from<br>
> rhnChannel c,\n       join rhnServerChannel sc on c.parent_channel =<br>
> sc.channel_id\n  where sc.server_id = %(sid)s\n    and c.label =<br>
> %(channel)s\n')<br>
><br>
> Local variables by frame<br>
> Frame _execute_wrapper in<br>
> /usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py<br>
> at line 294<br>
>                   function = <type 'instancemethod'> <bound method Cursor._execute<br>
>                   of <spacewalk.server.rhnSQL.driver_postgresql.Cursor instance<br>
>                   at 0x7fb574d6be60>><br>
>                          e = <class 'psycopg2.ProgrammingError'> syntax error at<br>
>                          or near "rhnServerChannel"<br>
> LINE 4:        join rhnServerChannel sc on c.parent_channel = sc.cha...<br>
>                     ^<br>
><br>
><br>
</div></div>> _______________________________________________<br>
> Spacewalk-list mailing list<br>
> <a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
> <a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" target="_blank">https://www.redhat.com/mailman/listinfo/spacewalk-list</a><br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Dimitar Yordanov<br>
System Management Quality Engineer<br>
Red Hat Satellite | Spacewalk<br>
<br>
<br>
</font></span></blockquote></div><br></div>