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

    browser gui misery

    Scheduled Pinned Locked Moved General pfSense Questions
    26 Posts 4 Posters 2.4k 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.
    • L
      lyle817
      last edited by

      Negative. Javascript is enabled.

      032dae14-ef0a-401d-8edb-22a169658dab-image.png

      1 Reply Last reply Reply Quote 0
      • B
        bPsdTZpW
        last edited by

        Hmm, is pfSense nearly out of memory? Check output of top at diagnostics/command prompt. Also look for errors in the nginx logs, if you can, at status/system logs/system/GUI Service.

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

          Oh boy, I'm wearing out the refresh button with all this testing, lol.

          Not out of memory. Below is from top output and below that is from the dashboard.

          08e437d9-f435-4f61-a244-9f0386363155-image.png

          3b1250c5-34e8-4a4a-abd2-87806125a3b2-image.png

          For the logs...not seeing a GUI Service option:

          af8f4fc0-8f53-438b-bfc5-09dfc78ec248-image.png

          Thanks for your advice so far!

          B 1 Reply Last reply Reply Quote 0
          • B
            bPsdTZpW @lyle817
            last edited by

            @lyle817 Hmm, it appears that there is something wrong with nginx, which provides pfSense's GUI. There should be "GUI Service" and then "OS Boot" items after "Wireless". Is your pfSense nearly out of disk space (diagnostics/command prompt, then df)?

            stephenw10S 1 Reply Last reply Reply Quote 0
            • L
              lyle817
              last edited by

              Here's the output. All Greek to me!

              47d64e4c-6658-4a75-bc64-48bb5021d1e9-image.png

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

                @bpsdtzpw said in browser gui misery:

                There should be "GUI Service" and then "OS Boot" items after "Wireless".

                Those are relatively recent additions so this is probably an older pfSense version? Upgrade if it's not 2.5.2.

                When you see the login but then nothing it's usually because php is locked up on something. What widgets do you have on your dashboard? Try removing everything except the defaults.

                Steve

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

                  Hi, there. I see that I'm currently on 2.4, so will consider upgrading in hopes it will solve the problem. A little nervous about upgrading since everything else is working perfectly.

                  I only have two default widgets on the Dashboard:

                  5bcfec69-cadf-4aa8-a4f7-4ef80fb26fa2-image.png

                  I have been ignoring a notice on my dashboard that reads:

                  pfSense has detected a crash report or programming bug. Click here for more information.

                  I had assumed that this was an old alert and not relevant. Following the link led me to a "PHP error log". The last two lines of that log here:

                  [01-Jan-2022 16:43:11 Etc/UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 71050266 bytes) in /usr/local/www/csrf/csrf-magic.php on line 161

                  [01-Jan-2022 16:43:15 Etc/UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 142096808 bytes) in /usr/local/www/csrf/csrf-magic.php on line 159

                  stephenw10S 1 Reply Last reply Reply Quote 0
                  • B
                    bPsdTZpW
                    last edited by

                    [01-Jan-2022 16:43:15 Etc/UTC] PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 142096808 bytes) in /usr/local/www/csrf/csrf-magic.php on line 159

                    The CSRF code shouldn't be allocating that much memory. It simply generates and checks a session token that's used to prevent certain attacks on pfSense sessions. What's the content of your /usr/local/www/csrf/csrf-magic.php ?

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

                      Hmmm....not sure how to access that file. Can I do it from the webgui?

                      B 1 Reply Last reply Reply Quote 0
                      • B
                        bPsdTZpW @lyle817
                        last edited by

                        @lyle817 In diagnostics/command prompt/execute shell command enter

                        cat /usr/local/www/csrf/csrf-magic.php
                        

                        Then post the resulting output here.

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

                          thanks! it's a long output. does this link work for you?

                          https://pastebin.com/wvKa9cEP

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

                            @lyle817 said in browser gui misery:

                            I see that I'm currently on 2.4

                            Like actually 2.4.0-release ? That's really old! You are probably hitting some php bug that was fixed years ago.

                            If you're concerned about getting back to a functioning firewall the safest thing to do is install 2.5.2 clean to a new drive and import the existing config. Keep your existing 2.4 install on the existing drive so you can boot from that again if you have to.
                            Unless you're doing something 'custom' or unusual I wouldn't expect an issue. It looks like you only have two interfaces which is a relatively simple setup.

                            Steve

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

                              It's 2.4.4, so "only" a couple years old, but still good advice. A perfect New Years day project!

                              Found these instructions online, look OK?

                              https://withblue.ink/2019/09/14/reinstalling-pfsense-and-restoring-from-backup.html

                              Now just need to check the drawers for a spare drive now...

                              1 Reply Last reply Reply Quote 0
                              • B
                                bPsdTZpW @lyle817
                                last edited by

                                @lyle817 said in browser gui misery:

                                https://pastebin.com/wvKa9cEP

                                It looks like something has created a gigantic page, which it then attempts to protect using csrf_ob_handler(), which then fails because the lines cited in your crash report attempt to replace strings in it with something potentially larger. Looks like a bug or possibly a penetration attempt.

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

                                  <<deep sigh>>

                                  I guess a re-install was in my future anyway, so here I go....

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

                                    I would use the instructions here:
                                    https://docs.netgate.com/pfsense/en/latest/install/index.html

                                    And I'd probably do this to save time:
                                    https://docs.netgate.com/pfsense/en/latest/backup/restore-during-install.html#restore-configuration-from-usb-during-install

                                    Steve

                                    1 Reply Last reply Reply Quote 1
                                    • L
                                      lyle817
                                      last edited by

                                      Woohoo, back in business and my white screen of death is a distant memory!!

                                      9492b04d-78c3-4fc3-a972-ed4604556a3f-image.png

                                      Thank you, thank you @stephenw10 & @bPsdTZpW and Happy New Year!!

                                      B 1 Reply Last reply Reply Quote 2
                                      • B
                                        bPsdTZpW @lyle817
                                        last edited by

                                        @lyle817 And a happy New Year to you as well!

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

                                          Pfsense is working great, but for some reason the upgrade caused my Freenas to get dropped from the network. Now I can't access the Freenas webgui and pings are unsuccessful. It does not appear in the DHCP listing or on the ARP table.

                                          I hooked up a monitor to the Freenas and everything looks fine. Rebooted both Freenas and pfsense a couple times, no joy. On the Freenas console it says, "The web interface is at: 192.168.1.175", but this is a lie.

                                          Not necessarily Freenas experts here, but any ideas why the pfsense upgrade might cause this behavior?

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

                                            Can you ping out from FreeNAS?

                                            Is it showing a link on the NIC?

                                            Traffic between a client on the LAN and the FreeNAS box would go directly, it wouldn't pass through pfSense at all.

                                            Steve

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