Cannot uninstall Access Gateway Service with NAM 4.0

  • 7014113
  • 14-Nov-2013
  • 07-Jan-2014

Environment

NetIQ Access Manager 4.0
NetIQ Access Gateway Service On Linux (RHEL or SLES)

Situation

Trying to run the uninstall.sh script from the NAM 4.0 Linux based Access Gateway Service (AGS) on 
either RHEL or SLES will fail with the following message:

"The uninstall encountered an error while uninstalling Novell Access Gateway Service Please review the logfile at /tmp/novell_access_manager_uninstall.log for more details."

Looking at this file reports that

"Performing standard uninstall on Thu Nov 14 14:51:46 IST 2013 error: package novell-ag-meta is not installed"

Resolution

Manually modify the uninstall.sh script and remove references to this novell-ag-meta package.

For example, locate the following command in the uninstall.sh script

"rpm -e --allmatches --nodeps novell-apache-gateway novell-magappliance-tomcat-config novell-nacm-apache novell-access-manager-logging novell-access-manager-alert novell-access-manager-audit novell-activemq novell-nesp-server novell-apache-gateway-session-cache novell-access-manager-dcc novell-ag-meta liblog4cxx10 liblog4cxx-devel log4cxx-debuginfo novell-nacm-apache-extra >> "${LOG_PATH}" 2>&1 || display_error_and_exit "Novell Access Gateway Service""

and replace it with

"rpm -e --allmatches --nodeps novell-apache-gateway novell-magappliance-tomcat-config novell-nacm-apache novell-access-manager-logging novell-access-manager-alert novell-access-manager-audit novell-activemq novell-nesp-server novell-apache-gateway-session-cache novell-access-manager-dcc liblog4cxx10 liblog4cxx-devel log4cxx-debuginfo novell-nacm-apache-extra >> "${LOG_PATH}" 2>&1 || display_error_and_exit "Novell Access Gateway Service""

Additional Information

Running the uninstall.sh bash script in debug mode with 'bash -x ./uninstall.sh' shows the following output and confirms that it is the rpm removal script that fails:

+ UNINSTALL_MAG=0
+ MAG_INSTALLED=1
+ rpm --quiet -q novl-sslvpn
+ JAVA_HOME=/opt/novell/java
+ '[' 0 -eq 0 ']'
+ '[' 1 -eq 0 ']'
+ '[' 0 -eq 0 ']'
+ echo -n Uninstalling Novell Access Gateway Service:
+ /etc/init.d/novell-apache2 stop
+ /etc/init.d/novell-mag stop
+ /etc/init.d/novell-agscd stop
+ rpm --quiet -q novl-sslvpn
+ SSLVPN_ON=1
+ rpm --quiet -q novell-jcc
+ DEVRC=0
+ rpm -e --allmatches --nodeps novell-apache-gateway
novell-magappliance-tomcat-config novell-nacm-apache
novell-access-manager-logging novell-access-manager-alert
novell-access-manager-audit novell-activemq novell-nesp-server
novell-apache-gateway-session-cache novell-access-manager-dcc novell-ag-meta
liblog4cxx10 liblog4cxx-devel log4cxx-debuginfo novell-nacm-apache-extra
+ display_error_and_exit 'Novell Access Gateway Service'
+ echo
+ echo
+ echo The uninstall encountered an error while uninstalling Novell Access
Gateway Service
+ echo Please review the logfile at /tmp/novell_access_manager_uninstall.log
for more details.
+ echo
+ exit 1

Feedback service temporarily unavailable. For content questions or problems, please contact Support.