<p dir="ltr">Pierre good morning</p>
<p dir="ltr">I'm just in cel but take a look in the flags of this command. Can you force the server name ?<br></p>
<p dir="ltr">Try it and tell me.</p>
<p dir="ltr">B'regards<br>
Waldirio</p>
<div class="gmail_quote">Em 26/11/2014 05:04, "Pierre Casenove" <<a href="mailto:pcasenove@gmail.com">pcasenove@gmail.com</a>> escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>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> </p>

<p>Local variables by frame</p>

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

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

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

<p>LINE 4:        join
rhnServerChannel sc on c.parent_channel = sc.cha...</p><p><br></p><p><br></p><p>On the client, I have the latest rhn-setup package:</p><p>$ rpm -qf /usr/sbin/spacewalk-channel<br></p><p>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>
<br>_______________________________________________<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></blockquote></div>