Error: "/etc/init.d/novell-tomcat7: No such file or directory" upgrading NAM appliance from 4.1 to 4.3

  • 7018447
  • 05-Jan-2017
  • 05-Jan-2017

Environment

NetIQ Access Manager 4.2
NetIQ Access Manager 4.1
NetIQ Access Manager 4.0

Situation

Trying to upgrade NAM appliance from NAM 4.1.1.1-9 to NAM.4.3 but the upgrade fails in iManager section with the following error reported in the install/upgrade logs under /tmp/novell_access_manager/:

Started installation at 2016-12-22_14:59:34

Installing the Access Manager 4.1.2.0-23 version

___________________________________________________

 

Upgrading Novell iManager:`/var/opt/novell/iManager/nps/packages/iman277_patch5.npm' -> `/tmp/inst_novlwww/iman277_patch5.npm'

`/software/novell-access-manager-4.1.2.0-23/utils/nids_install.jar' -> `/tmp/inst_novlwww/nids_install.jar'

/software/novell-access-manager-4.1.2.0-23/scripts/install_utility_functions.sh: line 829: /etc/init.d/novell-tomcat7: No such file or directory


Trying to workaround the issue, admin decided to try to upgrade to 4.2.0/4.2.1/4.2.2 but always seeing the same results.

In the lab environment, everything works perfectly upgrading from the same version as we tried in production.

Checked the script in the error part:

[….]

        then

                local AC_TOMCAT_INIT_SCRIPT="/etc/init.d/novell-tomcat7"

                "${AC_TOMCAT_INIT_SCRIPT}" restart >> "${PLUGIN_INSTALL_LOG}" 2>&1

                INSTALL_TOMCAT_START_COUNT=30

                while [ ! -d "${TOMCAT_NPS_WORK}" ]

[….]

 

 

In the working lab environment, the /etc/init.d/novell-tomcat7 file does NOT exists neither before and after the installation.

Resolution

Create the /var/opt/novell/tomcat7/work/Catalina/localhost/nps dirctory and make sure the owner is novlwww:novlwww before retrying the upgrade.

What happens is that the upgrade script checks if /var/opt/novell/tomcat7/work/Catalina/localhost/nps exists. If it sees that the file does not exist, it tries to start "/etc/init.d/novell-tomcat7" that is not present and therefor returns the error we saw.

       local TOMCAT_NPS_WORK

        if [ ! -d "${TOMCAT_NPS_WORK}" ]

        then

                local AC_TOMCAT_INIT_SCRIPT="/etc/init.d/novell-tomcat7"

 

In the production environment the “nps” directory under /var/opt/novell/tomcat7/work/Catalina/localhost/ was not present for some reason…

copied it from another installation preserving with -p ownership etc…and everything went through fine.