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

Request timed out due to default_socket_timeout php.ini setting

Scheduled Pinned Locked Moved HA/CARP/VIPs
6 Posts 3 Posters 1.1k 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.
  • M
    marcolefo
    last edited by Jan 4, 2023, 3:54 PM

    Hi

    We had 70 VLAN interfaces and 145 CARP interfaces.
    The sync was working like a charm since we have applied the patch #12827.

    After adding 7 new VLAN and 7 new CARP interface I have a problem with sync between MASTER and BACKUP.

    On MASTER :

    Jan  4 16:35:35 X.X.X.253 php-fpm[47172]: /rc.filter_synchronize: Beginning XMLRPC sync data to https://X.X.X.252:443/xmlrpc.php.
    Jan  4 16:36:35 X.X.X.253 php-fpm[47172]: /rc.filter_synchronize: A communications error occurred while attempting to call XMLRPC method restore_config_section: Request timed out due to default_socket_timeout php.ini setting
    Jan  4 16:36:35 X.X.X.253 php-fpm[47172]: /rc.filter_synchronize: New alert found: A communications error occurred while attempting to call XMLRPC method restore_config_section: Request timed out due to default_socket_timeout php.ini setting
    

    On BACKUP the php-fpm log is flooded by :

    Jan  4 16:35:35 X.X.X.252 php-fpm[48494]: /rc.carpbackup: HA cluster member "(X.X.X.201@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[76961]: /rc.carpbackup: HA cluster member "(X.X.X.2@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[82224]: /rc.carpbackup: HA cluster member "(X.X.X.245@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[76961]: /rc.carpbackup: HA cluster member "(X.X.X.9@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[98249]: /rc.carpbackup: HA cluster member "(X.X.X.49@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[77095]: /rc.carpbackup: HA cluster member "(X.X.X.20@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[48494]: /rc.carpbackup: HA cluster member "(X.X.X.203@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[81850]: /rc.carpbackup: HA cluster member "(X.X.X.71@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[82224]: /rc.carpbackup: HA cluster member "(X.X.X.55@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[98249]: /rc.carpbackup: HA cluster member "(X.X.X.50@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[77095]: /rc.carpbackup: HA cluster member "(X.X.X.1@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[76961]: /rc.carpbackup: HA cluster member "(X.X.X.11@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[48494]: /rc.carpbackup: HA cluster member "(X.X.X.204@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[81850]: /rc.carpbackup: HA cluster member "(X.X.X.127@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[82224]: /rc.carpbackup: HA cluster member "(X.X.X.2@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[98249]: /rc.carpbackup: HA cluster member "(X.X.X.51@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[77095]: /rc.carpbackup: HA cluster member "(X.X.X.2@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[76961]: /rc.carpbackup: HA cluster member "(X.X.X.14@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[48494]: /rc.carpbackup: HA cluster member "(X.X.X.198@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[81850]: /rc.carpbackup: HA cluster member "(X.X.X.199@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[82224]: /rc.carpbackup: HA cluster member "(X.X.X.1@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[98249]: /rc.carpbackup: HA cluster member "(X.X.X.69@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[77095]: /rc.carpbackup: HA cluster member "(X.X.X.9@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[76961]: /rc.carpbackup: HA cluster member "(X.X.X.15@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[48494]: /rc.carpbackup: HA cluster member "(X.X.X.72@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[81850]: /rc.carpbackup: HA cluster member "(X.X.X.201@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[82224]: /rc.carpbackup: HA cluster member "(X.X.X.3@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[98249]: /rc.carpbackup: HA cluster member "(X.X.X.70@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[38781]: /rc.carpbackup: HA cluster member "(X.X.X.20@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[77095]: /rc.carpbackup: HA cluster member "(X.X.X.11@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[76961]: /rc.carpbackup: HA cluster member "(X.X.X.16@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[48494]: /rc.carpbackup: HA cluster member "(X.X.X.73@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[81850]: /rc.carpbackup: HA cluster member "(X.X.X.203@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[98249]: /rc.carpbackup: HA cluster member "(X.X.X.71@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[82224]: /rc.carpbackup: HA cluster member "(X.X.X.4@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[38781]: /rc.carpbackup: HA cluster member "(X.X.X.1@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[77095]: /rc.carpbackup: HA cluster member "(X.X.X.14@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[76961]: /rc.carpbackup: HA cluster member "(X.X.X.18@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[48494]: /rc.carpbackup: HA cluster member "(X.X.X.74@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[81850]: /rc.carpbackup: HA cluster member "(X.X.X.204@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[98249]: /rc.carpbackup: HA cluster member "(X.X.X.127@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    Jan  4 16:35:35 X.X.X.252 php-fpm[82224]: /rc.carpbackup: HA cluster member "(X.X.X.139@lagg1.311): (WAN)" has resumed CARP state "BACKUP" for vhid 2
    

    Is there a way to grow up the php-fpm timeout ?

    Thanks

    Pfsense Version 2.6.0-RELEASE (amd64)
    built on Mon Jan 31 19:57:53 UTC 2022
    FreeBSD 12.3-STABLE

    S 1 Reply Last reply Jan 4, 2023, 5:35 PM Reply Quote 0
    • S
      SteveITS Galactic Empire @marcolefo
      last edited by Jan 4, 2023, 5:35 PM

      @marcolefo I don't know the answer to your question about PHP timeout, but possibly it might help to change some of the CARP IPs to IP Alias?

      https://docs.netgate.com/pfsense/en/latest/highavailability/reduce-heartbeat-traffic.html

      Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
      When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
      Upvote 👍 helpful posts!

      1 Reply Last reply Reply Quote 1
      • M
        marcolefo
        last edited by marcolefo Jan 5, 2023, 8:24 AM Jan 5, 2023, 8:19 AM

        @steveits thanks I will try that.
        I will try to convert all my NAT CARP interface to IP aliases of the WAN.

        P 2 Replies Last reply Apr 17, 2023, 5:01 AM Reply Quote 0
        • P
          philippe richard @marcolefo
          last edited by Apr 17, 2023, 5:01 AM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • P
            philippe richard @marcolefo
            last edited by Apr 17, 2023, 5:01 AM

            @marcolefo said in Request timed out due to default_socket_timeout php.ini setting:

            @steveits thanks I will try that.
            I will try to convert all my NAT CARP interface to IP aliases of the WAN.

            Hello Marcolefo,
            We have the same problem.
            Have you solved yours by changing IP CARP TO IP ALIAS?
            THANKS

            M 1 Reply Last reply Apr 17, 2023, 9:05 AM Reply Quote 0
            • M
              marcolefo @philippe richard
              last edited by Apr 17, 2023, 9:05 AM

              @philippe-richard Hi.

              Yes. After converting a few CARP to IP alias, the problem disappear.
              Note we have applied the patch #12827.

              1 Reply Last reply Reply Quote 0
              • R Rico29 referenced this topic on Jul 3, 2023, 8:18 AM
              • 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