Bug #8306
closedHAproxy in pfsense 2.42-p1 ha pair generates XMLRPC errors
0%
Description
I have a number of http(s) sites setup under haproxy using a shared ssl cert .
After cloning an existing config I am met with the following XMLRPC error afterward .
Exception calling XMLRPC method exec_php #1 : Unhandled XML_RPC2_InvalidUriException exception:Client URI 'https://admin::443/xmlrpc.php' is not valid#0 /usr/local/share/pear/XML/RPC2/Backend/Php/Client.php(80): XML_RPC2_Client->__construct('https://admin:
...', Array)
#1 /usr/local/share/pear/XML/RPC2/Client.php(238): XML_RPC2_Backend_Php_Client->__construct('https://admin:...', Array)
...', Array)
#2 /etc/inc/xmlrpc_client.inc(92): XML_RPC2_Client::create('https://admin:
#3 /etc/inc/xmlrpc_client.inc(153): pfsense_xmlrpc_client->xmlrpc_internal('merge_installed...', Array, 240)
#4 /usr/local/pkg/haproxy/haproxy_xmlrpcsyncclient.inc(55): pfsense_xmlrpc_client->xmlrpc_method('merge_installed...', Array)
#5 /usr/local/pkg/haproxy/haproxy_xmlrpcsyncclient.inc(47): xmlrpc_sync_execute_24('HAProxy', Array, '/usr/local/pkg/...', 'haproxy_xmlrpc_...')
#6 /usr/local/pkg/haproxy/haproxy.inc(2288): xmlrpc_sync_execute(Array)
#7 /usr/local/pkg/haproxy/haproxy.inc(2308): haproxy_do_xmlrpc_sync()
#8 /usr/local/www/xmlrpc.php(139) : eval()'d code(2): haproxy_xmlrpc_sync_configure()
#9 /usr/local/www/xmlrpc.php(139): eval()
#10 [internal function]: pfsense_xmlrpc_server->exec_php('require_once('/...')
#11 /usr/local/share/pear/XML/RPC2/Server/CallHandler/Instance.php(141): call_user_func_array(Array, Array)
#12 [internal function]: XML_RPC2_Server_Callhandler_Instance->__call('pfsense.exec_ph...', Array)
#13 [internal function]: XML_RPC2_Server_Callhandler_Instance->pfsense.exec_php('require_once('/...')
#14 /usr/local/share/pear/XML/RPC2/Backend/Php/Server.php(135): call_user_func_array(Array, Array)
#15 /usr/local/share/pear/XML/RPC2/Backend/Php/Server.php(99): XML_RPC2_Backend_Php_Server->getResponse()
#16 /usr/local/www/xmlrpc.php(555): XML_RPC2_Backend_Php_Server->handleCall()
#17 {main} 2018-01-31 16:57:38
:443/xmlrpc.php' is not valid#0 /usr/local/share/pear/XML/RPC2/Backend/Php/Client.php(80): XML_RPC2_Client->__construct('https://admin:
Exception calling XMLRPC method exec_php #1 : Unhandled XML_RPC2_InvalidUriException exception:Client URI 'https://admin:...', Array)
...', Array)
#1 /usr/local/share/pear/XML/RPC2/Client.php(238): XML_RPC2_Backend_Php_Client->__construct('https://admin:
#2 /etc/inc/xmlrpc_client.inc(92): XML_RPC2_Client::create('https://admin:...', Array)
2018-01-31 16:57:39
#3 /etc/inc/xmlrpc_client.inc(153): pfsense_xmlrpc_client->xmlrpc_internal('merge_installed...', Array, 240)
#4 /usr/local/pkg/haproxy/haproxy_xmlrpcsyncclient.inc(55): pfsense_xmlrpc_client->xmlrpc_method('merge_installed...', Array)
#5 /usr/local/pkg/haproxy/haproxy_xmlrpcsyncclient.inc(47): xmlrpc_sync_execute_24('HAProxy', Array, '/usr/local/pkg/...', 'haproxy_xmlrpc_...')
#6 /usr/local/pkg/haproxy/haproxy.inc(2288): xmlrpc_sync_execute(Array)
#7 /usr/local/pkg/haproxy/haproxy.inc(2308): haproxy_do_xmlrpc_sync()
#8 /usr/local/www/xmlrpc.php(139) : eval()'d code(2): haproxy_xmlrpc_sync_configure()
#9 /usr/local/www/xmlrpc.php(139): eval()
#10 [internal function]: pfsense_xmlrpc_server->exec_php('require_once('/...')
#11 /usr/local/share/pear/XML/RPC2/Server/CallHandler/Instance.php(141): call_user_func_array(Array, Array)
#12 [internal function]: XML_RPC2_Server_Callhandler_Instance->__call('pfsense.exec_ph...', Array)
#13 [internal function]: XML_RPC2_Server_Callhandler_Instance->pfsense.exec_php('require_once('/...')
#14 /usr/local/share/pear/XML/RPC2/Backend/Php/Server.php(135): call_user_func_array(Array, Array)
#15 /usr/local/share/pear/XML/RPC2/Backend/Php/Server.php(99): XML_RPC2_Backend_Php_Server->getResponse()
#16 /usr/local/www/xmlrpc.php(555): XML_RPC2_Backend_Php_Server->handleCall()
#17 {main}
Updated by Pi Ba about 6 years ago
Could it be that youve got sync configuration enabled in haproxy, but dont have it configured in pfSense itself?
Updated by Mark Saad about 6 years ago
Pi Ba wrote:
Could it be that youve got sync configuration enabled in haproxy, but dont have it configured in pfSense itself?
Pi
The Nodes have the standard ha setup for pfsense. I have all of the options selected on the master, and in the haproxy setup I have
HAProxy Sync : Sync HAProxy configuration to backup CARP members via XMLRPC. Enabled as well.
Updated by Pi Ba about 6 years ago
Sync should be disabled on haproxy on the backup machine, can you check that is indeed the case?
Updated by Mark Saad about 6 years ago
Pi Ba wrote:
Sync should be disabled on haproxy on the backup machine, can you check that is indeed the case?
Pi
It was enabled on the seconday box. I have disabled it and I will re-test later tonight.
Removing the sync fixed the issue. It seams like an odd option to have in that page.
I think the best solution would be to remove this sync option as I cant find a reason why you would want to enable haproxy sync outside of the standard sync settings page.
Updated by Kris Phillips over 3 years ago
- Status changed from New to Rejected
Closing this ticket as rejected, since sync should not be enabled on the secondary unit for any HA configuration.