Freeradius stops. Received HUP signal.
Hello guys. I'm using FreeRADIUS server for a few months now. I'm running it on Ubuntu 11.10 server. FreeRADIUS Version 2.1.10. The problem is that I started FreeRADIUS daemon on November 18th, and it stopped working after one week ( users authentication was not working). Sun Nov 18 06:30:58 2012 : Info: HUP - loading modules Sun Nov 18 06:30:58 2012 : Info: Module: Reloaded module "files" Sun Nov 18 06:30:58 2012 : Info: Module: Reloaded module "attr_filter.access_reject" Sun Nov 18 06:30:58 2012 : Info: Module: Reloaded module "attr_filter.accounting_response" Sun Nov 18 06:30:58 2012 : Info: Module: Reloaded module "pap" Sun Nov 18 06:30:58 2012 : Info: Module: Reloaded module "detail" Sun Nov 18 06:30:58 2012 : Info: Module: Reloaded module "sql_log" Sun Nov 18 06:30:58 2012 : Info: Module: Reloaded module "auth_log" Sun Nov 18 06:30:58 2012 : Info: Module: Reloaded module "suffix" Sun Nov 18 06:30:58 2012 : Info: Module: Reloaded module "radutmp" Sun Nov 18 06:30:58 2012 : Info: Loaded virtual server inner-tunnel Sun Nov 18 06:30:58 2012 : Info: Loaded virtual server <default> Sun Nov 18 19:12:12 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #1 Sun Nov 18 19:12:12 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #1 Sun Nov 18 19:12:12 2012 : Info: rlm_sql (sql): Connected new DB handle, #1 Sun Nov 18 19:12:12 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #0 Sun Nov 18 19:12:12 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #0 Sun Nov 18 19:12:12 2012 : Info: rlm_sql (sql): Connected new DB handle, #0 Sun Nov 18 19:12:12 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #4 Sun Nov 18 19:12:12 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #4 Sun Nov 18 19:12:12 2012 : Info: rlm_sql (sql): Connected new DB handle, #4 Sun Nov 18 19:12:12 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #3 Sun Nov 18 19:12:12 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #3 Sun Nov 18 19:12:12 2012 : Info: rlm_sql (sql): Connected new DB handle, #3 Sun Nov 18 19:13:33 2012 : Info: Loaded virtual server inner-tunnel Sun Nov 18 19:13:33 2012 : Info: rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked Sun Nov 18 19:13:33 2012 : Info: rlm_sql (sql): Attempting to connect to root@localhost:/radius Sun Nov 18 19:13:33 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #0 Sun Nov 18 19:13:33 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #0 Sun Nov 18 19:13:33 2012 : Info: rlm_sql (sql): Connected new DB handle, #0 Sun Nov 18 19:13:33 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #1 Sun Nov 18 19:13:33 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #1 Sun Nov 18 19:13:33 2012 : Info: rlm_sql (sql): Connected new DB handle, #1 Sun Nov 18 19:13:33 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #2 Sun Nov 18 19:13:33 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #2 Sun Nov 18 19:13:33 2012 : Info: rlm_sql (sql): Connected new DB handle, #2 Sun Nov 18 19:13:33 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #3 Sun Nov 18 19:13:33 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #3 Sun Nov 18 19:13:33 2012 : Info: rlm_sql (sql): Connected new DB handle, #3 Sun Nov 18 19:13:33 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #4 Sun Nov 18 19:13:33 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #4 Sun Nov 18 19:13:33 2012 : Info: rlm_sql (sql): Connected new DB handle, #4 Sun Nov 18 19:13:33 2012 : Info: Loaded virtual server <default> Sun Nov 18 19:13:33 2012 : Info: Ready to process requests. *Sun Nov 25 06:46:34 2012 : Info: Received HUP signal.* Sun Nov 25 06:46:34 2012 : Info: HUP - Re-reading configuration files Sun Nov 25 06:46:34 2012 : Info: HUP - loading modules Sun Nov 25 06:46:34 2012 : Info: Module: Reloaded module "files" Sun Nov 25 06:46:34 2012 : Info: Module: Reloaded module "attr_filter.access_reject" Sun Nov 25 06:46:34 2012 : Info: Module: Reloaded module "attr_filter.accounting_response" Sun Nov 25 06:46:34 2012 : Info: Module: Reloaded module "pap" Sun Nov 25 06:46:34 2012 : Info: Module: Reloaded module "detail" Sun Nov 25 06:46:34 2012 : Info: Module: Reloaded module "sql_log" Sun Nov 25 06:46:34 2012 : Info: Module: Reloaded module "auth_log" Sun Nov 25 06:46:34 2012 : Info: Module: Reloaded module "suffix" Sun Nov 25 06:46:34 2012 : Info: Module: Reloaded module "radutmp" Sun Nov 25 06:46:34 2012 : Info: Loaded virtual server inner-tunnel Sun Nov 25 06:46:34 2012 : Info: Loaded virtual server <default> Sun Nov 25 18:23:51 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #2 Sun Nov 25 18:23:51 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #2 Sun Nov 25 18:23:51 2012 : Info: rlm_sql (sql): Connected new DB handle, #2 Sun Nov 25 18:23:51 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #1 Sun Nov 25 18:23:51 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #1 Sun Nov 25 18:23:51 2012 : Info: rlm_sql (sql): Connected new DB handle, #1 Sun Nov 25 18:23:51 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #0 Sun Nov 25 18:23:51 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #0 Sun Nov 25 18:23:51 2012 : Info: rlm_sql (sql): Connected new DB handle, #0 Sun Nov 25 18:23:51 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #4 Sun Nov 25 18:23:51 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #4 Sun Nov 25 18:23:51 2012 : Info: rlm_sql (sql): Connected new DB handle, #4 Sun Nov 25 18:24:16 2012 : Info: rlm_sql (sql): Attempting to connect rlm_sql_mysql #3 Sun Nov 25 18:24:16 2012 : Info: rlm_sql_mysql: Starting connect to MySQL server for #3 Sun Nov 25 18:24:16 2012 : Info: rlm_sql (sql): Connected new DB handle, #3 *Sun Dec 2 06:38:05 2012 : Info: Received HUP signal.* Sun Dec 2 06:38:05 2012 : Info: HUP - Re-reading configuration files Why FreeRADIUS receives that HUP signal? Can I disable it , or should I update FreeRADIUS software? Thanks !
substance SUBSTANCE wrote:
Why FreeRADIUS receives that HUP signal? Can I disable it , or should I update FreeRADIUS software? I had the same problem. This version of Freeradius should not be HUP'ed it seems. I found this info by searching the archives. Problem is that Ubuntu and Debian do that by default once a day in /etc/logrotate.d/freeradius. You should be fine by replacing "/etc/init.d/freeradius reload" with "etc/init.d/freeradius restart" in that file. Disclaimer: untested by me. In my case i upgraded to a more recent version. But this if far more hassle.
hth, Michael
Hi Michael, Thank you for the information. Yes there is a row like this: /etc/init.d/freeradius reload > /dev/null I will comment this and replace with the new one: /etc/init.d/freeradius restart > /dev/null I hope that this will work. On Thu, Dec 6, 2012 at 10:40 AM, Michael Weissenbacher <mw@dermichi.com>wrote:
substance SUBSTANCE wrote:
Why FreeRADIUS receives that HUP signal? Can I disable it , or should I update FreeRADIUS software? I had the same problem. This version of Freeradius should not be HUP'ed it seems. I found this info by searching the archives. Problem is that Ubuntu and Debian do that by default once a day in /etc/logrotate.d/freeradius. You should be fine by replacing "/etc/init.d/freeradius reload" with "etc/init.d/freeradius restart" in that file. Disclaimer: untested by me. In my case i upgraded to a more recent version. But this if far more hassle.
hth, Michael - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
But anyway, Why we need this logrotate.d script for freeradius at all? : /var/log/freeradius/*.log { weekly rotate 52 compress delaycompress notifempty missingok postrotate # /etc/init.d/freeradius reload > /dev/null /etc/init.d/freeradius restart > /dev/null endscript } On Thu, Dec 6, 2012 at 12:58 PM, substance SUBSTANCE <substancid@gmail.com>wrote:
Hi Michael,
Thank you for the information.
Yes there is a row like this:
/etc/init.d/freeradius reload > /dev/null
I will comment this and replace with the new one:
/etc/init.d/freeradius restart > /dev/null
I hope that this will work.
On Thu, Dec 6, 2012 at 10:40 AM, Michael Weissenbacher <mw@dermichi.com>wrote:
substance SUBSTANCE wrote:
Why FreeRADIUS receives that HUP signal? Can I disable it , or should I update FreeRADIUS software? I had the same problem. This version of Freeradius should not be HUP'ed it seems. I found this info by searching the archives. Problem is that Ubuntu and Debian do that by default once a day in /etc/logrotate.d/freeradius. You should be fine by replacing "/etc/init.d/freeradius reload" with "etc/init.d/freeradius restart" in that file. Disclaimer: untested by me. In my case i upgraded to a more recent version. But this if far more hassle.
hth, Michael - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 12/06/2012 06:00 AM, substance SUBSTANCE wrote:
But anyway, Why we need this logrotate.d script for freeradius at all? :
Log rotation is necessary to prevent the log files for long running processes from filling up the disk as well as for auditing and archive purposes. Log management is a fundamental aspect of system administration. Virtually all system daemons have log rotation of some type. -- John Dennis <jdennis@redhat.com> Looking to carve out IT costs? www.redhat.com/carveoutcosts/
participants (3)
-
John Dennis -
Michael Weissenbacher -
substance SUBSTANCE