Error: Discarding duplicate request from client
hello I am getting lot of error messages in radius logs saying Fri Nov 3 14:26:03 2017 : Error: Discarding duplicate request from client CCR port 59350 - ID: 202 due to unfinished request 12 in component post-auth module exec. Fri Nov 3 14:26:03 2017 : Error: Discarding duplicate request from client CCR port 36510 - ID: 205 due to unfinished request 17 in component post-auth module exec. Fri Nov 3 14:26:03 2017 : Error: Discarding duplicate request from client CCR port 33750 - ID: 207 due to unfinished request 18 in component post-auth module exec. Fri Nov 3 14:26:03 2017 : Error: Discarding duplicate request from client CCR port 41954 - ID: 206 due to unfinished request 19 in component post-auth module exec. Fri Nov 3 14:26:03 2017 : Error: Discarding duplicate request from client CCR port 60427 - ID: 209 due to unfinished request 21 in component post-auth module exec. Fri Nov 3 14:26:03 2017 : Error: Discarding duplicate request from client CCR port 36208 - ID: 210 due to unfinished request 22 in component post-auth module exec. Fri Nov 3 14:26:03 2017 : Error: Discarding duplicate request from client CCR port 57888 - ID: 211 due to unfinished request 24 in component post-auth module exec. Fri Nov 3 14:26:03 2017 : Error: Discarding duplicate request from client CCR port 59072 - ID: 213 due to unfinished request 26 in component post-auth module exec. Fri Nov 3 14:26:03 2017 : Error: Discarding duplicate request from client CCR port 45146 - ID: 214 due to unfinished request 32 in component post-auth module exec. When users are trying to loh=gin in the NAS I can see in NAS logs that radius is timing out, what could be the reason for this? Thanks & regards Mankomal Singh Krauss International P: +91-9910416231 E: ms@kc-india.com PS: Send all bulk emails to sanman.krauss@gmail.com ONLY
On Nov 3, 2017, at 5:47 AM, Krauss International <sanman.krauss@gmail.com> wrote:
I am getting lot of error messages in radius logs saying
Fri Nov 3 14:26:03 2017 : Error: Discarding duplicate request from client CCR port 59350 - ID: 202 due to unfinished request 12 in component post-auth module exec.
The exec module is running a script, and that script is taking a long time.
When users are trying to loh=gin in the NAS I can see in NAS logs that radius is timing out, what could be the reason for this?
You configured the server to run a script, and the script takes a long time. Fix that. If the script takes more than 1ms to run, it's wrong. If it takes 10s to run, then the script is very, very, wrong. Fix the script. It's breaking the server. Alan DeKok.
Alan, Thanks for your reply I have been searching for a resolution on this How do I get to know the amount of time script is taking to execute? Also, could it be a problem that the script is in perl and taking long time? Thanks & regards Mankomal Singh Krauss International P: +91-9910416231 E: ms@kc-india.com PS: Send all bulk emails to sanman.krauss@gmail.com ONLY On Fri, Nov 3, 2017 at 3:28 PM, Alan DeKok-2 [via FreeRADIUS] < ml+s1045715n5747898h61@n5.nabble.com> wrote:
On Nov 3, 2017, at 5:47 AM, Krauss International <[hidden email] <http:///user/SendEmail.jtp?type=node&node=5747898&i=0>> wrote:
I am getting lot of error messages in radius logs saying
Fri Nov 3 14:26:03 2017 : Error: Discarding duplicate request from client CCR port 59350 - ID: 202 due to unfinished request 12 in component post-auth module exec.
The exec module is running a script, and that script is taking a long time.
When users are trying to loh=gin in the NAS I can see in NAS logs that radius is timing out, what could be the reason for this?
You configured the server to run a script, and the script takes a long time.
Fix that.
If the script takes more than 1ms to run, it's wrong. If it takes 10s to run, then the script is very, very, wrong.
Fix the script. It's breaking the server.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
------------------------------ If you reply to this email, your message will be added to the discussion below: http://freeradius.1045715.n5.nabble.com/Error-Discarding- duplicate-request-from-client-tp5747897p5747898.html To unsubscribe from FreeRADIUS, click here <http://freeradius.1045715.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2740692&code=c2FubWFuLmtyYXVzc0BnbWFpbC5jb218Mjc0MDY5MnwtMTI4MjExMDMwOA==> . NAML <http://freeradius.1045715.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
On 20/11/2017, at 5:17 PM, Krauss International <sanman.krauss@gmail.com> wrote:
Alan, Thanks for your reply I have been searching for a resolution on this How do I get to know the amount of time script is taking to execute? Also, could it be a problem that the script is in perl and taking long time?
That is a very broad question, and there isn’t any debug info provided to aid even a guess at why it’s taking it a long time. Running a perl script through the exec module sounds like a great way to slow down the server though, loading the perl interpreter every time can’t be fast. Any reason you’re not running it in rlm_perl? This would keep your perl interpreter and script in memory in the freeradius process, and make things a lot quicker than calling it with exec.
Thanks & regards Mankomal Singh Krauss International P: +91-9910416231 E: ms@kc-india.com <mailto:ms@kc-india.com> PS: Send all bulk emails to sanman.krauss@gmail.com <mailto:sanman.krauss@gmail.com> ONLY
On Fri, Nov 3, 2017 at 3:28 PM, Alan DeKok-2 [via FreeRADIUS] < ml+s1045715n5747898h61@n5.nabble.com <mailto:ml+s1045715n5747898h61@n5.nabble.com>> wrote:
On Nov 3, 2017, at 5:47 AM, Krauss International <[hidden email] <http:///user/SendEmail.jtp?type=node&node=5747898&i=0 <http://user/SendEmail.jtp?type=node&node=5747898&i=0>>> wrote:
I am getting lot of error messages in radius logs saying
Fri Nov 3 14:26:03 2017 : Error: Discarding duplicate request from client CCR port 59350 - ID: 202 due to unfinished request 12 in component post-auth module exec.
The exec module is running a script, and that script is taking a long time.
When users are trying to loh=gin in the NAS I can see in NAS logs that radius is timing out, what could be the reason for this?
You configured the server to run a script, and the script takes a long time.
Fix that.
If the script takes more than 1ms to run, it's wrong. If it takes 10s to run, then the script is very, very, wrong.
Fix the script. It's breaking the server.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
------------------------------ If you reply to this email, your message will be added to the discussion below: http://freeradius.1045715.n5.nabble.com/Error-Discarding- <http://freeradius.1045715.n5.nabble.com/Error-Discarding-> duplicate-request-from-client-tp5747897p5747898.html To unsubscribe from FreeRADIUS, click here <http://freeradius.1045715.n5.nabble.com/template/NamlServlet.jtp?macro=unsub... <http://freeradius.1045715.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2740692&code=c2FubWFuLmtyYXVzc0BnbWFpbC5jb218Mjc0MDY5MnwtMTI4MjExMDMwOA==>> . NAML <http://freeradius.1045715.n5.nabble.com/template/NamlServlet.jtp?macro=macro... <http://freeradius.1045715.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>>
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html <http://www.freeradius.org/list/users.html>
On Nov 19, 2017, at 11:17 PM, Krauss International <sanman.krauss@gmail.com> wrote:
Alan, Thanks for your reply I have been searching for a resolution on this How do I get to know the amount of time script is taking to execute?
Run it in debug mode and look at it. Or, instrument your script using standard Unix tools.
Also, could it be a problem that the script is in perl and taking long time?
That's what I said. Use rlm_perl. It will help a little bit. But... your script is probably doing lots of complex things. That's wrong. In the most extreme case, your script should take no more than 1ms to run. If it *ever* takes longer than that, fix it. Alan DeKok.
participants (3)
-
Alan DeKok -
Krauss International -
Nathan Ward