<div dir="ltr">Hello,<div>I have a spacewalk server version 2.2, using pgsql 8.4 on rhel 6.</div><div>When I try to add a child channel to a recently registered system using spacewalk-channel command, it fails with the following error message:</div><div><div>spacewalk-client $ spacewalk-channel -c dell-pfind-el6-x64 -a</div><div>Username: </div><div>Password:</div><div>Error communicating with server. The message was:</div><div>Internal Server Error</div></div><div><br></div><div>Here is the traceback I receive:</div><div><p class="">SQLStatementPrepareError: ('ERROR:  syntax error at or near
"rhnServerChannel"\nLINE 4:       
join rhnServerChannel sc on c.parent_channel = sc.cha...\n                    ^\n', <connection object
at 0x7f0b0b73b9f0; dsn: 'password=xxxxxxxxxxx dbname=spaceschema
user=spaceuser', closed: 0>, '\nselect 1\n 
from rhnChannel c,\n       join
rhnServerChannel sc on c.parent_channel = sc.channel_id\n  where sc.server_id = %(sid)s\n    and c.label = %(channel)s\n')</p>

<p class=""> </p>

<p class="">Local variables by frame</p>

<p class="">Frame _execute_wrapper in
/usr/lib/python2.6/site-packages/spacewalk/server/rhnSQL/driver_postgresql.py
at line 294</p>

<p class="">                            function = <type
'instancemethod'> <bound method Cursor._execute of <spacewalk.server.rhnSQL.driver_postgresql.Cursor
instance at 0x7f0b0c1003f8>></p>

<p class="">                                   e = <class
'psycopg2.ProgrammingError'> syntax error at or near
"rhnServerChannel"</p>

<p class="">LINE 4:        join
rhnServerChannel sc on c.parent_channel = sc.cha...</p><p class=""><br></p><p class=""><br></p><p class="">On the client, I have the latest rhn-setup package:</p><p class="">$ rpm -qf /usr/sbin/spacewalk-channel<br></p><p class="">rhn-setup-2.2.7-1.el6.noarch</p></div><div><br></div><div><br></div><div>Is this a known issue?</div><div><br></div><div>Pierre</div></div>