Re: Strange error log: NAS restarted

2010-01-06 Thread Dinh Pham Cong
, Jan 6, 2010 at 3:38 PM, Alan DeKok al...@deployingradius.comwrote: Dinh Pham Cong wrote: Thanks, I already created a file named radutmp but I still see no message there. The message Info: rlm_radutmp: NAS ggsn-add1 restarted (Accounting-On packet seen) appears again and again. Does

Re: Radiusd process exited without notice

2010-01-05 Thread Dinh Pham Cong
Correct me if I am wrong. As I read from http://www.faqs.org/rfcs/rfc2139.html, when Acct-Session-Time is zero, user who is associated with such a session has no service: + The accounting start packet and stop packet are sent at nearly the same time. It may be a result of an access denial or

Strange error log: NAS restarted

2010-01-05 Thread Dinh Pham Cong
Hi all, I noticed that radius.log is filled with a lot of messages as follows: Wed Jan 6 10:54:35 2010 : Info: rlm_radutmp: NAS ggsn-add1 restarted (Accounting-On packet seen) Wed Jan 6 10:54:35 2010 : Error: rlm_radutmp: Error accessing file /srv/radius/var/log/radius/radutmp: No such file or

Re: Strange error log: NAS restarted

2010-01-05 Thread Dinh Pham Cong
not be logged? Regards, Dinh 2010/1/6 EasyHorpak.com i...@easyhorpak.com Dinh Pham Cong wrote: Hi all, I noticed that radius.log is filled with a lot of messages as follows: Wed Jan 6 10:54:35 2010 : Info: rlm_radutmp: NAS ggsn-add1 restarted (Accounting-On packet seen) Wed Jan 6 10

Radiusd process exited without notice

2009-12-20 Thread Dinh Pham Cong
Hi all, I noticed that my radiusd process exited silently this morning without any notice before I must start it manually at Mon Dec 21 10:42:23 2009 as you can see in the below log messages. Besides, no crash is recorded in /var/log/messages. Any recommendation to troubleshoot this problem is

Warning stop packet with zero session length and the difference between number of Radius requests and responses

2009-12-18 Thread Dinh Pham Cong
Hi all, I set up a FreeRadius server to receive accounting start/stop packet from GGSN. Then FreeRadius will save the information into MySQL database. However, I see that there is a different between the number of received packets and the Radius response to GGSN [r...@radiusd2 sbin]# ./radmin -e

Dropped packet and Radius stats

2009-12-18 Thread Dinh Pham Cong
Hi all, My Radius server has received a lot of invalid packets. Those packets are dropped but the stats shows that no packet is dropped. Is it a bug? Fri Dec 18 17:54:30 2009 : Error: Received Accounting-Request packet from 10.0.41.138 with invalid signature! (Shared secret is incorrect.)

Re: FreeRadius 2.7 virtual memory

2009-12-16 Thread Dinh Pham Cong
Hi Alan The version I am using is 2.1.7 Regards, Dinh On Wed, Dec 16, 2009 at 3:24 PM, Alan DeKok al...@deployingradius.comwrote: Dinh Pham Cong wrote: Hi all, My Radiusd seems to take a lot of virtual memory. Here is what shows up in top command 4799 mysql 15 0 2606m 697m

Help on debugging Freeradius

2009-12-16 Thread Dinh Pham Cong
Hi all, My Freeradiusd 2.1.7 got crashed a lot of times today so I decided to run radiusd in gdb /etc/init.d/radiusd stop # gdb /usr/local/sbin/radiusd GNU gdb Fedora (6.8-27.el5) Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later

Re: Help on debugging Freeradius

2009-12-16 Thread Dinh Pham Cong
(argc=value optimized out, argv=0x3ec) at radiusd.c:398 Does it have any implication on Radius crashes that happened before? Regards, Dinh On Wed, Dec 16, 2009 at 4:13 PM, Dinh Pham Cong din...@vega.com.vn wrote: Hi all, My Freeradiusd 2.1.7 got crashed a lot of times today so I decided

FreeRadius 2.1.7 crashes

2009-12-16 Thread Dinh Pham Cong
Hi all, I had run FreeRadius 2.1.7 in gdb and got this core dump Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x2aac59f0e940 (LWP 23452)] 0x00309a85306b in ?? () from /usr/lib64/mysql/libmysqlclient_r.so.15 (gdb) bt #0 0x00309a85306b in ?? () from

FreeRadius 2.7 virtual memory

2009-12-15 Thread Dinh Pham Cong
Hi all, My Radiusd seems to take a lot of virtual memory. Here is what shows up in top command 4799 mysql 15 0 2606m 697m 3616 S 50.6 4.3 31:46.85 mysqld 14959 root 15 0 10.1g 46m 1456 S 11.1 0.3 1:24.67 radiusd Do you think that I have kind of abnomal operations here?

FreeRadius crashed on accounting load tests with 1000 concurrent clients

2009-11-10 Thread Dinh Pham Cong
Hi all, I am using FreeRADIUS Version 2.1.7, CentOS 5.3 64 bit, MySQL 5.0.77 (max connections 3000) on a 16-core, 16GB RAM server. This is my radiusd.conf max_request_time = 10 cleanup_delay = 5 max_requests = 5120 start_servers = 1024 max_servers = 3000 max_spare_servers = 3000

Re: FreeRadius crashed on accounting load tests with 1000 concurrent clients

2009-11-10 Thread Dinh Pham Cong
Hi Alan, On Tue, Nov 10, 2009 at 5:35 PM, Alan DeKok al...@deployingradius.comwrote: Dinh Pham Cong wrote: start_servers = 1024 max_servers = 3000 max_spare_servers = 3000 That's a little high. I saw that when 1000 client was created at the same time and send requests to Radius

Re: FreeRadius crashed on accounting load tests with 1000 concurrent clients

2009-11-10 Thread Dinh Pham Cong
Hi Alan, On Tue, Nov 10, 2009 at 8:15 PM, Alan DeKok al...@deployingradius.comwrote: FreeRADIUS does a mix of selects, inserts and updates for accounting. It may be that the DB can only handle 1000 transactions/s with that mix. See also sqltrace config in sql.conf. You can try the

Re: FreeRadius crashed on accounting load tests with 1000 concurrent clients

2009-11-10 Thread Dinh Pham Cong
be a bug in FreeRadius that makes it impossible to work in very high load environment: thread deadlock or kind of race condition??? Have someone got into this problem? Thanks Dinh On Tue, Nov 10, 2009 at 10:50 PM, Dinh Pham Cong din...@vega.com.vn wrote: Hi Alan, On Tue, Nov 10, 2009 at 8:15 PM

Re: FreeRadius crashed on accounting load tests with 1000 concurrent clients

2009-11-10 Thread Dinh Pham Cong
Hi Alan, On Tue, Nov 10, 2009 at 11:25 PM, Alan DeKok al...@deployingradius.comwrote: But if you follow the instructions in doc/bugs, you will be able to give us the data we need to FIX the crash. Thanks Alan. I am reviewing my system to see if there is any wrong in our system settings that

Re: FreeRadius crashed on accounting load tests with 1000 concurrent clients

2009-11-10 Thread Dinh Pham Cong
Hi Michael, Yes I have enabled MySQL slow query log for all queries that take more than 1s for execution. I have found 2 slow queries only (INSERT) in one server and no slow query on the other. Because I installed MySQL using a rpm package so I can not patch it with microslow patch to enable