Hello there, I had a problem with my server that hosts a small radius server with a captive portal. I rebooted the freeradius service and it started to work again against by peeling logs I really do not see the cause! Here are freeradius logs: Thu Jun 26 21:56:19 2014 : Error: rlm_radutmp: Logout for NAS localhost port 17, but no Login record Thu Jun 26 21:59:54 2014 : Error: rlm_radutmp: Logout for NAS localhost port 31, but no Login record Thu Jun 26 22:08:07 2014 : Error: rlm_radutmp: Logout for NAS localhost port 3, but no Login record Thu Jun 26 22:08:34 2014 : Error: rlm_radutmp: Logout for NAS localhost port 30, but no Login record Thu Jun 26 22:15:51 2014 : Error: rlm_radutmp: Logout for NAS localhost port 27, but no Login record Thu Jun 26 22:21:58 2014 : Error: rlm_radutmp: Logout for NAS localhost port 22, but no Login record Fri Jun 27 09:11:43 2014 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none? Fri Jun 27 09:11:43 2014 : Info: rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked Fri Jun 27 09:11:43 2014 : Info: rlm_sql (sql): Attempting to connect to radius@localhost:/radius Fri Jun 27 09:11:43 2014 : Info: rlm_sql_mysql: Starting connect to MySQL server for #0 Fri Jun 27 09:11:43 2014 : Info: rlm_sql_mysql: Starting connect to MySQL server for #1 Fri Jun 27 09:11:43 2014 : Info: rlm_sql_mysql: Starting connect to MySQL server for #2 Fri Jun 27 09:11:43 2014 : Info: rlm_sql_mysql: Starting connect to MySQL server for #3 Fri Jun 27 09:11:43 2014 : Info: rlm_sql_mysql: Starting connect to MySQL server for #4 Fri Jun 27 09:11:43 2014 : Info: Ready to process requests. The service has planted resumed at 22:21 p.m. ET 9:11 when I rebooted freeradius. Do you have any idea what happened? I would also like to disable archiving in radwtmp because I ustilise sql how is it done?
Where can I disable radwtmp in the configuration file? And what's the point? Is that who planted freeradius?
Date: Mon, 30 Jun 2014 15:21:36 +0000 From: A.L.M.Buxey@lboro.ac.uk To: freeradius-users@lists.freeradius.org Subject: Re: crash freeradius
Hi,
I would also like to disable archiving in radwtmp because I ustilise sql how is it done?
if you dont need/want a feature, comment it out of the config files...you'll see the calls to the module in sites-available/*
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi,
Where can I disable radwtmp in the configuration file? And what's the point? Is that who planted freeradius?
edit the configuration file , comment out the calls to 'unix' (which is the module that uses that) from sites-enabled/default (and any other virtual server that you have). read the modules/unix config file to see why it exists. its just there by default. it grows big...and if not used it can cause issues down the line. alan
ok and can we remove the empty radwtmp file without changing the radius configuration and without it have any impact? And according logsqu'est which blocked the authentication according to you?
Date: Mon, 30 Jun 2014 16:03:59 +0000 From: A.L.M.Buxey@lboro.ac.uk To: freeradius-users@lists.freeradius.org Subject: Re: crash freeradius
Hi,
Where can I disable radwtmp in the configuration file? And what's the point? Is that who planted freeradius?
edit the configuration file , comment out the calls to 'unix' (which is the module that uses that) from sites-enabled/default (and any other virtual server that you have).
read the modules/unix config file to see why it exists. its just there by default. it grows big...and if not used it can cause issues down the line.
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi,
ok and can we remove the empty radwtmp file without changing the radius configuration and without it have any impact?
if you dont use it, you can delete it. would advise that you CHANGE the RADIUS configuration to not longer make the call to the module which creates that file. this isnt rocket science
And according logsqu'est which blocked the authentication according to you?
I've made no such statement. radwtmp (and radutmp) can cause issues if not being maintained properly...as the docsconfig clearly says. big files get bugger...bigger files take longer to deal with..fill up disk space, introduce latencies to the auth etc. alan
Hi, For the logs do write more in radwtmp and radutmp, just put "unix" commented in "MODULE CONFIGURATION" or there is another place? If I did that and that there is a problem, simply return the ancienen configuration and restart freeradius and it's good?
Date: Tue, 1 Jul 2014 08:23:59 +0000 From: A.L.M.Buxey@lboro.ac.uk To: freeradius-users@lists.freeradius.org Subject: Re: crash freeradius
Hi,
ok and can we remove the empty radwtmp file without changing the radius configuration and without it have any impact?
if you dont use it, you can delete it. would advise that you CHANGE the RADIUS configuration to not longer make the call to the module which creates that file. this isnt rocket science
And according logsqu'est which blocked the authentication according to you?
I've made no such statement. radwtmp (and radutmp) can cause issues if not being maintained properly...as the docsconfig clearly says. big files get bugger...bigger files take longer to deal with..fill up disk space, introduce latencies to the auth etc.
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi,
For the logs do write more in radwtmp and radutmp, just put "unix" commented in "MODULE CONFIGURATION" or there is another place?
no. if you look at the configuration and read the guies you'll see that there is something ELSE that creates the radutmp file - its quite obvious. look at the configuration files.
If I did that and that there is a problem, simply return the ancienen configuration and restart freeradius and it's good?
yes. if theres a problem , just put the original configuration back - this is basic troubleshooting IT stuff alan
Hi, Looking at the configuration I find many things related radutmp and radwtmp to disable it. In the accounting section: # Update the wtmp file # # If you don't use "radlast", you can delete this line. unix # For Simultaneous-Use tracking. # # Due to packet losses in the network, the data here # may be incorrect. There is little we can do about it. radutmp # Session database, used for checking Simultaneous-Use. Either the radutmp # or rlm_sql module can handle this. # The rlm_sql module is *much* faster session { radutmp # # See "Simultaneous Use Checking Querie" in sql.conf sql } this is where you need to "unix" comment and "radutmp"? Sorry but I'm newbie in freeradius .. Thank You
Date: Wed, 2 Jul 2014 09:14:06 +0100 From: A.L.M.Buxey@lboro.ac.uk To: freeradius-users@lists.freeradius.org Subject: Re: crash freeradius
Hi,
For the logs do write more in radwtmp and radutmp, just put "unix" commented in "MODULE CONFIGURATION" or there is another place?
no. if you look at the configuration and read the guies you'll see that there is something ELSE that creates the radutmp file - its quite obvious. look at the configuration files.
If I did that and that there is a problem, simply return the ancienen configuration and restart freeradius and it's good?
yes. if theres a problem , just put the original configuration back - this is basic troubleshooting IT stuff
alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (2)
-
A.L.M.Buxey@lboro.ac.uk -
Arnaud .