<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>The question is why it’s using the default options when I am running postgresql. At one point I switched from oracle to postgresql and I am not sure if something got missed in a table or something, but all my upgrades prior to 2.4 all worked properly, and populated the rhn.conf file with the proper spacewalk postgresql information. When I did the upgrade from 2.3 to 2.4, that is when it stopped populating the rhn.conf correctly, and used the default configuration. Now as I have done the 2.4 to 2.5 upgrade, I have run into the same problem again. I would love to know why it’s not using the spacewalk postgresql settings and choosing the defaults.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Steve<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> kraskoshnyy@gmail.com [mailto:kraskoshnyy@gmail.com] <b>On Behalf Of </b>Konstantin Raskoshnyi<br><b>Sent:</b> Friday, June 10, 2016 1:59 PM<br><b>To:</b> Steve Kent <skent@noblesystems.com>; spacewalk-list@redhat.com<br><b>Subject:</b> Re: [Spacewalk-list] Failed schema upgrade to 2.5<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Default credentials should be these ones <o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'>db_backend = postgresql<br>db_user = rhnuser<br>db_password = rhnpw<br>db_name = rhnschema</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-size:9.5pt'>I updated from 2.3 to 2.4 a couple weeks ago, everything was fine</span><o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Fri, Jun 10, 2016 at 10:34 AM, Steve Kent <<a href="mailto:skent@noblesystems.com" target="_blank">skent@noblesystems.com</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p class=MsoNormal>I restored my database, tried it, and everything worked great.<br><br>Now I am back to the same issue I had from upgrading 2.3 to 2.4.<br><br>I go ahead and run "spacewalk-setup" and it fails. It fails because the<br>rhn.conf file is not properly created for the database settings.<br><br>I am expecting to have this in my rhn.conf file:<br>db_backend = postgresql<br>db_user = spaceuser<br>db_password = spacepw<br>db_name = spaceschema<br><br>Instead I get:<br>db_backend = postgresql<br>db_user = rhnuser<br>db_password = rhnpw<br>db_name = rhnschema<br><br>I am not sure why it's not picking up the proper spacewalk setup. Last<br>time I went ahead and modified the spacewalk-setup file to overwrite the<br>rhn.conf file after it was created. I would love to know what I am missing<br>or what's not configured correctly that is causing that issue. It never<br>happened on my upgrades prior to 2.4.<br><br>Steve<br><br>-----Original Message-----<br>From: Steve Kent [mailto:<a href="mailto:skent@noblesystems.com">skent@noblesystems.com</a>]<br>Sent: Friday, June 10, 2016 8:19 AM<br>To: Jan Dobes <<a href="mailto:jdobes@redhat.com">jdobes@redhat.com</a>>; <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>Subject: RE: [Spacewalk-list] Failed schema upgrade to 2.5<br><br>Thanks. I will give it a shot.<br><br>Steve<br><br>-----Original Message-----<br>From: Jan Dobes [mailto:<a href="mailto:jdobes@redhat.com">jdobes@redhat.com</a>]<br>Sent: Friday, June 10, 2016 8:06 AM<br>To: Steve Kent <<a href="mailto:skent@noblesystems.com">skent@noblesystems.com</a>>; <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>Subject: Re: [Spacewalk-list] Failed schema upgrade to 2.5<br><br>The upgrade should be fixed now in spacewalk-schema-2.5.23-1.<br><br>Regards,<br>--<br>Jan Dobes<br>Satellite Engineering, Red Hat<br><br>On 9.6.2016 19:41 Steve Kent wrote:<br>> Thanks for the update!<br>><br>> Steve<br>><br>> -----Original Message-----<br>> From: Jan Dobes [mailto:<a href="mailto:jdobes@redhat.com">jdobes@redhat.com</a>]<br>> Sent: Thursday, June 09, 2016 1:37 PM<br>> To: Steve Kent <<a href="mailto:skent@noblesystems.com">skent@noblesystems.com</a>>; <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>> Subject: Re: [Spacewalk-list] Failed schema upgrade to 2.5<br>><br>> We know about it. It's bug in upgrades scripts which occurs when there<br>> are multiple organization on Spacewalk. We will try to release fixed<br>> spacewalk-schema package as soon as possible. Sorry for inconvenience.<br>><br>> Regards,<br>> --<br>> Jan Dobes<br>> Satellite Engineering, Red Hat<br>><br>> On 9.6.2016 18:47 Steve Kent wrote:<br>>> I attempted to upgrade from 2.4 to 2.5 and ran into this issue:<br>>><br>>> clear_log_id<br>>><br>>> --------------<br>>><br>>> (1 row)<br>>><br>>> psql:/var/log/spacewalk/schema-upgrade/20160609-124047-script.sql:4470:<br>>> ERROR:  more than one row returned by a subquery used as an<br>>> expression<br>>><br>>> Here is the sql statement:<br>>><br>>> SELECT logging.clear_log_id();<br>>><br>>> DELETE FROM rhnOrgExtGroupMapping<br>>><br>>>     WHERE server_group_id = (<br>>><br>>>       SELECT id<br>>><br>>>         FROM rhnServerGroup<br>>><br>>>         WHERE group_type = (<br>>><br>>>           SELECT id<br>>><br>>>             FROM rhnServerGroupType<br>>><br>>>             WHERE label = 'provisioning_entitled'<br>>><br>>>         )<br>>><br>>>     );<br>>><br>>> spaceschema=# select * from rhnOrgExtGroupMapping;<br>>><br>>> id | ext_group_id | server_group_id | created | modified<br>>><br>>> ----+--------------+-----------------+---------+----------<br>>><br>>> (0 rows)<br>>><br>>> spaceschema=#<br>>><br>>><br>>><br>>> Thanks,<br>>><br>>> *Steve Kent*<br>>> /Director, Platform R&D/<br>>> *Noble Systems Corporation*<br>>> (o) 1.404.851.1331 x1305<br>>> (e)<a href="mailto:skent@noblesystems.com">skent@noblesystems.com</a> <mailto:<a href="mailto:skent@noblesystems.com">skent@noblesystems.com</a>><br>>> (w)<a href="http://www.noblesystems.com" target="_blank">www.noblesystems.com</a> <<a href="http://www.noblesystems.com/" target="_blank">http://www.noblesystems.com/</a>><br>>><br>>><br>>><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><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><o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>