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

    pfSense refuses to reboot

    Scheduled Pinned Locked Moved General pfSense Questions
    41 Posts 5 Posters 4.3k 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.
    • hunorH
      hunor @stephenw10
      last edited by

      @stephenw10

      As far as I know everything is okay. Routing, DHCP, etc.

      Yesterday I deleted almost every package and it still gave me the same error. I tried to check if there is any empty service entry in the config file. But nothing.

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        Hmm, yes uninstalling packages and retesting is what I would have done.

        I can only think you have a bad or damaged file somehow. And if that is the case it would be very unusual to see it only affect one thing like that. I would probably reinstall 24.11 clean to be sure when you can.

        hunorH 1 Reply Last reply Reply Quote 0
        • hunorH
          hunor @stephenw10
          last edited by

          @stephenw10 Thank you for your help. I will do a clean install during the weekend.
          I had another thought. When I reinstalled my devices, I used my backup SG-1100. Now I have an N100-based mini PC. May some arm64 vs x86 package confusiosion?

          But a clean install is the best.

          S 1 Reply Last reply Reply Quote 0
          • S
            SteveITS Galactic Empire @hunor
            last edited by

            @hunor It will only download packages from the appropriate repo.

            For grins, you could try reverting to the default configuration. If it still happens it’s not a config file problem. If the problem goes away you could restore your config file one part at a time.

            Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
            When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
            Upvote 👍 helpful posts!

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Nope there should be no issue with an architecture change. The config is the same. The only think you might see is if you have some hardware specific system tunable. But there aren't any by default and they simply wouldn't do anything on different hardware anyway,

              1 Reply Last reply Reply Quote 0
              • hunorH
                hunor @hunor
                last edited by

                I'm unsure if this helps, but I got this when I tried resetting to Factory default.
                Screenshot 2024-12-29 at 9.11.18 AM.jpg

                I ended up wiping the SSD and reinstalling the whole system. I tried to import/restore the backup, but it failed again. So I did it piece-by-piece, without installing packages.

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  It failed the same way? Could not reboot after restoring the config?

                  hunorH 1 Reply Last reply Reply Quote 0
                  • hunorH
                    hunor @stephenw10
                    last edited by

                    @stephenw10

                    When I applied the whole backup file. Yes.
                    When I did piece by piece (I think I left out the packages and a few others) and reinstalled everything package, and reconfigured it. It worked.

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      Huh, so you still ended up with the same packages installed?

                      hunorH 1 Reply Last reply Reply Quote 0
                      • hunorH
                        hunor @stephenw10
                        last edited by

                        @stephenw10 Yes, except I didn't import the old config files.

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          Hmm, well that's bizarre! Are you able to replicate it with an example config at all? This feels a bug that needs squashing.

                          hunorH 1 Reply Last reply Reply Quote 0
                          • hunorH
                            hunor @stephenw10
                            last edited by

                            @stephenw10 Well, I can sanitize my config file and I can post it. Or when I have time I can replace the SSD in my system and "reinstall" it. It is my main router, so I need some time.

                            K 1 Reply Last reply Reply Quote 1
                            • K
                              kravenul @hunor
                              last edited by

                              I upgraded last night to [24.11-RELEASE] on my Netgate 2100, and I encounterred the exact same problem.

                              PHP ERROR: Type: 1, File: /etc/inc/util.inc, Line: 123, Message: Uncaught TypeError: is_process_running(): Argument #1 ($name) must be of type string, null given, called in /etc/inc/service-utils.inc on line 295 and defined in /etc/inc/util.inc:123
                              Stack trace:
                              #0 /etc/inc/service-utils.inc(295): is_process_running()
                              #1 /etc/inc/pkg-utils.inc(1277): is_service_running()
                              #2 /etc/inc/system.inc(2913): stop_packages()
                              #3 /etc/inc/system.inc(2869): system_reboot_cleanup()
                              #4 /usr/local/www/diag_reboot.php(102): system_reboot()
                              #5 {main}
                              thrown @ 2025-03-01 06:17:01

                              Is there anything I can do to find which package has a damaged config causing the php reboot script to crash?

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

                                @kravenul said in pfSense refuses to reboot:

                                and I encounterred the exact same problem

                                It didn't boot ?
                                You have this package installed :

                                c66f7690-69af-4b85-ae04-ae05e3f99e98-image.png

                                and applied all 'Netgate' proposes patches ?

                                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
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Also only affects non-admin users?

                                  K 1 Reply Last reply Reply Quote 0
                                  • K
                                    kravenul @stephenw10
                                    last edited by

                                    @Gertjan I've confirmed System_Patches 2.2.19 is installed, but "No recommended patches for this version". I've also upgraded further to the beta version FreeBSD 15.0-CURRENT #0 plus-RELENG_25_03-n256448-5d69d8519d49 (25.03.b.20250204.0023) in an attempt and hopping to resolve the issue, but it persists. I'm using only official repository packages.

                                    @stephenw10 I am sure the problem originated during the 24.03 to 24.11 upgrade. The diag_reboot.php menu item is the only function experiencing this failure. Executing sudo /etc/rc.initial.reboot in the shell yields the same crash error.

                                    While I can reboot the SG-2100 via SSH or the GUI Command menu (Execute > reboot), a fresh install may be necessary. As this is my primary router, I'd prefer to avoid that if possible. Do you have any further troubleshooting suggestions? Thanks!"

                                    1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      Hmm, you should have System Patches pkg version 2.2.20_1. It has a long list of recommended patches.

                                      But to be clear, if you're logged in as admin the webgui reboot works correctly?

                                      K hunorH 2 Replies Last reply Reply Quote 0
                                      • K
                                        kravenul @stephenw10
                                        last edited by

                                        @stephenw10 I wish I could upgrade the System_Patches unfortunatelly my pfsense is not suggesting any upgrade.2025-03-02 16_42_28-pfs.Packages.png

                                        And no, the Reboot in the webgui doesn't work, is where I get that crash, but I can reboot if I execute a shell command as depicted below 2025-03-02 16_47_11-Clipboard.png

                                        1 Reply Last reply Reply Quote 0
                                        • hunorH
                                          hunor @stephenw10
                                          last edited by

                                          I couldn't figure out the cause; I had to reinstall everything.

                                          The only "remaining" thing that I have with reboot is one problem. When I initiate a restart, sometimes it gets stuck during boot. It continues when I try to connect over serial and hit enter a few times.

                                          I am not sure if that is some hardware/BIOS issue. Because when I have the serial connection on, it never happens. (I have a Topton N100 Mini PC)

                                          K 1 Reply Last reply Reply Quote 0
                                          • K
                                            kravenul @hunor
                                            last edited by

                                            @hunor

                                            I couldn't figure out the cause; I had to reinstall everything.

                                            Regrettably even in my case using pfSense+ on an official Netgate SG-2100, I anticipate a fresh installation may be required. This is unexpected, as I have exclusively utilized the official, stable channel upgrades provided within the Update menu.

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