<div dir="ltr">To be more specific and to correct my previous post, I made the following changes:<div><br></div><div><a href="https://bugzilla.redhat.com/attachment.cgi?id=931659&action=diff">https://bugzilla.redhat.com/attachment.cgi?id=931659&action=diff</a><br></div><div><a href="https://github.com/spacewalkproject/spacewalk/commit/4073abaf7bc7f17b738bcc0ca64e657ab9d074bf">https://github.com/spacewalkproject/spacewalk/commit/4073abaf7bc7f17b738bcc0ca64e657ab9d074bf</a><br></div><div><br></div><div>I did these separately and tried both methods, neither adjusted where rhn-search looked for the database.</div><div><br></div><div>- Jeremy</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 2, 2014 at 11:28 AM, Jeremy Darr <span dir="ltr"><<a href="mailto:jeremy.darr@gmail.com" target="_blank">jeremy.darr@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">So I took the changes shown inĀ <a href="https://bugzilla.redhat.com/attachment.cgi?id=931659&action=diff" target="_blank">https://bugzilla.redhat.com/attachment.cgi?id=931659&action=diff</a> and applied this to the current 2.1 branch, built the package and installed it on my application server. This did not alter the behavior of rhn-search in the slightest. Am I missing something here (other changes that need to be done) or is this working for someone else?<span class="HOEnZb"><font color="#888888"><div><br></div><div>- Jeremy</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 24, 2014 at 3:27 AM, Tomas Lestach <span dir="ltr"><<a href="mailto:tlestach@redhat.com" target="_blank">tlestach@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you for the provided information.<br>
<br>
I fixed the issue for spacewalk nightly [1].<br>
The patch available in bugzilla [2] does not consider embedded PG installations.<br>
<span><br>
Regards,<br>
--<br>
Tomas Lestach<br>
Red Hat Satellite Engineering, Red Hat<br>
<br>
</span>[1] <a href="https://github.com/spacewalkproject/spacewalk/commit/4073abaf7bc7f17b738bcc0ca64e657ab9d074bf" target="_blank">https://github.com/spacewalkproject/spacewalk/commit/4073abaf7bc7f17b738bcc0ca64e657ab9d074bf</a><br>
[2] <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1085033#c1" target="_blank">https://bugzilla.redhat.com/show_bug.cgi?id=1085033#c1</a><br>
<span><br>
<br>
----- Original Message -----<br>
> From: "Jeremy Darr" <<a href="mailto:jeremy.darr@gmail.com" target="_blank">jeremy.darr@gmail.com</a>><br>
> To: <a href="mailto:spacewalk-list@redhat.com" target="_blank">spacewalk-list@redhat.com</a><br>
</span><div><div>> Sent: Tuesday, September 23, 2014 6:34:25 PM<br>
> Subject: Re: [Spacewalk-list] RHNSearch Database Connection<br>
><br>
><br>
><br>
><br>
> Currently I have all necessary information for this connection:<br>
><br>
><br>
><br>
> [root@my_host ~]# egrep 'db_(host|name|port)' /etc/rhn/rhn.conf<br>
> db_name = swdb00<br>
> db_host = my_db_host<br>
> db_port = 5432<br>
><br>
><br>
> I will be testing the patch submitted earlier in this thread tomorrow<br>
> evening during a maintenance window for my Spacewalk installation. I<br>
> will let everyone know whether that fixes the issue.<br>
><br>
><br>
> - Jeremy<br>
><br>
><br>
> On Tue, Sep 23, 2014 at 2:07 AM, Tomas Lestach < <a href="mailto:tlestach@redhat.com" target="_blank">tlestach@redhat.com</a><br>
> > wrote:<br>
><br>
><br>
> Hello,<br>
><br>
> what does<br>
> # egrep 'db_(host|name|port)' /etc/rhn/rhn.conf<br>
> say?<br>
><br>
> Regards,<br>
> --<br>
> Tomas Lestach<br>
> Red Hat Satellite Engineering, Red Hat<br>
><br>
><br>
><br>
><br>
> ----- Original Message -----<br>
> > From: "Jeremy Darr" < <a href="mailto:jeremy.darr@gmail.com" target="_blank">jeremy.darr@gmail.com</a> ><br>
> > To: <a href="mailto:spacewalk-list@redhat.com" target="_blank">spacewalk-list@redhat.com</a><br>
> > Sent: Saturday, September 20, 2014 1:06:35 AM<br>
> > Subject: [Spacewalk-list] RHNSearch Database Connection<br>
> ><br>
> ><br>
> ><br>
> > Recently, while attempting to migrate Spacewalk from a CentOS5 to a<br>
> > CentOS6 server, we encountered an issue with rhnsearch. It appears<br>
> > that rhnsearch believes that the database is found at 'localhost'<br>
> > as<br>
> > opposed to the server that the database lives on. Odd thing is,<br>
> > every other piece of software for Spacewalk communicates with the<br>
> > database just fine. Here is the output when running an<br>
> > "/etc/init.d/rhnsearch cleanindex" command:<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > INFO: Initializing c3p0 pool...<br>
> > com.mchange.v2.c3p0.ComboPooledDataSource [ acquireIncrement -> 3,<br>
> > acquireRetryAttempts -> 30, acquireRetryDelay -> 1000,<br>
> > autoCommitOnClose -> false, automaticTestTable -> null,<br>
> > breakAfterAcquireFailure -> false, checkoutTimeout -> 0,<br>
> > connectionCustomizerClassName -><br>
> > com.redhat.satellite.search.config.translator.RhnConnectionCustomizer,<br>
> > connectionTesterClassName -><br>
> > com.mchange.v2.c3p0.impl.DefaultConnectionTester, dataSourceName -><br>
> > qzsrcd9411kwsxn1wwivba|69af0db6,<br>
> > debugUnreturnedConnectionStackTraces -> false, description -> null,<br>
> > driverClass -> org.postgresql.Driver, factoryClassLocation -> null,<br>
> > forceIgnoreUnresolvedTransactions -> false, identityToken -><br>
> > qzsrcd9411kwsxn1wwivba|69af0db6, idleConnectionTestPeriod -> 0,<br>
> > initialPoolSize -> 3, jdbcUrl -> jdbc:postgresql:swdb00 ,<br>
> > maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime<br>
> > -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15,<br>
> > maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -><br>
> > 3, numHelperThreads -> 3, numThreadsAwaitingCheckoutDefaultUser -><br>
> > 0, preferredTestQuery -> null, properties -> {user=******,<br>
> > password=******}, propertyCycle -> 0, testConnectionOnCheckin -><br>
> > false, testConnectionOnCheckout -> false,<br>
> > unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies<br>
> > -> false ]<br>
> ><br>
> > I'm not certain where to set configuration values for the following<br>
> > from the above output:<br>
> ><br>
> > jdbcUrl -> jdbc:postgresql:swdb00<br>
> ><br>
> ><br>
> > Does anyone happen to know where this configuration value lives?<br>
> ><br>
> > - Jeremy<br>
><br>
><br>
> > _______________________________________________<br>
> > Spacewalk-list mailing list<br>
> > <a href="mailto:Spacewalk-list@redhat.com" target="_blank">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" target="_blank">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>
> _______________________________________________<br>
> Spacewalk-list mailing list<br>
> <a href="mailto:Spacewalk-list@redhat.com" target="_blank">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" target="_blank">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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>