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

504 or 502 Gateway Timeout Error NGINX when accessing the webgui

Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
6 Posts 2 Posters 2.8k 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.
  • C
    cewjr9842
    last edited by May 2, 2017, 8:08 PM May 2, 2017, 7:42 PM

    I just installed and setup snort and things seemed well, until about an hour late I started having issues trying to access my WebGUI page to look at the alerts and started getting the 504 Gateway Timeout Error NGINX page when trying to access the GUI for pfsense. I then rollback my installation of snort thinking that was the issue, and now i get this error every time i try to access the WEBGUI. I restarted the PHP-FPM and it works for about 5 minutes then the error happens again. I have to keep restarting the PHP-FPM and it keeps happening. Any suggestions on how to resolve?

    Version: 2.3.3-RELEASE-p1 (amd64)

    My log show the error below:
    <171>1 2017-05-01T10:21:34-05:00 caesarsnetwork.localdomain nginx - - - nginx: 2017/05/01 10:21:34 [error] 22340#100111: send() failed (54: Connection reset by peer)
    <174>1 2017-05-01T10:21:34-05:00 caesarsnetwork.localdomain nginx - - - nginx: 192.168.1.55 - - [01/May/2017:10:21:34 -0500] "GET /vendor/font-awesome/css/font-awesome.min.css HTTP/1.1" 200 7038

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by May 3, 2017, 2:01 PM

      Sounds like you have something consuming php processes.

      You can increase the number of processes available in System > Advanced > Admin Access. Try setting 'Max Processes' to 4 or 6. Or higher if you have RAM available.

      Steve

      1 Reply Last reply Reply Quote 0
      • S
        stephenw10 Netgate Administrator
        last edited by May 3, 2017, 9:55 PM

        That looks normal yes. Except Snort is still there so it wasn't removed. How did you remove it?

        Steve

        1 Reply Last reply Reply Quote 0
        • C
          cewjr9842
          last edited by May 4, 2017, 2:40 PM

          I used the remove package feature in the packages? was this not correct?

          1 Reply Last reply Reply Quote 0
          • C
            cewjr9842
            last edited by May 4, 2017, 3:28 PM

            Ok so this is what i Did just to see if it was snort.

            I did a fresh install and used a config from two weeks ago and all is well.
            So all i did was go to the available packages and installed Squid proxy, did not set it up at all. I walked away for ten seconds to check on something come back and the browser just spins and 504 gateway timeout error. Literally, nothing was done except the squid package install. Any suggestions as to why just installing a package would cause this to happen?

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by May 7, 2017, 6:43 PM

              So you restored a config from when you had packages installed?

              Squid can behave oddly when installed and not configured on occasion. Check the system log to see if it's continually restarting.

              Steve

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received