Article ID: 130728, created on Apr 28, 2017, last review on May 16, 2017

  • Applies to:
  • Operations Automation 7.0

Symptoms

When installing hotfixes via pa_updates_installer, it will fail when SSL for public API is enabled in OA at "System > Settings > Public API".

The following error can be seen during the installation:

osscore # /usr/local/pem/bin/pa_updates_installer --install
   ...
   2017-04-20 01:39:41.040 [INFO] Installing/upgrading packages.
   2017-04-20 01:39:45.641 [INFO] Upgrading resources of application 'CCP Account Management' (1 more to go)
   2017-04-20 01:39:50.089 [ERROR] ['/usr/local/pem/bin/ppm_ctl', '-b', '-q', '-f', '/usr/local/pem/etc/pleskd.props', 'install', '1', '2243', 'INSTALL'] exited with non-zero status 1, stderr: None, stdout: None
   An error has occurred, please select next action:
   (r)etry/abort/ignore/(c)onsole:  r
   2017-04-20 01:40:04.133 [WARNING] Retrying action executing atomic action 167560-POA-110028-Install-WebHostingLinuxApplication owner pleskd ...
   2017-04-20 01:40:04.477 [ERROR] ['/usr/local/pem/bin/ppm_ctl', '-b', '-q', '-f', '/usr/local/pem/etc/pleskd.props', 'install', '1', '2243', 'INSTALL'] exited with non-zero status 1, stderr: None, stdout: None
   An error has occurred, please select next action:
   (r)etry/abort/ignore/(c)onsole:  r

The same issue appears when running web-hosting-linux-upgrade-assistant:

[root@oa hotfix]# ./web-hosting-linux-upgrade-assistant --update
...
2017-05-11 13:42:57.184 [INFO] Updating service templates for owner 1...
2017-05-11 13:42:57.186 [ERROR] not well-formed (invalid token): line 1, column 0

The error may also appear in the Install additional packages on node XXX according role SHM_WEBSITE_MANAGER task

The following call trace appears in the log:

2017-05-11 13:42:57.184 [DEBUG] call method pem.addResourceTypeToServiceTemplate({'st_id': 18, 'rt_id': 1000251, 'owner_id': 1})
2017-05-11 13:42:57.186 [ERROR] not well-formed (invalid token): line 1, column 0
2017-05-11 13:42:57.187 [DEBUG] Traceback (most recent call last):
  File "./web-hosting-linux-upgrade-assistant", line 451, in <module>
    sys.exit(main())
  File "./web-hosting-linux-upgrade-assistant", line 429, in main
    update()
  File "./web-hosting-linux-upgrade-assistant", line 370, in update
    update_service_templates(ng_sts, whl_resources_limits)
  File "./web-hosting-linux-upgrade-assistant", line 333, in update_service_templates
    update_service_templates_by_owner(owner_id, ng_sts, whl_resources_limits)
  File "./web-hosting-linux-upgrade-assistant", line 45, in safe_ex
    result = method(*args, **kw)
  File "./web-hosting-linux-upgrade-assistant", line 305, in update_service_templates_by_owner
    source_sub_id=sub_id)
  File "/usr/lib/python2.7/site-packages/poaupdater/openapi.py", line 196, in __call__
    resp = getattr(self.api.server, self.name)(params)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1273, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1306, in single_request
    return self.parse_response(response)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 1476, in parse_response
    p.feed(data)
  File "/usr/lib64/python2.7/xmlrpclib.py", line 558, in feed
    self._parser.Parse(data, 0)
ExpatError: not well-formed (invalid token): line 1, column 0

Cause

Non-HTTPS OpenAPI connection is used in one of the installation scripts. This issue is reported to the OA maintenance team as POA-111185: "Installation of hotfix failed due to SSL for Public API is enabled in OAP 7.".

Resolution

Please contact your Account Manager or Pooled Technical Associates team (pta@odin.com) to trace the status of the issue.

As a workaround, SSL for Public API should be temporarily disabled during the installation.

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 e12cea1d47a3125d335d68e6d4e15e07 0871c0b47b3b86ae3b1af4c2942cd0ce 1941880841f714e458ae4dc3d9f3062d

Email subscription for changes to this article
Save as PDF