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

    New 502 Bad Gateway

    2.4 Development Snapshots
    67
    281
    197.1k
    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.
    • ?
      Guest
      last edited by

      @BBcan177:

      … and not a creature was stirring, not even a mouse...

      Any additional feedback on the PHP patch posted above would be appreciated! Thanks.

      … The stockings were hung by the chimney with care

      You only hear when it doesn't work, not when it does.. ;)

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

        Hey everyone,
        For what it's worth, I found this thread a couple weeks ago, shortly after I installed pfblockerng and configured DNSBL. I had been running my pfsense box for about a year without a single issue, but after setting up pfblockerng and DNSBL, I'd lose GUI and console mgmt access within 24 hours, the only fix being a hard reboot.
        I installed PiBa's patch (https://github.com/PiBa-NL/FreeBSD-ports/commit/1766713b26c8f388ad6e7909b2e971f7d74cdfea.patch), and my pfsense box has been running for over 10 days now without a single hiccup. Immediately after installing the patch I noticed that my memory usage dropped from about 50% of my 1GB of RAM to about 30%, and it's remained there ever since.
        I did not install chrcoluk's patch, since I didn't want to muddy the waters during my testing. It seems it wasn't needed, at least not in my case. Big thank you to PiBa and all the other folks who helped get this fixed, you guys are awesome!

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

          @minterwoot:

          Hey everyone,
          For what it's worth, I found this thread a couple weeks ago, shortly after I installed pfblockerng and configured DNSBL. I had been running my pfsense box for about a year without a single issue, but after setting up pfblockerng and DNSBL, I'd lose GUI and console mgmt access within 24 hours, the only fix being a hard reboot.
          I installed PiBa's patch (https://github.com/PiBa-NL/FreeBSD-ports/commit/1766713b26c8f388ad6e7909b2e971f7d74cdfea.patch), and my pfsense box has been running for over 10 days now without a single hiccup. Immediately after installing the patch I noticed that my memory usage dropped from about 50% of my 1GB of RAM to about 30%, and it's remained there ever since.
          I did not install chrcoluk's patch, since I didn't want to muddy the waters during my testing. It seems it wasn't needed, at least not in my case. Big thank you to PiBa and all the other folks who helped get this fixed, you guys are awesome!

          I can confirm. 12 days without any problems so far!

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

            Thanks for the feedback, fyi: pfBlocker 2.1.2_2 includes my patch.

            @minterwoot
            The reduced memory usage i cant really explain with the changes from my patch.. Maybe it got a bit more efficient but wouldn't expect that to be noticeable by memory usage..

            1 Reply Last reply Reply Quote 0
            • J
              JeffV
              last edited by

              I haven't had any issues on any of my boxes for quite a while now on pfsense 2.4.2 and the latest pfblockerng.  I was waiting long enough to say with some level of confidence that this issue appears to be resolved but I think it may finally be safe enough to actually say it.  Hopefully, that doesn't jinx me!

              Much thanks to BBCan117 and everyone else that had a hand in troubleshooting and resolving this.  pfblockng is a wonderful tool and I'm happy to be able to use it again without concern.

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

                @PiBa:

                Thanks for the feedback, fyi: pfBlocker 2.1.2_2 includes my patch.

                PackageManager shows 2.1.2_1 as the latest available. When will  2.1.2_2 be available ?

                I've been running with the quick and dirty fix mentioned earlier in this thread for several weeks now without any 502 happenings . I don't want to go through all the trouble we had at three sites one more time because of the 502 problem .. I must know for sure.

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

                  For those running 2.4.3, seems it's already running 2.1.2_2

                  Nice one!

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

                    Its available on 2.3.5:
                    https://files00.netgate.com/pfSense_v2_3_5_i386-pfSense_v2_3_5/All/pfSense-pkg-pfBlockerNG-2.1.2_2.txz
                    https://files00.netgate.com/pfSense_v2_3_5_amd64-pfSense_v2_3_5/All/pfSense-pkg-pfBlockerNG-2.1.2_2.txz
                    And on 2.4.2:
                    https://files00.netgate.com/pfSense_v2_4_2_amd64-pfSense_v2_4_2/All/pfSense-pkg-pfBlockerNG-2.1.2_2.txz

                    1 Reply Last reply Reply Quote 0
                    • mtarboxM
                      mtarbox
                      last edited by

                      I was running 2.4.2 on UFS, and decided to upgrade to ZFS with the config.xml pull.
                      Prior to the upgrade, I was using maybe 40% memory, and now I am up to 70%.
                      Still does what pfsense is designed to do.
                      How can I help out?

                      ![Screenshot from 2017-12-22 17-08-58.png](/public/imported_attachments/1/Screenshot from 2017-12-22 17-08-58.png)
                      ![Screenshot from 2017-12-22 17-08-58.png_thumb](/public/imported_attachments/1/Screenshot from 2017-12-22 17-08-58.png_thumb)
                      ![Screenshot from 2017-12-22 17-05-14.png](/public/imported_attachments/1/Screenshot from 2017-12-22 17-05-14.png)
                      ![Screenshot from 2017-12-22 17-05-14.png_thumb](/public/imported_attachments/1/Screenshot from 2017-12-22 17-05-14.png_thumb)

                      Si vis pacem, para pactum.

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

                        Not sure if I should open a new thread but my firewall went sideways about an hour ago, running latest released along with PFblocker, ntopng, autoconfigbackup and openvpn.  Kids texted me that the internet was down and got home and when I tried to connect received the 502 bad gateway. I am running latest packages for those that are listed.

                        I haven't pulled the logs completely yet but see this over and over  - Could not connect to /var/run/php-fpm.socket.

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

                          I'm still getting 502 bad gateway error's, they are not often but had my second instance in a month.  Attached file contains the debugging steps that has been requested. Restarting PHP-FPM did not resolve the issue, I had to reboot in order to correct my issues.  Would like to get this corrected since I've never had the issue in the past.

                          Let me know if you have any questions.

                          trouble.txt

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

                            I also still get the Bad Gateway error once a day or so. I will attach the log the next time it occurs.

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

                              next time it occurs, login to the shell and get a list of the processes running, ideally in verbose format.

                              pfSense CE 2.7.2

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

                                I am, for the first time, seeing 502 Bad Gateway. Upgraded today to the latest snapshot on my SG-3100.
                                I do still have internet service so I will wait a bit until someone says they have an idea.

                                Restarted via console, loaded very latest snapshot and now waiting to see if the issue pops up again.

                                As of 8PM, its an issue again. I guess I need to revert to a previous release and wait a bit for the snapshots.

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