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

Can't access the GUI after a reboot

Scheduled Pinned Locked Moved General pfSense Questions
13 Posts 3 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.
  • B
    bazzacad
    last edited by Jan 12, 2023, 3:55 PM

    I was logged into my XG-7100 1U (22.05-RELEASE) last night & I notice the CPU usage was high so I rebooted it. After the reboot, I could no longer log into the GUI. I get a time-out error. The firewall seems to be running fine, just not the GUI. I can SSH into the box & have physical access. I've tried most of the suggestions from here:
    https://docs.netgate.com/pfsense/en/latest/troubleshooting/connect-to-gui.html
    and
    https://docs.netgate.com/pfsense/en/latest/troubleshooting/locked-out.html
    But still no luck. I tried the following:
    Restarted the webConfigurator & PHP-FPM from the council
    HTTP & HTTPS
    Added the EasyRule
    SSH Tunneling with Putty
    When I run sockstat | grep nginx I don't get any results back.

    Any suggestions on how I can gain access to the GUI again?

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Jan 14, 2023, 2:19 PM

      After you have attempted to restart the webconfgurator from the console menu chech the system log to see what errors are shown: cat /var/log/system.log You can also try the nginx log in /var/log/nginx.log

      Steve

      B 1 Reply Last reply Jan 14, 2023, 7:25 PM Reply Quote 0
      • B
        bazzacad @stephenw10
        last edited by Jan 14, 2023, 7:25 PM

        @stephenw10 Thanks for the reply. I was able to get back into the GUI now. But I think I still have issues. From the nginx.log, I found that nginx was failing because /var/run was full.
        I moved the large php-cgi.core to the /tmp folder & then rebooted again & I was able to get back into the GUI. But /dev & /var/dhcp/dev are still 100% full after the reboot.
        46529418-c1fa-4e71-b15b-327d86a153da-image.png

        And now the state table size & CPU usage seem really high & no one is logged in right now.
        57a35723-5493-4e14-86ef-f55ae8c04069-image.png

        S 1 Reply Last reply Jan 14, 2023, 9:10 PM Reply Quote 0
        • S
          SteveITS Galactic Empire @bazzacad
          last edited by Jan 14, 2023, 9:10 PM

          @bazzacad said in Can't access the GUI after a reboot:

          /dev & /var/dhcp/dev are still 100% full

          That's normal: https://docs.netgate.com/pfsense/en/latest/troubleshooting/filesystem-usage.html

          re: states, that would imply a lot of connections. Any chance you're having a DoS?

          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!

          B 1 Reply Last reply Jan 14, 2023, 9:16 PM Reply Quote 0
          • B
            bazzacad @SteveITS
            last edited by Jan 14, 2023, 9:16 PM

            @steveits Thanks again, after posting & looking at the states some more, I realized I had a network monitoring service running in the background on my workstation. I've now turned that off & the states are now back to 0%-1%.

            Was the large php-cgi.core file and filling up /var/run normial?

            S 1 Reply Last reply Jan 14, 2023, 9:30 PM Reply Quote 0
            • S
              SteveITS Galactic Empire @bazzacad
              last edited by Jan 14, 2023, 9:30 PM

              @bazzacad The .core is a core dump indicating the PHP process crashed. Unless you're planning to investigate further you can delete it. (I would just delete it)

              I see /var/run is tmpfs so do you have a 4 MB RAM disk set in System/Advanced/Misc.? That is super small. The 7100 has 8 GB so I'd go with maybe 1 GB for each /tmp and /var if that's what you wanted.

              Plus, I don't recall seeing /var/run mounted separately...? I have only installs with RAM disks to look at, at the moment, but /var/run isn't its own mount on either router I checked.

              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!

              B 1 Reply Last reply Jan 14, 2023, 9:44 PM Reply Quote 0
              • B
                bazzacad @SteveITS
                last edited by Jan 14, 2023, 9:44 PM

                @steveits Here is what I have, I think this was the default.
                89ac6e9f-4504-4951-ad3b-b04fd07144f6-image.png

                B S 2 Replies Last reply Jan 14, 2023, 11:48 PM Reply Quote 0
                • B
                  bazzacad @bazzacad
                  last edited by Jan 14, 2023, 11:48 PM

                  OK I've changed them to 1GB. now
                  c88d6ac1-0ea0-4a67-85e7-03f6cc7db3cd-image.png

                  1 Reply Last reply Reply Quote 0
                  • S
                    SteveITS Galactic Empire @bazzacad
                    last edited by Jan 15, 2023, 12:23 AM

                    @bazzacad Off is the default. You might try to find another df -h on the forums. All I was saying was 4 MB seemed odd but I don’t have a comparison.

                    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
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Jan 15, 2023, 1:31 PM

                      /var/run is always 4MB, that's the expected size. It should only ever have PID files in there so 4MB is plenty.

                      I'm not sure how the core dump ended up in there, it shouldn't have been put there.

                      I would disable ram disks again unless you have a good reason to use them.

                      Steve

                      B 1 Reply Last reply Jan 16, 2023, 5:55 PM Reply Quote 0
                      • B
                        bazzacad @stephenw10
                        last edited by Jan 16, 2023, 5:55 PM

                        @stephenw10 Hmmm, I decreased /var to 128MB, and it's already 75% full again. How can I turn off the RAM disk, but still adjust the size of /var?

                        4d7d132b-ee29-475a-806e-121c412fb058-image.png

                        S 1 Reply Last reply Jan 16, 2023, 6:09 PM Reply Quote 0
                        • S
                          SteveITS Galactic Empire @bazzacad
                          last edited by Jan 16, 2023, 6:09 PM

                          @bazzacad /var is not normally set separately, except apparently /var/run. You can just uncheck the "use RAM disks" option above to not use a RAM disk. Otherwise you have to set a size, and it needs to be big enough for whatever pfSense needs, which will vary by logging and package usage.

                          Sorry for going down the wrong path on /var/run, I didn't remember that was tmpfs and while I did try to search for a "df -h" output online I didn't find one with that.

                          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
                          • S
                            stephenw10 Netgate Administrator
                            last edited by Jan 17, 2023, 1:23 AM

                            Yeah if you just disable RAM disks there's no restriction on the size of /var or /tmp.

                            1 Reply Last reply Reply Quote 0
                            13 out of 13
                            • First post
                              13/13
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                              This community forum collects and processes your personal information.
                              consent.not_received