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

    After upgrade 502 Bad Gateway

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    19 Posts 6 Posters 2.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.
    • ivorI
      ivor
      last edited by

      marjohn56 - unless I'm wrong the issue is fixed in the latest pfBlockerNG pacakge. There's no need to add any custom patches.

      Need help fast? Our support is available 24/7 https://www.netgate.com/support/

      1 Reply Last reply Reply Quote 0
      • ?
        Guest
        last edited by

        He said in an earlier message the removing pfblocker did not solve the issue

        1 Reply Last reply Reply Quote 0
        • ivorI
          ivor
          last edited by

          hudriwudri5 - please try a clean re-install. Latest pfBlockerNG package update should not cause any 502 errors.

          Need help fast? Our support is available 24/7 https://www.netgate.com/support/

          1 Reply Last reply Reply Quote 0
          • ivorI
            ivor
            last edited by

            @marjohn56:

            He said in an earlier message the removing pfblocker did not solve the issue

            Some setting might be left. It also might not be related to pfBlockerNG but some other issue, update gone bad, but since we have little or no information, clean re-install is the best option.

            Need help fast? Our support is available 24/7 https://www.netgate.com/support/

            1 Reply Last reply Reply Quote 0
            • ?
              Guest
              last edited by

              There were 502 errors that were not pfblocker related, but you know best. I'll stay out of it and let you sort the issue out.

              Bye,,, and thanks for all the fish.

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

                I am also seing this issue after updating to 2.4.2_1 (from 2.4.2)

                Only thing that helps is rebooting.  Then issue recurs after a few minutes.

                Restarting PHP-PFM does not help. 
                Starting php-pfm indicates 'Bus error (core dumped)
                Re-executing Restart PHP-PFM then indicates that pidfile cannon be opened when attempting to kill php-pfm, since php-pfm didn't restart.

                After Reboot firewall will indicate that there was crash. 
                Crash report was submitted.

                Initially, this appeared to also affect OpenVPN Connections, but after reboot OpenVPN connections have remained online, though web interface is inaccessible.

                1 Reply Last reply Reply Quote 0
                • H
                  hudriwudri5
                  last edited by

                  I will try it in this order:
                  1.) reinstall pfBlockerNG
                  2.) (I've set Keep settings) therefore if it will not work I will deinstall pfBlockerNG without keeping Settings and reinstall it
                  3.) update to developer branch
                  4.) clean reinstall

                  @lasocean:
                  For me it works with restart PHP-FPM
                  Then I can click exaktly one time a link - the seconds one hangs. I restart PHP-FPM and I can go forward  - step by step ;-)

                  I will post the result of my testing

                  Thank's a lot

                  edit:
                  After Step 1 now it seems to work!!!

                  Thank you all!

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

                    Just a note…
                    I am not using pfBlockerNG addon, so that shouldn't be an issue.

                    No problem until actual login to Web Interface.
                    Can refresh login page any number of times without actually logging in.
                    Gonna see how far I can get after logging in a bit.

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

                      I don't have pfblocker myself.  My 502 errors seem to start after trying to restart a service, such as bandwidthd (I was trying to get Postgres working before I realized that postgres support isn't available in pfsense's bandwidthd presently.)

                      I'll look into applying that patch if I continue having issues, so far it's been stable for a few days, but possibly because I've only been looking at things rather than restarting services

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

                        I don't know if it's related, but…
                        I decided not to login to the WebConfigurator until after most users had left for the day.
                        Immediately after logging in, I removed OpenVPN Widget from the Dashboard, just in case it's something on the dashboard that causing an issue.
                        I believe that's the only widget I had added to the Dashboard.  But, it's not a recent addition.
                        I have been able to view different pages without the running into Bad Gateway issue, so far.

                        All this may be irrelevant.
                        I will post an update tomorrow re recurrence of the issue.

                        We have had a couple glitches with provider for WAN link in the last couple days.  Dunno if WAN going down or coming back online triggered issue.

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

                          Update
                          Sometimes receive Bad Gateway Error, but simply refreshing the page will have it load correctly.
                          If Bad Gateway persists after multiple Refresh attempts, restarting PHP-PFM seems to help.

                          Browsing and OpenVPN Connections seem to be having difficulty at times.
                          Sometimes restarting the system helps for a while.

                          Only started seeing these issues since Patch 1 Update for 2.4.2

                          1 Reply Last reply Reply Quote 0
                          • C
                            chrcoluk
                            last edited by

                            https://forum.pfsense.org/index.php?topic=110515.msg766964#msg766964

                            More information on what me and Martin worked on, I am hoping my patch which Martin submitted on github got accepted, but maybe it didnt, as the patch should resolve this issue for anyone using pfsense on hardware with at least 1 gig of ram.

                            –edit--

                            It has been approved 2 days ago.

                            https://github.com/pfsense/pfsense/pull/3881
                            https://redmine.pfsense.org/issues/8125

                            pfSense CE 2.7.2

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