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

Filer Package XMLRPC Sync error

Scheduled Pinned Locked Moved pfSense Packages
3 Posts 2 Posters 700 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.
  • J
    JeGr LAYER 8 Moderator
    last edited by May 20, 2023, 9:34 AM

    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

    Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

    If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

    J 1 Reply Last reply Jul 6, 2023, 8:28 AM Reply Quote 0
    • J
      jazzl0ver
      last edited by jazzl0ver Jul 6, 2023, 7:12 AM Jul 6, 2023, 7:11 AM

      Same here after updating 2.6.0 to 2.7.0

      1 Reply Last reply Reply Quote 0
      • J
        jazzl0ver @JeGr
        last edited by Jul 6, 2023, 8:28 AM

        @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();";
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received