Search Engine: Elastic

Article ID: 134012, created on May 11, 2019, last review on May 11, 2019

  • Applies to:
  • Operations Automation

Symptoms

The following error is represented on attempt to upgrade application endpoint:

[root@endpoint ~]# rpm -Uvh Acronis/rpms/acronis-backup-cloud-2.2-1972.premium.x86_64.rpm
Preparing...                          ################################# [100%]
Non zero exit while checking Odin Automation Environment
error: %pre(acronis-backup-cloud.premium-2.2-1972.el7.centos.noarch) scriptlet failed, exit status 1
error: acronis-backup-cloud.premium-2.2-1972.el7.centos.noarch: install failed
error: acronis-backup-cloud.premium-2.2-1925.noarch: erase skipped

With increased verbosity, it can be seen that upgrade fails on the following step:

[root@endpoint ~]# rpm -Uvvh Acronis/rpms/acronis-backup-cloud-2.2-1972.premium.x86_64.rpm

...

+ XML_TXN='<?xml version='\''1.0'\'' encoding='\''utf-8'\''?><methodCall><methodName>txn.Begin</methodName><params><param><value><struct><member><name>request_id</name><value><string>1557402710</string></value></member></struct></value></param></params></methodCall>'
++ curl -s -X POST -d '<?xml version='\''1.0'\'' encoding='\''utf-8'\''?><methodCall><methodName>txn.Begin</methodName><params><param><value><struct><member><name>request_id</name><value><string>1446412510</string></value></member></struct></value></param></params></methodCall>' http://192.168.0.99:8440/RPC2
+ RESPONSE='<html><head><title>Error</title></head><body>Unauthorized</body></html>'
+ [[ 0 -ne 0 ]]
++ echo '<html><head><title>Error</title></head><body>Unauthorized</body></html>'

Cause

HTTP Authentication option is enabled for Public API of Management Node. Upgrade script tries to execute API method without credential specified and fails.

Resolution

Disable HTTP Authentication and perform the upgrade:

Provider's control panel > Settings > Public API > Edit

5356b422f65bdad1c3e9edca5d74a1ae 8fc71f07abe5b233fea1ae0377cd5e3d

Email subscription for changes to this article
Save as PDF