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

    After update to 2.7.1, Bad Gateway: Nginx

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 4 Posters 1.5k 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.
    • K
      Kartsa79
      last edited by

      Updated and web-ui started to fail with "Bad Gateway" Nginx error. Made a clean install with 2.7.1 and same problem. Reinstalling 2.7.0 solved the problem. Intel NUC with a USB dongle. Very basic setup. Nothing extra configured. Has anyone had similar things happening? What might cause it?

      S 1 Reply Last reply Reply Quote 0
      • jimpJ jimp moved this topic from Problems Installing or Upgrading pfSense Software on
      • S
        SteveITS Galactic Empire @Kartsa79
        last edited by

        @Kartsa79 That error typically shows up if the web server can't connect to an internal/back end process. For instance an actual public web server may have nginx in front of Apache, and the error shows when Apache is not running.

        Could the USB not be detected in 2.7.1? Does the console show it?

        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
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          Any errors shown in the system log?

          If you can't access it in the gui you can run cat /var/log/system.log at the CLI.

          K 1 Reply Last reply Reply Quote 0
          • K
            Kartsa79
            last edited by

            I reinstalled pfsense to the computer, but changed the usb-dongle from wan to lan. Now it seems to work. Yesterday when I was havin problems with pfsense, I tried to install IPFire instead. That also had a problem with DNS-servers. Could not to make it work at all. USB dongle was also the wan then. I did not look any logs yesterday, just went and installed IPFire. I guess the problem is the USB ethernet dongle. Funny, but it worked with pfsense 2.7.0. I also used it with OpenWRT and rpi4 for about six months with no problem. It is Asix based dongle. I also happen to have realtek chip based dongle and it stopped working also with pfsense 2.7.1. Now I am getting full 200MBs download but only really low upload speeds. Could be the Ookla tests fault too. I need to try it later. But yeah, I guess that dual NIC mini PC could be the answer. Those dongles seem to be bit variable in reliability. Also I noticed today that the LAN lost link for a moment after the speed test. So yeah, dual NIC pc... Minis Forum GK41 looks intersting ๐Ÿ˜

            1 Reply Last reply Reply Quote 0
            • K
              Kartsa79 @stephenw10
              last edited by

              @stephenw10 In /var/log/system.log lots of this:

              ov 20 20:51:54 pfSense kernel: ue0: link state changed to UP
              Nov 20 20:51:54 pfSense check_reload_status[437]: Linkup starting ue0
              Nov 20 20:51:54 pfSense kernel: ue0: 2 link states coalesced
              Nov 20 20:51:54 pfSense kernel: ue0: link state changed to UP
              Nov 20 20:51:54 pfSense check_reload_status[437]: Linkup starting ue0
              Nov 20 20:51:54 pfSense kernel: ue0: 2 link states coalesced
              Nov 20 20:51:54 pfSense kernel: ue0: link state changed to UP
              Nov 20 20:51:54 pfSense check_reload_status[437]: Linkup starting ue0
              Nov 20 20:51:54 pfSense kernel: ue0: 2 link states coalesced

              And later:

              20:51:58 pfSense php-fpm[13827]: /rc.linkup: Gateway, NONE AVAILABLE
              Nov 20 20:51:58 pfSense php-fpm[12259]: /rc.linkup: Hotplug event detected for LAN(lan) dynamic IP address (4: 192.168.1.1, 6: track6)
              Nov 20 20:51:58 pfSense php-fpm[12259]: /rc.linkup: DEVD Ethernet attached event for lan
              Nov 20 20:51:58 pfSense php-fpm[12259]: /rc.linkup: HOTPLUG: Configuring interface lan
              Nov 20 20:51:58 pfSense php-fpm[12259]: /rc.linkup: Gateway, NONE AVAILABLE
              Nov 20 20:51:58 pfSense php-fpm[12259]: /rc.linkup: Gateway, NONE AVAILABLE
              Nov 20 20:51:58 pfSense php-fpm[42325]: /rc.linkup: Hotplug event detected for LAN(lan) dynamic IP address (4: 192.168.1.1, 6: track6)
              Nov 20 20:51:58 pfSense php-fpm[42325]: /rc.linkup: DEVD Ethernet attached event for lan
              Nov 20 20:51:58 pfSense php-fpm[42325]: /rc.linkup: HOTPLUG: Configuring interface lan
              Nov 20 20:51:58 pfSense php-fpm[42325]: /rc.linkup: Gateway, NONE AVAILABLE

              But eventually it works.

              1 Reply Last reply Reply Quote 0
              • K
                Kartsa79
                last edited by

                The dongle is this:

                "ugen0.4: <ASIX Elec. Corp. AX88179> at usbus0"

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

                  Hmm, USB NICs are generally badly regarded in FreeBSD/pfSense. Those ASIC based NICs are usually the best you can hope for but if you can use anything other than USB you should do that.

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

                    Same for me - Intel NUC with USB NIC for WAN. I have to stay on 2.7.0, 2.7.1 or 2 doesnt work. NGINX issue.

                    Is there posibility to use different drivers, that were in 2.7.0 together with 2.7.2 version?

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

                      You might be able to use a driver for the specific hardware rather than the cdce driver. It's possible some specific driver gained support for that hardware in 2.7.1/2.7.2 and that's what changed.

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