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

    PfSense 2.2 503 - Service Not Available

    Scheduled Pinned Locked Moved webGUI
    48 Posts 24 Posters 35.6k 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.
    • KOMK
      KOM
      last edited by

      I left it running overnight and came back to a dead GUI and an endless stream of:

      swap_pager_getswapspace(n): failed.

      I lost my VMware heartbeat around 1am and it didn't return for 45 minutes.

      Hard reset allowed me to boot.  The LAN graph is still borked but the NTP widget now seems to be working again.

      1 Reply Last reply Reply Quote 0
      • P
        pgmillon
        last edited by

        Hi,

        I just encontered the same problem today. I'm running pfSense in a VirtualBox on an old computer probably with HDD troubles.
        PHP-FPM could not start.

        I had to reinstall and restore a backup of config.xml.

        I hope not to experience this trouble to often.

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

          Version 2.2.2 direct install (no vm).

          Power cut yesterday and problems here too 503 & 500 errors, ssh wasn't working or dhcp.

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            For those who want to avoid having their filesystem corrupted, here's a quick shell one-liner to add sync to fstab and remount / with sync:

            cp /etc/fstab /etc/fstab.orig; /usr/bin/sed -i '' 's/^\(\/.*[[:space:]]*\/[[:space:]]*ufs[[:space:]]*\)rw\([[:space:]]*[[:digit:]][[:space:]]*[[:digit:]]\)$/\1rw,sync\2/' /etc/fstab; mount -o sync /
            

            (Be sure to copy the entire line)

            This will happen automatically during the 2.2.3 upgrade, and new installs of 2.2.3 will have sync enabled.

            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

            Need help fast? Netgate Global Support!

            Do not Chat/PM for help!

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              I also started a wiki doc about it, with the commands there as well. https://doc.pfsense.org/index.php/Filesystem_Corruption_%28503_errors,_cannot_get_uid%29

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • G
                gcoltharp
                last edited by

                The fix for this is quite simple

                Go to the command prompt…

                vi /etc/group
                add a line at the end using the same syntax as the line above it. Just use wheel as the group name and use a GID number that is not already used in the file.
                Save it and restart the PHP service. The error will go away and you will be golden.

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

                  Another fix will be : get the repaired pfSense version 2.2.4 …

                  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
                  • D
                    doktornotor Banned
                    last edited by

                    @Gertjan:

                    Another fix will be : get the repaired pfSense version 2.2.4 …

                    Sounds definitely better than messing with screwed /etc/group manually.

                    1 Reply Last reply Reply Quote 0
                    • L
                      lastb0isct
                      last edited by

                      I am getting a 500 internal server error with the latest version - 2.2.4 RELEASE.

                      Restarting PHP-FPM solved the issue, but does anyone know the root cause of the 500 error?  I am seeing a lot of older threads coming up with that error and a couple posts above this one Gertjan says that this released fixed the 503 error.

                      Hopefully you have more information.

                      1 Reply Last reply Reply Quote 0
                      • P
                        phil.davis
                        last edited by

                        @lastb0isct:

                        I am getting a 500 internal server error with the latest version - 2.2.4 RELEASE.

                        Restarting PHP-FPM solved the issue, but does anyone know the root cause of the 500 error?  I am seeing a lot of older threads coming up with that error and a couple posts above this one Gertjan says that this released fixed the 503 error.

                        Hopefully you have more information.

                        2.2.4 fixes possible file system corruption - if the corruption was such that the system would boot but PHP would have a problem or… then there might have been 503 issues that now are not a problem.

                        But there are still times when "something happened" - I think this phrase is now a Microsoft trade mark? :) - and PHP can need a kick. e.g. some interaction with bandwidthd has been a cause that has not been turned into a reproducible and then fixable problem yet.

                        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                        1 Reply Last reply Reply Quote 0
                        • L
                          lastb0isct
                          last edited by

                          @phil.davis:

                          @lastb0isct:

                          I am getting a 500 internal server error with the latest version - 2.2.4 RELEASE.

                          Restarting PHP-FPM solved the issue, but does anyone know the root cause of the 500 error?  I am seeing a lot of older threads coming up with that error and a couple posts above this one Gertjan says that this released fixed the 503 error.

                          Hopefully you have more information.

                          2.2.4 fixes possible file system corruption - if the corruption was such that the system would boot but PHP would have a problem or… then there might have been 503 issues that now are not a problem.

                          But there are still times when "something happened" - I think this phrase is now a Microsoft trade mark? :) - and PHP can need a kick. e.g. some interaction with bandwidthd has been a cause that has not been turned into a reproducible and then fixable problem yet.

                          Thanks for the response Phil!

                          1 Reply Last reply Reply Quote 0
                          • S
                            sebastienbo
                            last edited by

                            @lastb0isct:

                            I am getting a 500 internal server error with the latest version - 2.2.4 RELEASE.

                            Restarting PHP-FPM solved the issue, but does anyone know the root cause of the 500 error?  I am seeing a lot of older threads coming up with that error and a couple posts above this one Gertjan says that this released fixed the 503 error.

                            Hopefully you have more information.

                            Same thin here, I run pfsense on a virtual machine (qnap) .

                            This is a clean and new install of 2.2.4 and suddenly 503 !!

                            Luckaly  the rest php-fpm works temporarely

                            Is this something that was supposed to be fixed in this release?

                            (I too have bandwidthd package installed, is it really this package? will it be fixed if I remove it?)

                            1 Reply Last reply Reply Quote 0
                            • V
                              vbentley
                              last edited by

                              I have started getting 503 errors on a 64-bit pfSense 2.2.4 host that was upgraded from 2.2.3.
                              I'm not using bandwidthd.
                              The UPS on this host tripped overnight and I don't think NUT managed to shut the host down properly before the UPS powered off.
                              I am going to rebuild it from a fresh CD later today.

                              Trademark Attribution and Credit
                              pfSense® and pfSense Certified® are registered trademarks of Electric Sheep Fencing, LLC in the United States and other countries.

                              1 Reply Last reply Reply Quote 0
                              • V
                                vbentley
                                last edited by

                                Working fine now after rebuild from CD.

                                Trademark Attribution and Credit
                                pfSense® and pfSense Certified® are registered trademarks of Electric Sheep Fencing, LLC in the United States and other countries.

                                1 Reply Last reply Reply Quote 0
                                • V
                                  vbentley
                                  last edited by

                                  I spoke too soon. The WebGUI operates normally for up to a day after a reboot of the host. If I want to use the GUI after that I usually have to first SSH to the box and select option 16 to restart PHP-FPM.

                                  Trademark Attribution and Credit
                                  pfSense® and pfSense Certified® are registered trademarks of Electric Sheep Fencing, LLC in the United States and other countries.

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

                                    i have same problem but i am usuing pfsense 2.3.2 so can i apply same solution for 2.2.2 ?
                                    thanks

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