-
Notifications
You must be signed in to change notification settings - Fork 759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HA sync error/warning #3390
Comments
|
this seems to fix it ! --- /usr/local/opnsense/contrib/IXR/IXR_Library.php 2019-04-05 17:13:17.690656000 -0400
+++ ./IXR_Library.php 2019-04-05 17:41:22.909773000 -0400
@@ -417,7 +417,7 @@ EOD;
$method = $this->callbacks[$methodname];
// Perform the callback and send the response
- if (count($args) == 1) {
+ if ((is_array($args) || $args instanceof Countable) && count($args) == 1) {
// If only one paramater just send that instead of the whole array
$args = $args[0];
} |
|
Which options are enabled under System -> High Availability -> Settings? |
|
All except Monit and Intrusion detection.
(on an other note: The sync goes one way, 1->2. is there a way to make it 2 ways 1<->2? If I configure 2 to sync to 1 and modify something on 2, will it just work, or I will I get a loop 1 -> 2 -> 1 -> 2 ... etc.?) |
|
can you try to disable the plugins sync and see if it persists? (you can't do a two way sync, since the nodes don't know when a specific entry was changed) |
|
tested with change reverted : the notice appears. (that was my impression. Thanks for the confirmation) |
|
This error also occurs at my test system. I think this is due to upgrading php from 7.1 to 7.2: |
Works perfectly ;) |
|
@chrko it looks like you're right, the warning wasn't in 7.1, we have seen some other small glitches as well. |
|
@kenshin33 @chrko can you test and confirm 9452022 |
|
@AdSchellevis I did and it seemed to work (before creating the issue). |
@chrko I feel a bit like a noob here but I implemented these changes with no change in result? I'm slightly confused am I supposed to remove the file "IXR_Library.php" and then recreate it with only the above mentioned code in it. Or was that simply make a backup of the original file first? On a side note the code I see does not have "EOD;" just before the "$method = " variable. The earliest that "EOD;" appears before the section mentioned above is on line 407. Would it be too much to ask to have the entire modified file posted here. I've been doing this for years but this isn't matching what I have. My OPNSense version is 19.1.5_1. UPDATE: " INFO - The corrected string should look like this officially as of 22 hours ago and can be edited directly if you wish: |
…ng for an array should be enough here, other types aren't supported. closes opnsense#3390
…ng for an array should be enough here, other types aren't supported. closes opnsense#3390
Since update to (19.1.5 and then 19.1.5_1), notice appears whenever the configuration is synced (either manually or automatically)
it reads [An error occured while atempting XMLRPC sync with username USERNAME and https://ip.of.other.fw/xmlrpc.php parse error not well formed]
To Reproduce
Expected behavior
No notice and configuration sync
Relevant log files
running /usr/local/etc/rc.filter_synchronize
yields :
Environment
OPNsense 19.1.15_1 (amd64, OpenSSL).
The text was updated successfully, but these errors were encountered: