Access Manager upgrade fails when installation source on read only mounted NFS path

  • 7018630
  • 17-Feb-2017
  • 23-Feb-2017

Environment

NetIQ Access Manager 4.3
NetIQ Access Manager 4.2
NetIQ Access Manager 4.1

Situation

Access Manager 4.1 installed and working fine. WHen upgrading the AGs to NAM 4.2 (to test integration with other 4.1 AGs in the same cluster), the following error was noticed on the server console:
 
"Configuring the Apache Access Gateway:sed: couldn't open temporary file mag/activemq/conf//sedV6US2q: Read-only file system"
 
The upgrade claims to complete successfully but some AG services (ActiveMQ) do not come up as expected.
 
Moving the installation source to the AG itself allowed the install to complete successfully.

Resolution

Apply 4.3.1.
 
The old upgrade script had the following check that would fail:
 
        #------active mq-------
local tmp_active_mq="/var/opt/novell/activemq"
sed -i "s:\$AM_INSTALL_ACTIVEMQ_VAR\\$:$tmp_active_mq:g" mag/activemq/conf/activemq.xml
cp mag/activemq/conf/activemq.xml /opt/novell/activemq/conf/activemq.xml
 
The fix moves the failing sed request after the cp of activemq.xml
 
local tmp_active_mq="/var/opt/novell/activemq"
cp mag/activemq/conf/activemq.xml /opt/novell/activemq/conf/activemq.xml
sed -i "s:\$AM_INSTALL_ACTIVEMQ_VAR\\$:$tmp_active_mq:g" /opt/novell/activemq/conf/activemq.xml