Problem
During a NetBackup 8.1 master server installation on HPUX, the web services fail to start and the installation stops. This issue will be resolved in the next version of NetBackup.Error Message
Starting the NetBackup Web Management Console.
Deploying Server Certificate. This may take a few minutes.
WARNING: The nbwmc daemon is not responsive. Cannot deploy certificates.
Solution
Follow these steps to manually start the web services:
1. Copy the script below and save it any directory on the master server.
2. If you did not install NetBackup to the default location, in the script change the following directory path for the Tomcat server and the Web Management Console.
TOMCAT_INSTALL_DIR=/usr/openv/wmc/webserver/
WMC_INSTALL_DIR=/usr/openv/wmc/
3. Ensure that the JRE_HOME environment variable contains the correct Java Runtime Environment (JRE) path.
4. Save any changes that you made and run the script.
5. The script restarts the web services.
Perform the NetBackup master server installation again.
NOTE: If you run "configureWmc" command after the HotFix of article.100044601 was installed, security.war or netbackup.war is replaced with the original file. Please refer to the following article for details and execute the steps described in the Solution section.
Tomcat and nbwebsvc certificates are not renewed after HotFix in article.100044601 was applied.
configureWmc.sh
#!/bin/sh
# $Id$
#***************************************************************************
#* $Copyright: Copyright (c) 2017 Veritas Technologies LLC. All rights reserved $
#***************************************************************************
/usr/openv/netbackup/bin/nbwmc stop
sleep 5;
# Ensure that TOMCAT_INSTALL_DIR points to the correct NetBackup installation directory
# and that the JRE_HOME variable contains the correct path to the Java Runtime Environment (JRE).
#
TOMCAT_INSTALL_DIR=/usr/openv/wmc/webserver/
WMC_INSTALL_DIR=/usr/openv/wmc/
LOG_FILE=/usr/openv/wmc/configureWmc_Patch.log
JRE_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.102-4.b14.el7.x86_64/jre/ WAR_LIST="nbwebservice"
for warname in ${WAR_LIST}
do
rm -rf ${TOMCAT_INSTALL_DIR}/webapps/${warname}
rm -f ${TOMCAT_INSTALL_DIR}/webapps/${warname}.war
if [ -f ${WMC_INSTALL_DIR}/war/${warname}.war ] ; then
cp ${WMC_INSTALL_DIR}/war/${warname}.war ${TOMCAT_INSTALL_DIR}/webapps
chmod 640 ${TOMCAT_INSTALL_DIR}/webapps/${warname}.war
CUR_DIR=`pwd`
mkdir -p ${TOMCAT_INSTALL_DIR}/webapps/${warname}
cd ${TOMCAT_INSTALL_DIR}/webapps/${warname}
${JRE_HOME}/bin/java -cp ${WMC_INSTALL_DIR}/lib/goodies.jar com.Veritas.nbu.web.goodies.UnZip ${TOMCAT_INSTALL_DIR}/webapps/${warname}.war >> ${LOG_FILE} 2>&1
ret=$?
if [ ${ret} -ne 0 ] ; then
echo "The return code from unzip ${ret}" >> ${LOG_FILE} 2>&1
echo "The return code from goodies.jar ${ret}" >> ${LOG_FILE} 2>&1
cd ${CUR_DIR}
rm -rf ${TOMCAT_INSTALL_DIR}/webapps/${warname}
fi
if [ -d ${TOMCAT_INSTALL_DIR}/webapps/${warname} ]; then
echo " Patch to correct NetBackup Web Management Console has been applied successfully."
fi
cd ${CUR_DIR}
fi
done
/usr/openv/netbackup/bin/nbwmc start