[SOLVED] HA / XMLRPC not working

Started by trtracer, April 07, 2019, 12:31:16 PM

Previous topic - Next topic
April 07, 2019, 12:31:16 PM Last Edit: April 09, 2019, 07:21:20 AM by franco
Hi all,

some time ago I've set up two OPNSense with xmlrpc sync - the sync was working but at that time i did not set up CARP. But the config (HAProxy) was successfully transferrred to the backup node.

Today i upgraded both nodes and checked the sync and noticed it is not working (anymore).

The general log says:
opnsense: /usr/local/etc/rc.filter_synchronize: An error occurred while attempting XMLRPC sync with username root and https://10.10.30.142/xmlrpc.php parse error. not well formed

When running /usr/local/etc/rc.filter_synchronize on the termin I get:
send >>>
Host: 10.10.30.142
User-Agent: XML_RPC
Content-Type: text/xml
Content-Length: 117
Authorization: Basic cm9vdDp3ZWxjb21lMktTIQ==
<?xml version="1.0"?>
<methodCall>
<methodName>opnsense.firmware_version</methodName>
<params>
</params></methodCall>received >>>

Warning: count(): Parameter must be an array or an object that implements Countable in /usr/local/opnsense/contrib/IXR/IXR_Library.php on line 420

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/opnsense/contrib/IXR/IXR_Library.php:420) in /usr/local/opnsense/contrib/IXR/IXR_Library.php on line 464

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/opnsense/contrib/IXR/IXR_Library.php:420) in /usr/local/opnsense/contrib/IXR/IXR_Library.php on line 465

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/opnsense/contrib/IXR/IXR_Library.php:420) in /usr/local/opnsense/contrib/IXR/IXR_Library.php on line 466

Warning: Cannot modify header information - headers already sent by (output started at /usr/local/opnsense/contrib/IXR/IXR_Library.php:420) in /usr/local/opnsense/contrib/IXR/IXR_Library.php on line 467
<?xml version="1.0"?>
<methodResponse>
  <params>
    <param>
      <value>
      <struct>
  <member><name>base</name><value><struct>
  <member><name>version</name><value><string>19.1.4</string></value></member>
</struct></value></member>
  <member><name>firmware</name><value><struct>
  <member><name>version</name><value><string>19.1.5_1</string></value></member>
</struct></value></member>
  <member><name>kernel</name><value><struct>
  <member><name>version</name><value><string>19.1.4</string></value></member>
</struct></value></member>
</struct>
      </value>
    </param>
  </params>
</methodResponse>
error >>>


Did i break it? Is is comming from the upgrade?

Any help appreciated.

Tobias


Ah, I missed that.

Thank You!

Tobias