Hello,<br><br>
<div><span class="gmail_quote">Considering that all things indicate that there might be a problem with the DB, I did some tweaks in PostgreSQL and took off the cron.hourly job.</span></div>
<div><span class="gmail_quote"></span> </div>
<div><span class="gmail_quote">Gonna watch out for problems then, thanks!</span></div>
<div><span class="gmail_quote"></span> </div>
<div><span class="gmail_quote"><span class="gmail_quote">---------------------------------------------------------</span></span></div>
<div><span class="gmail_quote"></span><span class="gmail_quote"></span><span class="gmail_quote"> </span></div>
<div><span class="gmail_quote">
<div>Hi,</div>
<div> </div>
<div>Freeradius 1.1.4 is randomly losing connection to both databases and it's causing total loss in the authentication process:</div>
<div> </div>
<div>Info: rlm_sql (sql): There are no DB handles to use! skipped 0, tried to connect 0<br>Info: rlm_sql (sql_postgresql): There are no DB handles to use! skipped 0, tried to connect 0</div>
<div>Info: The maximum number of threads (32) are active, cannot spawn new thread to handle request</div>
<div> </div>
<div>Running either in multi or single threaded mode, that messages appeared 47.099,00 times since Jan 27! Freeradius is configured with 32 max_servers and 32 connections to each DB. There's no starving since no accounting is being used and the server have to handle just 3 auths per second. 
</div>
<div> </div>
<div>Every time this happens, no one can authenticate and doing a restart in Freeradius solves the problem. To circumvent the problem, I've added a cron.hourly job so each hour a "service radiusd restart" is issued. 
</div>
<div> </div>
<div>As this is random, it's hard to debug, but at the same time freeradius loses the connection, several other applications can successfully connect/ maintain previous established connections to the databases. I've enabled all sorts of debug in the databases trying to better understand why freeradius is doing this, but there was no luck. 
</div>
<div> </div>
<div>I've installed the latest CVS and the same problem appeared, please help!</div></span></div>