Often get 502 error in webGUI, have to restart PHP-FPM each time.
-
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.
-
@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 :
-
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-CURRENTBut 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-CURRENTI 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. -
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 4593The code I have at this line is:
Please suggest me how I can possibly resolve this issue.