Re: Turning on sql in accounting - 2 questions

2008-05-18 Thread Alan DeKok
NPY wrote:
 I found out why. NAS is sending the Accounting Request packet 3 times to
 the radius server because
 the radius server is not acknowledging, even though it receives the
 packets.

  So... read the debug log to see why.

 Is there any config that I miss out that causes freeradius not to ack?

  The debug log shows why it's not acking.

 #Firewall is not a problem; I have turned it off.
 
 Please advise.

  Read the debug log.

  When we say read it, we mean READ IT.  A very large number of problems
on this list can be solved simply by reading the debug log.

  Yes, there is a lot of output.  But it's not hard to scan it for
things like failed or warning' or error.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Turning on sql in accounting - 2 questions

2008-05-18 Thread NPY

I found out why.

freeradius is running as uid 'freeradius', so it cannot create files under 
/var/log.

and the Unix module bombed because of that, and therefore no ack.

The debug log was indeed the key :)

Thanks,
-npy

- Original Message - 
From: Alan DeKok [EMAIL PROTECTED]

To: FreeRadius users mailing list freeradius-users@lists.freeradius.org
Sent: Sunday, May 18, 2008 2:04 PM
Subject: Re: Turning on sql in accounting - 2 questions



NPY wrote:

I found out why. NAS is sending the Accounting Request packet 3 times to
the radius server because
the radius server is not acknowledging, even though it receives the
packets.


 So... read the debug log to see why.


Is there any config that I miss out that causes freeradius not to ack?


 The debug log shows why it's not acking.


#Firewall is not a problem; I have turned it off.

Please advise.


 Read the debug log.

 When we say read it, we mean READ IT.  A very large number of problems
on this list can be solved simply by reading the debug log.

 Yes, there is a lot of output.  But it's not hard to scan it for
things like failed or warning' or error.

 Alan DeKok.
-
List info/subscribe/unsubscribe? See 
http://www.freeradius.org/list/users.html




-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Turning on sql in accounting - 2 questions

2008-05-18 Thread NPY

I found out why.

freeradius is running as uid 'freeradius', so it cannot create files under 
/var/log.

and the Unix module bombed because of that, and therefore no ack.

The debug log was indeed the key :)

Thanks,
-npy

- Original Message - 
From: Alan DeKok [EMAIL PROTECTED]

To: FreeRadius users mailing list freeradius-users@lists.freeradius.org
Sent: Sunday, May 18, 2008 2:04 PM
Subject: Re: Turning on sql in accounting - 2 questions



NPY wrote:

I found out why. NAS is sending the Accounting Request packet 3 times to
the radius server because
the radius server is not acknowledging, even though it receives the
packets.


 So... read the debug log to see why.


Is there any config that I miss out that causes freeradius not to ack?


 The debug log shows why it's not acking.


#Firewall is not a problem; I have turned it off.

Please advise.


 Read the debug log.

 When we say read it, we mean READ IT.  A very large number of problems
on this list can be solved simply by reading the debug log.

 Yes, there is a lot of output.  But it's not hard to scan it for
things like failed or warning' or error.

 Alan DeKok.
-
List info/subscribe/unsubscribe? See 
http://www.freeradius.org/list/users.html




-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Turning on sql in accounting - 2 questions

2008-05-17 Thread NPY

2. Why am I getting 3 rows of data in table radacct for each session?


 Read the debug log.  It's likely that the NAS isn't sending a
consistent Acct-Session-Id.



I found out why. NAS is sending the Accounting Request packet 3 times to the 
radius server because

the radius server is not acknowledging, even though it receives the packets.

Is there any config that I miss out that causes freeradius not to ack?

#Firewall is not a problem; I have turned it off.

Please advise.

-npy

- Original Message - 
From: Alan DeKok [EMAIL PROTECTED]

To: FreeRadius users mailing list freeradius-users@lists.freeradius.org
Sent: Friday, May 16, 2008 10:12 PM
Subject: Re: Turning on sql in accounting - 2 questions



NPY wrote:

1. In sites-available/default, I found that 'sql' logging only works in
accounting only if I put it in front of 'unix' under the accounting
section. Why?


 Read the debug log.


2. Why am I getting 3 rows of data in table radacct for each session?


 Read the debug log.  It's likely that the NAS isn't sending a
consistent Acct-Session-Id.

 Alan DeKok.
-
List info/subscribe/unsubscribe? See 
http://www.freeradius.org/list/users.html




-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Turning on sql in accounting - 2 questions

2008-05-16 Thread NPY
Hi,

1. In sites-available/default, I found that 'sql' logging only works in 
accounting only if I put it in front of 'unix' under the accounting section. 
Why?

2. Why am I getting 3 rows of data in table radacct for each session?

-npy
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Turning on sql in accounting - 2 questions

2008-05-16 Thread Alan DeKok
NPY wrote:
 1. In sites-available/default, I found that 'sql' logging only works in
 accounting only if I put it in front of 'unix' under the accounting
 section. Why?

  Read the debug log.

 2. Why am I getting 3 rows of data in table radacct for each session?

  Read the debug log.  It's likely that the NAS isn't sending a
consistent Acct-Session-Id.

  Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html