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

    Bootsequence hangs at „Synchronizing User Settings“

    Scheduled Pinned Locked Moved General pfSense Questions
    5 Posts 2 Posters 1.0k Views
    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.
    • K
      Knolli
      last edited by Knolli

      I currently have a problem with my pfsense in version 2.4.5-RELEASE-p1. I only use the local database for User login. When I restart the server the boot process hangs at "Synchronizing user settings". At this position it hangs for about 12 minutes. We have about 500 users. In the past the booting has worked without problems. Is there a debug mode or a log where I can see what the problem is? Or does anyone have an idea how I can fix the problem ?

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @Knolli
        last edited by Gertjan

        @Knolli said in Bootsequence hangs at „Synchronizing User Settings“:

        Is there a debug mode or a log where I can see what the problem is? Or does anyone have an idea how I can fix the problem ?

        I tend to say : yes.

        Consider :

        File /etc/rc.bootup :

        .....
        echo "Synchronizing user settings...";
        local_reset_accounts();
        echo "done.\n";
        .....
        

        So everything happens in the function "local_reset_accounts();".

        It's here : /etc/inc/auth.inc :

        .....
        function local_reset_accounts() {
                global $debug, $config;
        
                /* remove local users to avoid uid conflicts */
                $fd = popen("/usr/sbin/pw usershow -a", "r");
                if ($fd) {
                        while (!feof($fd)) {
        ......
        

        If you set

                 $debug = true;
        

        right after the

                global $debug, $config;
        

        line there will be more output during the boot.

        The function "function local_reset_accounts()" throws out every user except 'admin'.
        All groups are also discarded.
        Then they are put back in from the config.xml file.
        Most of the work is done by the native command line tools/programs like 'pw' etc.

        I didn't test this. But believe me, settings $debug = true; won't "kill" you system.

        Check also your file system (the the recent Youtube Netgate fsck check video) - and check if disk space is ok.

        500 users on pfSense : your using a captive portal ?
        What about using a FreeRadius solution (externalize the user handling) ?

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 1
        • K
          Knolli
          last edited by

          Great, that was the solution.
          Now, the system works fine.
          Thanks a lot.

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan
            last edited by

            You saw the issue ?
            What was it ?

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • K
              Knolli
              last edited by

              I‘m not quite sure. I made the entry and the system didn‘t hang at this point anymore. I have removed the entry after afterwards and the system is running properly. I have consulted my programmer about this, he assumes that this debug mode might have caused the file to be recompiled. Can this be the solution?

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.