• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.
  • D
    dstroot
    last edited by Nov 29, 2017, 3:26 AM

    @dstroot:

    I think the "Can NOT be reverted cleanly" through me off.  I just checked and mine and got the results you show so I applied the patch and it applied successfully.  I will report if the 502s go away.  Cheers!

    Reporting back - have not had any issues since the patch was applied.  Cheers!!!

    1 Reply Last reply Reply Quote 0
    • F
      fortrash
      last edited by Nov 30, 2017, 5:56 AM

      I had a issue this morning. The only difference was that the update for pfblocker has been enabled again.
      Webgui and internal network was reachable.

      Do you run pfblocker with enabled update? How often do you update?

      Thanks,

      @dstroot:

      @dstroot:

      I think the "Can NOT be reverted cleanly" through me off.  I just checked and mine and got the results you show so I applied the patch and it applied successfully.  I will report if the 502s go away.  Cheers!

      Reporting back - have not had any issues since the patch was applied.  Cheers!!!

      1 Reply Last reply Reply Quote 0
      • B
        BBcan177 Moderator
        last edited by Dec 2, 2017, 4:28 PM

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

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

        "Experience is something you don't get until just after you need it."

        Website: http://pfBlockerNG.com
        Twitter: @BBcan177  #pfBlockerNG
        Reddit: https://www.reddit.com/r/pfBlockerNG/new/

        1 Reply Last reply Reply Quote 0
        • ?
          Guest
          last edited by Dec 2, 2017, 11:48 PM

          @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 Dec 5, 2017, 10:43 PM

            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 Dec 6, 2017, 6:12 PM

              @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 Dec 6, 2017, 6:58 PM

                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 Dec 8, 2017, 2:34 AM

                  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 Dec 10, 2017, 2:35 AM

                    @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 Dec 10, 2017, 8:34 AM

                      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 Dec 10, 2017, 2:12 PM

                        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
                        • M
                          mtarbox
                          last edited by Dec 22, 2017, 10:12 PM

                          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 Dec 30, 2017, 2:27 AM

                            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 Jan 31, 2018, 7:37 PM Jan 31, 2018, 7:33 PM

                              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 Feb 3, 2018, 11:16 AM

                                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 Apr 2, 2018, 8:34 AM

                                  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 May 13, 2018, 1:33 AM May 12, 2018, 3:49 AM

                                    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.