[RADIATOR] Accounting process dying

Heikki Vatiainen hvn at open.com.au
Thu Jan 27 14:34:02 CST 2011


On 01/27/2011 05:48 PM, Jim wrote:

> We are running separate processes for Radius accounting and 
> authentication, and each is running with 'FarmSize 4'.  For the 
> accounting I'm seeing:
> 
> Thu Jan 27 15:04:57 2011: WARNING: Server farm process 31432 died, 
> restarting
> Thu Jan 27 15:04:57 2011: DEBUG: Forking server farm instance 1

Thanks for your report.

Can you tell more about your operating environment? What is your
Radiator version, does it have patches, what is your operating system,
is it 64bit or 32bit, what is the load level when you see restarts, is
the memory usage starting to reach system limits etc.

If you are running Linux, does dmesg command show anything special e.g.,
out of memory messages? Do system logs show anything peculiar from the
time the crash happens?

> The logfile for instance 1 at Trace 4 doesnt show any errors around this 
> time, the last thing in the log was a SQL update at ('Thu Jan 27 
> 15:04:51 2011: DEBUG: do query is: 'UPDATE.....').  How can I see what 
> is causing this process to die?  I suspect its related to the SQL 
> updates in some way as the authentication process doesn't suffer this 
> issue and doesn't log anything to SQL.

If you already have Trace 4 enabled and there is nothing in logs, it is
hard to say. As I wrote above, can you tell e.g., if you are not running
out of memory when the process dies.

> Is it possible to either include the process ID in the logfile name, or 
> within the logging itself so that I can easily see where and when a 
> process has stopped and what the last accounting action was?

Currently there is no such method. If you take a look at Radius/Log.pm
and sub main::log function, you could add this

$s = "PID:$$ $s";

just before the comment "Catch recursion".

After that all log messages will contain the process ID.

-- 
Heikki Vatiainen <hvn at open.com.au>

Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS,
NetWare etc.


More information about the radiator mailing list