Subscribe

API-Service 1.2 install problem

Environment:

  - ESXi/vSphere 6

  - RHEL 7.1 (newly built with 12GB and 120GB free under /opt)

  - API-Services 1.2P1

 

I'm unable to get a clean install of OnComamnd API Services on a new out-of-the-box RHEL 7.1 system. I've attached a console log of not just running the install sript but most of the the prerequiste setup steps before the install. Best I can tell the first problem appears to be around this part of the install log. Anyone have any ideas or pointers?   

 

   ...

Installing : 1:java-1.8.0-openjdk-headless-1.8.0.121-0.b13.el7_3.x86_64 16/34
Installing : 1:java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64          17/34
Installing : netapp-application-server-1.4.0-2016.09.J2287.x86_64       18/34
Installing : netapp-platform-base-1.4.0-2016.09.J2287.x86_64            19/34

 

FAILURE: Unable to prepare UDS. MySQL command failed.

 

warning: %post(netapp-platform-base-1.4.0-2016.09.J2287.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package netapp-platform-base-1.4.0-2016.09.J2287.x86_64

 

FAILURE: netapp-platform-base package is installed, but in corrupt state. Install netapp-platform-base package and try again.

   ...

Re: API-Service 1.2 install problem

You're installing MySQL 5.7, but the installer explicitly says < 5.7...

 

Ensure that you have the following packages installed or enabled in your yum repository.

a) Java Runtime Environment [JAVA 1.8.0.71 or later, Oracle or OpenJDK only].
b) mysql-community-server, 5.6.28 or later but less than 5.7.
c) mysql-community-client, 5.6.28 or later but less than 5.7.
d) mysql-community-common, 5.6.28 or later but less than 5.7.
e) mysql-community-libs, 5.6.28 or later but less than 5.7.
f) mysql-community-libs-compat, 5.6.28 or later [needed only for RHEL or Centos 6.x]
g) zip and unzip.

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: API-Service 1.2 install problem

I am aware of the MySql  5.6.28 or later but not 5.7 issue but thought this was addressed by the blow install step ... which I did. Isn't the installer picking what version of MySql is installed through yum? ... and I've got 5.6 enabled and 5.7 disabled per below.

---

  1. Configure the yum repository for MySQL: Edit /etc/yum.repos.d/mysql-community.repo

    a. Disable [mysql57-community] by setting the field enabled = 0

    b. Enable [mysql56-community] by setting the field enabled =1

---

 

Re: API-Service 1.2 install problem

Is there anything in the MySQL or other app logs?  

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.

Re: API-Service 1.2 install problem

Bad thing is I started this pet-project one day before taking a week vacation. But before taking off I looked and the only seemingly related logs I found where under /var/log/apiserver and /var/log/ocie

 

I haven't looked at them carefully myself yet but here they are attached

 

 

Re: API-Service 1.2 install problem

I have this exact same problem:

 

 

Total size: 315 M
Installed size: 315 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
** Found 4 pre-existing rpmdb problem(s), 'yum check' output follows:
ipa-client-4.4.0-14.el7.centos.7.x86_64 has installed conflicts freeipa-client: ipa-client-4.4.0-14.el7.centos.7.x86_64
ipa-client-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-client-common: ipa-client-common-4.4.0-14.el7.centos.7.noarch
ipa-common-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-common: ipa-common-4.4.0-14.el7.centos.7.noarch
ipa-python-compat-4.4.0-14.el7.centos.7.noarch has installed conflicts freeipa-python-compat: ipa-python-compat-4.4.0-14.el7.centos.7.noarch
Installing : ocie-serverbase-1.4.0-2016.09.J2287.x86_64 1/6
Installing : netapp-application-server-1.4.0-2016.09.J2287.x86_64 2/6
Installing : netapp-platform-base-1.4.0-2016.09.J2287.x86_64 3/6

FAILURE: Unable to prepare UDS. MySQL command failed.

warning: %post(netapp-platform-base-1.4.0-2016.09.J2287.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package netapp-platform-base-1.4.0-2016.09.J2287.x86_64

FAILURE: netapp-platform-base package is installed, but in corrupt state. Install netapp-platform-base package and try again.

error: %pre(ocie-server-0:1.4.0-2016.08.J2316.x86_64) scriptlet failed, exit status 255
Error in PREIN scriptlet in rpm package ocie-server-1.4.0-2016.08.J2316.x86_64
error: ocie-server-0:1.4.0-2016.08.J2316.x86_64: install failed

ocie-server package is not installed. Install ocie-server package and try again.

error: %pre(ocie-au-0:1.4.0-2016.08.J2316.x86_64) scriptlet failed, exit status 255
Error in PREIN scriptlet in rpm package ocie-au-1.4.0-2016.08.J2316.x86_64
error: ocie-au-0:1.4.0-2016.08.J2316.x86_64: install failed
Installing OnCommand API Services
Installing : api-server-1.2.0-1702192115.x86_64 6/6
Error unpacking rpm package api-server-1.2.0-1702192115.x86_64
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
error: unpacking of archive failed on file /opt/netapp/essentials/au/conf/preferences/disable-zapis-list.properties;58f7c98e: cpio: open
Verifying : netapp-application-server-1.4.0-2016.09.J2287.x86_64 1/6
Verifying : ocie-serverbase-1.4.0-2016.09.J2287.x86_64 2/6
Verifying : netapp-platform-base-1.4.0-2016.09.J2287.x86_64 3/6
Verifying : ocie-server-1.4.0-2016.08.J2316.x86_64 4/6
Verifying : api-server-1.2.0-1702192115.x86_64 5/6
Verifying : ocie-au-1.4.0-2016.08.J2316.x86_64 6/6

Installed:
netapp-application-server.x86_64 0:1.4.0-2016.09.J2287 netapp-platform-base.x86_64 0:1.4.0-2016.09.J2287 ocie-serverbase.x86_64 0:1.4.0-2016.09.J2287

Failed:
api-server.x86_64 0:1.2.0-1702192115 ocie-au.x86_64 0:1.4.0-2016.08.J2316 ocie-server.x86_64 0:1.4.0-2016.08.J2316

Complete!
Error installing OnCommand API Services.

Re: API-Service 1.2 install problem

I encountered the very same error when installing Service Level Manager (as it contains API services).

After contacting product management I got the following in response:

 

We are hitting this error due to mysql-5.6.36, which was released on April 10th .

 

Currently, the workaround for fixing this is to manually install mysql-community-server-5.6.35

 

Either that or wait until a patch is released.

 

regards, Niels

Re: API-Service 1.2 install problem

So,

 

[root@netapp-test ~]# yum remove mysql-server

[root@netapp-test ~]# yum remove mysql-community-common

 

 

[root@netapp-test ~]# yum -q list available --showduplicates mysql-community-common

 

Available Packages
mysql-community-common.i686 5.6.15-4.el7 mysql56-community
....
mysql-community-common.i686 5.6.35-2.el7 mysql56-community
mysql-community-common.x86_64 5.6.35-2.el7 mysql56-community
mysql-community-common.i686 5.6.36-2.el7 mysql56-community
mysql-community-common.x86_64 5.6.36-2.el7 mysql56-community

 

[root@netapp-test ~]# yum install mysql-community-common-5.6.35-2.el7

 

[root@netapp-test ~]# yum install mysql-community-server-5.6.35-2.el7

 

Total size: 189 M
Installed size: 189 M
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : netapp-platform-base-1.4.0-2016.09.J2287.x86_64 1/4
Redirecting to /bin/systemctl start mysqld.service
/var/tmp/rpm-tmp.eRx6vE: line 540: /opt/netapp/essentials/jboss/bin/add-user.sh: No such file or directory
warning: %post(netapp-platform-base-1.4.0-2016.09.J2287.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package netapp-platform-base-1.4.0-2016.09.J2287.x86_64

FAILURE: netapp-platform-base package is installed, but in corrupt state. Install netapp-platform-base package and try again.

error: %pre(ocie-server-0:1.4.0-2016.08.J2316.x86_64) scriptlet failed, exit status 255
Error in PREIN scriptlet in rpm package ocie-server-1.4.0-2016.08.J2316.x86_64
error: ocie-server-0:1.4.0-2016.08.J2316.x86_64: install failed

ocie-server package is not installed. Install ocie-server package and try again.

error: %pre(ocie-au-0:1.4.0-2016.08.J2316.x86_64) scriptlet failed, exit status 255
Error in PREIN scriptlet in rpm package ocie-au-1.4.0-2016.08.J2316.x86_64
error: ocie-au-0:1.4.0-2016.08.J2316.x86_64: install failed
Installing OnCommand API Services
Installing : api-server-1.2.0-1702192115.x86_64 4/4
Error unpacking rpm package api-server-1.2.0-1702192115.x86_64
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
warning: user jboss does not exist - using root
error: unpacking of archive failed on file /opt/netapp/essentials/au/conf/preferences/disable-zapis-list.properties;58f8b135: cpio: open
Verifying : netapp-platform-base-1.4.0-2016.09.J2287.x86_64 1/4
Verifying : ocie-server-1.4.0-2016.08.J2316.x86_64 2/4
Verifying : api-server-1.2.0-1702192115.x86_64 3/4
Verifying : ocie-au-1.4.0-2016.08.J2316.x86_64 4/4

Installed:
netapp-platform-base.x86_64 0:1.4.0-2016.09.J2287

Failed:
api-server.x86_64 0:1.2.0-1702192115 ocie-au.x86_64 0:1.4.0-2016.08.J2316 ocie-server.x86_64 0:1.4.0-2016.08.J2316

Complete!
Error installing OnCommand API Services.

 

 

 

#Same Issue with 5.6.28 (not pictured here)

 

I guess I am going to try a new server build on a different supported OS...

Re: API-Service 1.2 install problem

Hi,

 

I had similar trouble with OCI on Linux.

All of this was related to wrong permissions.

 

chmod 755 /var/log/netapp did it for me.

 

Marcus

Re: API-Service 1.2 install problem

Using 5.6.35 did it for me.

But the hardest part was to remove the previously currupted installation of the netapp-platform-base package as is was a dependancy of mysql-community-server and needed to be cleanly removed before mysql could be successfully uninstalled.

 

 

regards, Niels