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

XMLRPC sync errors since upgrade to 2.4.4

Scheduled Pinned Locked Moved HA/CARP/VIPs
64 Posts 13 Posters 12.7k 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.
  • N
    Nima304 @SteveITS
    last edited by Nov 14, 2018, 8:25 PM

    @teamits said in XMLRPC sync errors since upgrade to 2.4.4:

    In windiz's logs, it is exactly 60 seconds from the beginning of the sync to the error and that sounds like a timeout to me. Brainstorming, how large is your config export file? We have some decently complex ones for our data center that are about 180 KB, for reference...Suricata rules, pfBlockerNG, OpenVPN, etc.

    Router2 isn't set to sync back to router1 is it? That would be a loop.

    Good catch, my logs are showing the same thing. While config sync isn't set at all on the secondary, the primary is syncing states from the secondary, and the secondary from the primary, as per pfSense's documentation.

    I'm going to try to blow the firewall rules open on the sync interface for both firewalls and see if that does anything.

    1 Reply Last reply Reply Quote 0
    • N
      Nima304
      last edited by Nov 14, 2018, 8:35 PM

      Blowing open the rules did nothing, unfortunately. I'm seeing data received on the secondary firewall, so it's not a cable issue. I'll do a packet capture and see if anything interesting turns up.

      1 Reply Last reply Reply Quote 0
      • N
        Nima304
        last edited by Nov 14, 2018, 8:45 PM

        The transmission is encrypted using TLS, so I can't actually see what's going on.

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Nov 14, 2018, 9:30 PM

          You could set the GUI to http just while you test. However you should still be able to see the TCP sequence and lack or responses.
          Make sure both nodes are time sync'd and then compare the log entries. Does the secondary log anything during that 60s window?

          Steve

          1 Reply Last reply Reply Quote 0
          • A
            AcaaliK
            last edited by Dec 17, 2018, 4:57 AM

            Hello All,

            I am facing the same issue after an upgrade from 2.4.3 to 2.4.4, I have gone through all the checks suggested on the thread and most are ok with the exception of an entry in Secondary system logs under the general tab. The error is XMLRPC unbound /var/unbound/root.key corrupt deleted and recreated each time a sync is performed.

            On the primary node I will get the sporadic XMLRPC communication errors stated here. Please note the sync is successful and the changes from the primary are reflected on the secondary with some delay. This only started after the upgrade.

            1 Reply Last reply Reply Quote 0
            • N
              netblues
              last edited by netblues Dec 17, 2018, 2:48 PM Dec 17, 2018, 2:47 PM

              I'm facing exactly the same issue. And after upgrading to 2.4.4p1 from 2.4.3
              Settings are replicated, however I see this on the secondary.

              nginx: 2018/12/17 16:36:37 [crit] 79693#100242: *18691 SSL_write() failed (SSL:) (13: Permission denied) while sending to client, client: 192.168.50.3, server: , request: "POST /xmlrpc.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket", host: "192.168.50.4" 
              
              
              

              50.3 is the primary and 50.4 is the secondary
              Any ideas?

              It looks like the config is received but the ack is never send back to the primary, thus the complaint.

              1 Reply Last reply Reply Quote 0
              • D
                Derelict LAYER 8 Netgate
                last edited by Dec 17, 2018, 5:13 PM

                Permission denied is almost always something being blocked by policy.

                Are you running snort or suricata?

                Is it enabled on the sync interface?

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                N 1 Reply Last reply Dec 17, 2018, 5:22 PM Reply Quote 0
                • N
                  netblues @Derelict
                  last edited by Dec 17, 2018, 5:22 PM

                  @derelict No snort or suricata ever installed. Not even pfblocker.

                  1 Reply Last reply Reply Quote 0
                  • S
                    stephenw10 Netgate Administrator
                    last edited by Dec 17, 2018, 5:33 PM

                    Do you see that same error if you just save the Unbound settings page on the secondary without making any changes?

                    Does Unbound actually start on the secondary?

                    Is the filesystem full?

                    Steve

                    N 1 Reply Last reply Dec 17, 2018, 5:54 PM Reply Quote 0
                    • N
                      netblues @stephenw10
                      last edited by netblues Dec 17, 2018, 5:55 PM Dec 17, 2018, 5:54 PM

                      on the secondary...

                      @stephenw10

                      /root: df -h
                      Filesystem                                         Size    Used   Avail Capacity  Mounted on
                      /dev/gptid/5bd4713a-8d68-11e8-aed9-5b3c92e7c0e9     18G    1.0G     16G     6%    /
                      devfs                                              1.0K    1.0K      0B   100%    /dev
                      /dev/md0                                           3.4M    156K    3.0M     5%    /var/run
                      devfs                                              1.0K    1.0K      0B   100%    /var/dhcpd/dev
                      
                      code
                      
                       ps -alx | grep unb
                       59 91398     1   0  20  0 48640 23480 kqread   Is    -      0:00.16 /usr/local/sbin/unbound -c /var/unbound/unbound.conf
                        0 86919 48899   0  20  0  6564  2456 piperd   S+    0      0:00.00 grep unb
                      
                      code
                      

                      and no it is not happening if I save settings on secondary on dns resolv

                      1 Reply Last reply Reply Quote 0
                      • N
                        netblues
                        last edited by Dec 19, 2018, 8:10 AM

                        So I reverted everything to http

                        nginx: 2018/12/19 10:01:20 [alert] 91226#100384: *10 writev() failed (13: Permission denied) while sending to client, client: 192.168.50.3, server: , request: "POST /xmlrpc.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm.socket", host: "192.168.50.4" 
                        
                        
                        

                        It is not an ssl issue too.
                        Where does this permission denied comes from?

                        1 Reply Last reply Reply Quote 0
                        • J
                          jimp Rebel Alliance Developer Netgate
                          last edited by Dec 19, 2018, 1:34 PM

                          Permission denied in the nginx log means something cut it off, like a state being killed/removed or possibly a firewall rule prevented the outbound connection.

                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                          Need help fast? Netgate Global Support!

                          Do not Chat/PM for help!

                          N C 2 Replies Last reply Dec 19, 2018, 2:12 PM Reply Quote 0
                          • N
                            netblues @jimp
                            last edited by Dec 19, 2018, 2:12 PM

                            @jimp Well, definitely not on the configuration. It is repeatable on every config update, and others have it too.
                            If it was linux I would look at selinux...
                            Now, since we are talking freebsd here, it looks like an audit denial (but my freebsd knowledge is limited)

                            1 Reply Last reply Reply Quote 0
                            • C
                              Caligari @jimp
                              last edited by Caligari Jan 18, 2019, 4:20 PM Jan 18, 2019, 4:20 PM

                              @jimp said in XMLRPC sync errors since upgrade to 2.4.4:

                              Permission denied in the nginx log means something cut it off, like a state being killed/removed or possibly a firewall rule prevented the outbound connection.

                              We have been suffering this problem since 2.4.4 upgrade and insisted with 2.4.4-p1...

                              Does 2.4.4-p2 solve this problem? (it announces a lot of bugfixes with nginx/php)

                              1 Reply Last reply Reply Quote 0
                              • D
                                Derelict LAYER 8 Netgate
                                last edited by Derelict Jan 18, 2019, 6:24 PM Jan 18, 2019, 6:20 PM

                                XMLRPC sync is working fine for lots and lots of people in 2.4.4, 2.4.4-p1 or 2.4.4-p2. It is something else unique to your setup.

                                Do you have State Killing on Gateway Failure enabled? (System > Advanced, Miscellaneous)

                                Chattanooga, Tennessee, USA
                                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                                Do Not Chat For Help! NO_WAN_EGRESS(TM)

                                D N C 3 Replies Last reply Jan 18, 2019, 6:50 PM Reply Quote 1
                                • D
                                  DrNick 0 @Derelict
                                  last edited by Jan 18, 2019, 6:50 PM

                                  @derelict Perhaps that should be "setups"? Problem still exists for me too with my config described above on -p1.

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    netblues @Derelict
                                    last edited by Jan 18, 2019, 7:25 PM

                                    @derelict xmlrpc sync IS working fine even with the error.
                                    And yes, state killing on gateway failure seems to nail it.
                                    Unchecking the box eliminates xmlrpcsync errors.
                                    I don't recall anymore why this was checked in the first place, but IMHO looks like a bug to me.

                                    B D 2 Replies Last reply Jan 18, 2019, 7:45 PM Reply Quote 0
                                    • B
                                      bbrendon @netblues
                                      last edited by Jan 18, 2019, 7:45 PM

                                      It seems to me the pfsense devs are still in denial about this one. The syncing is working so I just ignore it.

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        Derelict LAYER 8 Netgate @netblues
                                        last edited by Jan 18, 2019, 8:14 PM

                                        @netblues said in XMLRPC sync errors since upgrade to 2.4.4:

                                        I don't recall anymore why this was checked in the first place, but IMHO looks like a bug to me.

                                        If you are killing the state XMLRPC sync is using the connection will fail in different ways.

                                        Chattanooga, Tennessee, USA
                                        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                                        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                                        Do Not Chat For Help! NO_WAN_EGRESS(TM)

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          jimp Rebel Alliance Developer Netgate
                                          last edited by Jan 18, 2019, 8:27 PM

                                          There is no bug. There is nothing to be in denial about.

                                          • You chose the option to kill states on gateway failure
                                          • You have a gateway down
                                          • XMLRPC sync triggers a filter reload
                                          • Firewall notices the down gateway and kills states
                                          • XMLRPC dies because the state died

                                          It's doing exactly what you told it to do. It may not be what you intended it to do, but it's doing what you told it to do.

                                          Fix the down gateway or unset that option.

                                          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                          Need help fast? Netgate Global Support!

                                          Do not Chat/PM for help!

                                          N 1 Reply Last reply Jan 18, 2019, 9:25 PM Reply Quote 1
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            [[user:consent.lead]]
                                            [[user:consent.not_received]]