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

    Often get 502 error in webGUI, have to restart PHP-FPM each time.

    Scheduled Pinned Locked Moved webGUI
    4 Posts 2 Posters 814 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.
    • T
      TtheCreatro
      last edited by

      Hi all,

      Every time I want to access my pfsense instance's webUI, I get a 502 error. I can fix this for that use by restarting PHP-FPM manually.

      What I do notice as well, which I suspect is related, is that I'm getting a lot of php crash logs.

      PHP Errors:
      [14-Oct-2023 16:18:56 Europe/Amsterdam] PHP Fatal error:  Uncaught TypeError: pfSense_interface_rename(): Argument #1 ($ifname) must be of type string, array given in /etc/inc/interfaces.inc:4591
      Stack trace:
      #0 /etc/inc/interfaces.inc(4591): pfSense_interface_rename(Array, 'wan_stf')
      #1 /etc/inc/interfaces.inc(4248): interface_6rd_configure('wan', Array)
      #2 /etc/rc.interfaces_wan_configure(39): interface_configure('wan')
      #3 {main}
        thrown in /etc/inc/interfaces.inc on line 4591
      

      But I cannot find any instance of someone else having this exact issue.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @TtheCreatro
        last edited by

        @TtheCreatro said in Often get 502 error in webGUI, have to restart PHP-FPM each time.:

        But I cannot find any instance of someone else having this exact issue.

        What is your pfSense version ?

        This file : #0 /etc/inc/interfaces.inc(4591): pfSense_interface_rename(Array, 'wan_stf')

        I have not the function "pfSense_interface_rename()" on line 4591 but :

        79e305ae-6dde-4789-9bf1-58f1bb935883-image.png

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • T
          TtheCreatro
          last edited by

          Hi Gertjan, thank you so much for your reply.
          I just checked my version, and it is:
          2.7.0-RELEASE (amd64)
          built on Wed Jun 28 03:53:34 UTC 2023
          FreeBSD 14.0-CURRENT

          But I saw an update was available so I just updated to:
          2.7.2-RELEASE (amd64)
          built on Fri Dec 8 21:55:00 CET 2023
          FreeBSD 14.0-CURRENT

          I now cannot find the same line again in the /etc/inc/interface.inc file.
          So let's just keep fingers crossed and hope the bug is somehow gone.

          1 Reply Last reply Reply Quote 0
          • T
            TtheCreatro
            last edited by

            Hi,

            The update did not solve the problem. I still got a crash report today.

            PHP Errors:
            [27-Dec-2023 14:42:09 Europe/Amsterdam] PHP Fatal error: Uncaught TypeError: pfSense_interface_rename(): Argument #1 ($ifname) must be of type string, array given in /etc/inc/interfaces.inc:4593
            Stack trace:
            #0 /etc/inc/interfaces.inc(4593): pfSense_interface_rename(Array, 'wan_stf')
            #1 /etc/rc.newwanip(154): interface_6rd_configure('wan', Array)
            #2 {main}
            thrown in /etc/inc/interfaces.inc on line 4593
            [27-Dec-2023 14:42:28 Europe/Amsterdam] PHP Fatal error: Uncaught TypeError: pfSense_interface_rename(): Argument #1 ($ifname) must be of type string, array given in /etc/inc/interfaces.inc:4593
            Stack trace:
            #0 /etc/inc/interfaces.inc(4593): pfSense_interface_rename(Array, 'wan_stf')
            #1 /etc/rc.newwanip(154): interface_6rd_configure('wan', Array)
            #2 {main}
            thrown in /etc/inc/interfaces.inc on line 4593

            The code I have at this line is:
            c8a70086-46d8-4b83-9eae-c5e98fcdce7d-image.png

            Please suggest me how I can possibly resolve this issue.

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