Frank colson
New Pleskian
After performing an upgrade from 12 to 12.5 I was able to perform one successful migration. Now when attempting to run a subsequent migration I get the following error in the web form.
Failed to check Plesk API connection to target Plesk server: 'module' object has no attribute 'PROTOCOL_TLSv1_1'
info.log
[2017-01-16 18:29:02][INFO] START: Check connections
[2017-01-16 18:29:04][ERROR] Failed to check Plesk API connection to target Plesk server: 'module' object has no attribute 'PROTOCOL_TLSv1_1'
debug.log shows the error starting with:
Looks like the empty XML may be causing some issue, but it is not clear.
The final part of the stack trace is:
My guess is that python cannot negotiate TLS with the local server and is failing, I just have no idea how to fix it the "plesk" way so that I am not breaking other services.
Thanks in advance for your help
Failed to check Plesk API connection to target Plesk server: 'module' object has no attribute 'PROTOCOL_TLSv1_1'
info.log
[2017-01-16 18:29:02][INFO] START: Check connections
[2017-01-16 18:29:04][ERROR] Failed to check Plesk API connection to target Plesk server: 'module' object has no attribute 'PROTOCOL_TLSv1_1'
debug.log shows the error starting with:
+|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client|||API request to https://216.224.xxx.xxx:8443/enterprise/control/agent.php:
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client|||<?xml version="1.0" encoding="utf-8"?>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client|||<packet version="1.5.2.1">
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client||| <server>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client||| <get>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client||| <stat/>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client||| </get>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client||| </server>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client|||</packet>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client|||
+|2017-01-16_18:29:03,941|D|MT|core.connections.checker|||Exception:
=|2017-01-16_18:29:03,941|D|MT|core.connections.checker|||Traceback (most recent call last):
=|2017-01-16_18:29:03,941|D|MT|core.connections.checker||| File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/connections/checker.py", line 49, in check_plesk_api
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client|||<?xml version="1.0" encoding="utf-8"?>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client|||<packet version="1.5.2.1">
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client||| <server>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client||| <get>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client||| <stat/>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client||| </get>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client||| </server>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client|||</packet>
=|2017-01-16_18:29:03,940|D|MT|core.utils.common.http_xml_client|||
+|2017-01-16_18:29:03,941|D|MT|core.connections.checker|||Exception:
=|2017-01-16_18:29:03,941|D|MT|core.connections.checker|||Traceback (most recent call last):
=|2017-01-16_18:29:03,941|D|MT|core.connections.checker||| File "/usr/local/psa/admin/plib/modules/panel-migrator/backend/lib/python/parallels/core/connections/checker.py", line 49, in check_plesk_api
Looks like the empty XML may be causing some issue, but it is not clear.
The final part of the stack trace is:
=|2017-01-16_18:29:03,941|D|MT|core.connections.checker||| (ssl.PROTOCOL_TLSv1_1, "TLSv1.1"),
=|2017-01-16_18:29:03,941|D|MT|core.connections.checker|||AttributeError: 'module' object has no attribute 'PROTOCOL_TLSv1_1'
+|2017-01-16_18:29:03,943|D|MT|core.workflow.runner.by_subscription|||Execute shutdown action 'cleanup'
=|2017-01-16_18:29:03,941|D|MT|core.connections.checker|||AttributeError: 'module' object has no attribute 'PROTOCOL_TLSv1_1'
+|2017-01-16_18:29:03,943|D|MT|core.workflow.runner.by_subscription|||Execute shutdown action 'cleanup'
My guess is that python cannot negotiate TLS with the local server and is failing, I just have no idea how to fix it the "plesk" way so that I am not breaking other services.
Thanks in advance for your help