Filer Package XMLRPC Sync error
-
Hi,
we updated our Lab Cluster to 23.01 Plus and had a huge error count after looking at the 2nd firewall.
Turns out it seems Filer doesn't sync XMLRPC nicely in 23.01 anymore. I'd guess due to some PHP switch-aroos there's errors popping up:
With current Plus-23.01 on both nodes and updated with all patches situation is:
- edit a file in filer on primary node
- save
Effects that happen: saving on the pri node takes a really long time and runs into timeouts:
A communications error occurred while attempting to call XMLRPC method exec_php: Request timed out due to default_socket_timeout php.ini setting @ 2023-05-20 11:33:27
while on the 2nd node you get a stack trace:
PHP ERROR: Type: 1, File: /usr/local/www/xmlrpc.php(147) : eval()'d code, Line: 2, Message: Uncaught Error: Call to undefined function sync_package_filer() in /usr/local/www/xmlrpc.php(147) : eval()'d code:2 Stack trace: #0 /usr/local/www/xmlrpc.php(147): eval() #1 /usr/local/share/pear/XML/RPC2/Server/CallHandler/Instance.php(141): pfsense_xmlrpc_server->exec_php('require_once('/...', 250) #2 /usr/local/share/pear/XML/RPC2/Backend/Php/Server.php(135): XML_RPC2_Server_Callhandler_Instance->__call('pfsense.exec_ph...', Array) #3 /usr/local/share/pear/XML/RPC2/Backend/Php/Server.php(99): XML_RPC2_Backend_Php_Server->getResponse() #4 /usr/local/www/xmlrpc.php(987): XML_RPC2_Backend_Php_Server->handleCall() #5 {main} thrown @ 2023-05-20 11:31:34 PHP ERROR: Type: 1, File: /usr/local/www/xmlrpc.php(147) : eval()'d code, Line: 2, Message: Uncaught Error: Call to undefined function sync_package_filer() in /usr/local/www/xmlrpc.php(147) : eval()'d code:2 Stack trace: #0 /usr/local/www/xmlrpc.php(147): eval() #1 /usr/local/share/pear/XML/RPC2/Server/CallHandler/Instance.php(141): pfsense_xmlrpc_server->exec_php('require_once('/...', 250) #2 /usr/local/share/pear/XML/RPC2/Backend/Php/Server.php(135): XML_RPC2_Server_Callhandler_Instance->__call('pfsense.exec_ph...', Array) #3 /usr/local/share/pear/XML/RPC2/Backend/Php/Server.php(99): XML_RPC2_Backend_Php_Server->getResponse() #4 /usr/local/www/xmlrpc.php(987): XML_RPC2_Backend_Php_Server->handleCall() #5 {main} thrown @ 2023-05-20 11:32:45
I have to disable sync for now so to not have sync issues all the time.
Cheers
\jens -
Same here after updating 2.6.0 to 2.7.0
-
@JeGr I was able to fix it by changing line 221 in /usr/local/pkg/filer.inc from:
$execcmd .= "sync_package_filer();";
to
$execcmd .= "filer_sync();";