failed upgrade from 4.5.3 to 5.0

  • 7025226
  • 30-Jul-2021
  • 30-Jul-2021

Environment

Access Manager 5.0

Situation

During the upgrade from 4.5.3 to 5.0 the upgrade failed right after reading the configuration from /opt/novell/syslog/Auditlogging.cfg. 


Upgrade eDir log: 

INFO: Logged in user cn=admin,o=novell, hashcode: 665726928
Saving autopass changes to eDirectory.
Reading configuration from /opt/novell/syslog/Auditlogging.cfg
LOGDEST=PA

FORMAT=csv

SERVERIP= 

SERVERPORT=

INSTALLTYPE=upgrade

SECONDARYFORMAT=
INTERSETFORMAT=
came to NSureAuditLog.java:Full License Installed Successfully.
Initiating NSure Audit Log: Thread: main, Time: 10:40:06 0929
Completed NSure Audit Log: Thread: main, Time: 10:40:06 0931
Exception in thread "main" java.lang.NoClassDefFoundError: com/novell/naudit/LogEvent
              at com.novell.nidp.logging.NSureAuditLog.A(y:2654)
              at com.novell.nidp.logging.NSureAuditLog.A(y:2057)
              at com.novell.nidp.logging.NSureAuditLog.A(y:2852)
              at com.novell.nidp.logging.NSureAuditLog.B(y:1653)
              at com.novell.nidp.logging.NSureAuditLog.A(y:2310)
              at com.novell.nidp.logging.NSureAuditLog.A(y:1536)
              at com.novell.nidp.logging.NSureAuditLog.A(y:2854)
              at com.novell.nidp.logging.NSureAuditLog$AC.auditLicenseInstalled(y:2388)
              at com.volera.vcdn.application.sc.core.AuditManager.auditLicenseInstalled(AuditManager.java:203)
              at DatastoreManager.installFullLicense(DatastoreManager.java:1838)
              at DatastoreManager.main(DatastoreManager.java:1940)
Jul 27, 2021 10:40:07 AM com.volera.vcdn.application.sc.core.DeviceManager$1 run
WARNING: Could not get health from device
Health Module not initialized.<!-- HealthModule.java:49 VCDNException::ErrorCode=sc.health.err.module.not.initialized,ResourceBundle=resources.application.sc.Resource,MessageKey=sc.health.err.module.not.initialized -->
              at com.volera.vcdn.application.sc.health.HealthModule.getHealthModule(HealthModule.java:49)
              at com.volera.vcdn.application.sc.health.HealthCheck.checkHealth(HealthCheck.java:96)
              at com.volera.vcdn.application.sc.health.HealthCheck.checkHealth(HealthCheck.java:80)
              at com.volera.vcdn.application.sc.core.DeviceManager$1.run(DeviceManager.java:174)  

Resolution


1. Stop the upgrade and roll back to a previous snapshot.

2. Stop the admin console (rcnovell-ac stop) and stop edir (ndsmanage stopall).

3. If lcache is running (ps -ef | grep lcache), kill it. 

4. rpm -qa | grep AUDT to find all the old novell AUDT RPMs.

5. Remove each one using rpm -e rpm_name. 

6. go to /opt/novel/syslog/Auditlogging .cfg

Note: if Auditlogging.cfg is not in the above location, run a "find" to locate it.

find these entries

LOGDEST=PA
FORMAT=csv
INSTALLTYPE=upgrade

Change to 

LOGDEST=console
FORMAT=json 
INSTALLTYPE=fresh

7. Start edir back up (ndsmanage startall) and the admin console (rcnovell-ac start).

8. Make sure everything is “green” on the admin console.

THEN run the upgrade again.



Cause

During the upgrade the file Auditlogging .cfg is moved to a new location /opt/novel/syslog/. The issue occurs when the upgrade reads the file. If NAM has an upgrade path that had an old version that still supported the PA (Platform Agent) than the Auditlogging.cfg file might contain entries that will cause the upgrade to fail.