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

    Getting 504 Gateway Time-Out after login from WebGUI

    Scheduled Pinned Locked Moved webGUI
    2 Posts 1 Posters 376 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.
    • XenGi 0X
      XenGi 0
      last edited by XenGi 0

      Hi,
      I got a fresh install of pfsense. When I successfully login to the webgui instead of the dashboard I get a 504 Time Out. When I switch to a browser where I don't have a session yet I get the login page really quickly. As soon as I login there I get the 504 too.

      It seems that only a few pages arer affected by this. For example when I go directly to /interfaces_assign.php the page loads within seconds. Going back to the dashboard results in a 504 again.

      I found this old issue which describes a similar bug but this has no solution: https://redmine.pfsense.org/issues/8987

      In my setup I got a ix0 interface which I called UPLINK. This is a transfer network and also the default gateway. I got another VLAN interface opt1 which I called WAN which will hold my public IP addresses in the future. At the moment this has no IP set and is not functioning. The interface is enabled though.

      I tried renaming the interfaces to find out if pfsense somehow cares about some magic names but that didn't change anything.
      I also disabled the WAN interface and that also didn't change the behaviour.

      In the logs I see this when a time out happens:

      Feb 26 11:57:29	nginx		2021/02/26 11:57:29 [error] 62355#100690: *14996 upstream timed out (60: Operation timed out) while reading response header from upstream, client: ::1, server: , request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.socket", host: "mypfsense:443", referrer: "https://mypfsense:443/interfaces.php?if=opt8"
      

      I switched from using the DNS resolver (unbound?) to the DNS Forwarder (dnsmasq?), but that didn't make any difference.
      I have another pfsense at my home which is using only the DNS Forwarder and it works fine. I never had this issue. But the setup also uses another router behind it for the WAN interface. So there is 192.168.178/0/24 from the actual DSL modem and the pfsense is just a node in that network delivering traffic to the rest of the house.

      Still these two have the same pfsense version 2.4.5p1 and I would expect them to work the same. The working pfsense runs on a APU2C4. The one with issues runs on a Dell R620.

      I tried restarting the Webgui and also php-fpm but it didn't help.

      I'm quiet familiar with Linux but struggle a bit to find the equivalent commands on FreeBSD. So I'm not sure how to debug this further.

      While fiddling around I restarted the php-fpm while I was waiting for another time out. What I got was this error:

      2021/02/26 12:44:35 [crit] 52395#100571: *2 connect() to unix:/var/run/php-fpm.socket failed (2: No such file or directory) while connecting to upstream, client: ::1, server: , request: "POST /getstats.php HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.socket:", host: "localhost:8443", referrer: "https://localhost:8443/"
      

      And the dashboard showed up. Completely loaded. Non-functional but loaded. So it seems to be a specific widget.

      1 Reply Last reply Reply Quote 0
      • XenGi 0X
        XenGi 0
        last edited by XenGi 0

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