Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    FreeRADIUS 2 not starting: gdbm fatal: Unexpected end of file

    pfSense Packages
    2
    3
    1431
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      michaelschefczyk last edited by

      Dear All,

      For a number of months, I am running four installations of pfsense (current version) on Intel(R) Atom(TM) CPU C2758 @ 2.40GHz servers. I am using a number of packages including freeradius2.

      On one of the machines, freeradius2 suddenly stopped working. I did check the configuration, I did uninstall and reinstall the package and I did uninstall, locate related files via find / -iname "freeradius" and deleted all files via rm -r … before reinstalling freeradius2. Unfortunately, none of these measures did help.

      As the system log was not very telling, I did start manually via /usr/local/etc/rc.d/radiusd.sh start and got the following response:

      $ /usr/local/etc/rc.d/radiusd.sh start
      Starting radiusd.
      gdbm fatal: Unexpected end of file

      A similar issue was posted by "Als" on March 21, 2014 (https://forum.pfsense.org/index.php?topic=77273.0). Unfortunately, no one replied.

      To me, this looks like a database issue, possibly connected to python.

      Can someone point me to how to repair this or do I need to reinstall the server from scratch?

      Regards,

      Michael Schefczyk

      1 Reply Last reply Reply Quote 0
      • A
        Als last edited by

        I solved.
        Please check files in /var/log/radacct/timecounter/. It musts by binary. If not, simple remove it.

        1 Reply Last reply Reply Quote 0
        • M
          michaelschefczyk last edited by

          Dear Als,

          Thank you very much! Based on your freedback, I took a slightly more radical approach, since I found freeradius would not start with one of the accounting databases missing. I deleted /var/log/radacct and reinstalled the package. Then, things started to work, at least for the time being.

          This is much better then reinstalling the entire system without knowing when the same thing might happen again.

          As this is a backup system in a CARP setting, I could imagine that things go sour when the backup system switches back to is usual backup function after having been the master for a short time.

          Regards,

          Michael

          1 Reply Last reply Reply Quote 0
          • First post
            Last post