DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th June 2011
wirasto wirasto is offline
Wirasto Karim
 
Join Date: Apr 2011
Posts: 5
Question radiusd lockf

I run freeradius on my openbsd server. But often not accept request. This occurs when WAIT status on top utils is lockf. And I must restart the freeradius service.

Quote:
4255 _freerad 18 0 4420K 4512K idle lockf 0:04 0.00% radiusd
How to solve it ?. I think not best way to make a cron for restart that service every 5 minutes

Sorry, about my english
Reply With Quote
  #2   (View Single Post)  
Old 9th June 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

Your radiusd server is waiting for a file, or a portion of a file, to be unlocked by another process...most likely another process within the same application. The lockf you are asking about is a syscall. See lockf(3).
Reply With Quote
  #3   (View Single Post)  
Old 9th June 2011
wirasto wirasto is offline
Wirasto Karim
 
Join Date: Apr 2011
Posts: 5
Question

OK. But, how to know what file it is ?
There is some utility for that ?
Reply With Quote
  #4   (View Single Post)  
Old 9th June 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

fstat(1) may be of some assistance, as it can show you open files and the processes that have them open ... but a quick use of Google with "radiusd" or "freeradius" and "lockf" shows many hits, including "LOCKF=..." in configuration files.

I've never used any RADIUS application, nor do I know anything about freeradius. That stated, your symptom indicates either a configuration/provisioning problem or an application problem.
Reply With Quote
  #5   (View Single Post)  
Old 9th June 2011
wirasto wirasto is offline
Wirasto Karim
 
Join Date: Apr 2011
Posts: 5
Wink

"LOCKF=..." in google only startup script for redhat.
Reply With Quote
  #6   (View Single Post)  
Old 9th June 2011
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

I don't know if you have proceeded as recommended in the radiusd.conf file:
Code:
######################################################################
#
#    Read "man radiusd" before editing this file.  See the section
#    titled DEBUGGING.  It outlines a method where you can quickly
#    obtain the configuration you want, without running into
#    trouble.
#
#    Run the server in debugging mode, and READ the output.
#
#        $ radiusd -X
#
#    We cannot emphasize this point strongly enough.  The vast
#    majority of problems can be solved by carefully reading the
#    debugging output, which includes warnings about common issues,
#    and suggestions for how they may be fixed.
#
#    There may be a lot of output, but look carefully for words like:
#    "warning", "error", "reject", or "failure".  The messages there
#    will usually be enough to guide you to a solution.....
There is, in that file, a discussion of thread pool management. I noticed that it states:
Code:
    #  If this limit is ever reached, clients will be LOCKED OUT......
Whatever your problem is -- thread pool consumed, or something else -- it does not appear to be OS related, based on what you've described as your problem. You might consider capturing debugging information as advised by the developers, and, if the output does not help you, you might contact the freeradius users mailing list for advice.

Good luck!

Last edited by jggimi; 9th June 2011 at 03:04 PM. Reason: clarity
Reply With Quote
  #7   (View Single Post)  
Old 11th June 2011
wirasto wirasto is offline
Wirasto Karim
 
Join Date: Apr 2011
Posts: 5
Question

Everything was fine for 6 months. But, I don't know why get problem now
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:13 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick