AM 8.1 patch upgrade fails with error "Failed to finalize the update"
2 years ago
Originally Published: 2014-11-25
Article Number
000049649
Applies To
RSA Product Set: SecurID
RSA Product/Service Type: Authentication Manager
RSA Version/Condition: 8.1.0
Platform: Other
Platform (Other): na
O/S Version: null
Product Name: RSA-0010810
Product Description: RSA-0010810
Issue
Symptom:
1. AM 8.1 patch upgrade fails with error "Failed to finalize the update".

2. Update log generated from the Operations Console contain following error:

16182 2014-08-12 20:34:56,064 INFO: Performing postUpdate task ServiceControl (Start All Services)
16188 2014-08-12 20:34:56,070 INFO: Executing /opt/rsa/am/server/rsaserv start all on command line
258906 2014-08-12 20:38:58,788 FATAL: 
Failed to run command, return code: 1
sys-package-mgr: processing modified jar, '/opt/rsa/am/config/classpaths/wrapperClasspath.jar'
. Expression: (proc.exitValue() == 0)
java.lang.AssertionError: Failed to run command, return code: 1
sys-package-mgr: processing modified jar, '/opt/rsa/am/config/classpaths/wrapperClasspath.jar'
. Expression: (proc.exitValue() == 0)
at Utils.executeCommand(Utils.groovy:350)
at Utils$executeCommand.call(Unknown Source)
at ServiceControl.startAll(ServiceControl.groovy:384)
at ServiceControl$startAll.call(Unknown Source)
at UpdateRollback.postUpdate_ServiceControl_Start_All_Services(UpdateRollback.groovy:598)
at UpdateRollback$_postUpdate_closure3.doCall(UpdateRollback.groovy:87)
at UpdateRollback$_postUpdate_closure3.doCall(UpdateRollback.groovy)
at Utils.withArtifacts(Utils.groovy:48)
at Utils$withArtifacts.call(Unknown Source)
at UpdateRollback.postUpdate(UpdateRollback.groovy:81)
at com.rsa.plugins.install.GroovyInstallEngine.invokeScript(GroovyInstallEngine.groovy:68)
at com.rsa.plugins.install.GroovyInstallEngine$_runTask_closure2.doCall(GroovyInstallEngine.groovy:57)
at com.rsa.plugins.install.GroovyInstallEngine.runTask(GroovyInstallEngine.groovy:60)
at com.rsa.plugins.install.GroovyInstallEngine$_runTasks_closure3.doCall(GroovyInstallEngine.groovy:106)
at com.rsa.plugins.install.GroovyInstallEngine.runTasks(GroovyInstallEngine.groovy:105)
at com.rsa.plugins.install.GroovyInstallEngine$runTasks.call(Unknown Source)
at com.rsa.plugins.install.CommandLineInstallEngine.main(CommandLineInstallEngine.groovy:40)
Exception in thread "Main Thread" java.lang.AssertionError: 
Failed to run command, return code: 1
sys-package-mgr: processing modified jar, '/opt/rsa/am/config/classpaths/wrapperClasspath.jar'
. Expression: (proc.exitValue() == 0)
at com.rsa.plugins.install.CommandLineInstallEngine.fail(CommandLineInstallEngine.groovy:287)
at com.rsa.plugins.install.CommandLineInstallEngine$fail.call(Unknown Source)
at com.rsa.plugins.install.GroovyInstallEngine.fail(GroovyInstallEngine.groovy:35)
at com.rsa.plugins.install.GroovyInstallEngine$fail.callCurrent(Unknown Source)
at com.rsa.plugins.install.GroovyInstallEngine.invokeScript(GroovyInstallEngine.groovy:88)
at com.rsa.plugins.install.GroovyInstallEngine$_runTask_closure2.doCall(GroovyInstallEngine.groovy:57)
at com.rsa.plugins.install.GroovyInstallEngine.runTask(GroovyInstallEngine.groovy:56)
at com.rsa.plugins.install.GroovyInstallEngine$_runTasks_closure3.doCall(GroovyInstallEngine.groovy:106)
at com.rsa.plugins.install.GroovyInstallEngine.runTasks(GroovyInstallEngine.groovy:105)
at com.rsa.plugins.install.GroovyInstallEngine$runTasks.call(Unknown Source)
at com.rsa.plugins.install.CommandLineInstallEngine.main(CommandLineInstallEngine.groovy:40)
Configuration step UpdateRollback:postUpdate [FAILED]
[ERROR] Error: Failed to invoke update engine: Failed to finalize the update.
java.lang.Exception: Failed to finalize the update.
at com.rsa.am.updateengine.tasks.BaseUpdateEngineTask.doExecute(BaseUpdateEngineTask.java:56)
at com.rsa.am.updateengine.tasks.Task.execute(Task.java:136)
at com.rsa.am.updateengine.components.impl.TaskManagerImpl.doExecuteTask(TaskManagerImpl.java:86)
at com.rsa.am.updateengine.components.impl.TaskManagerImpl.execute(TaskManagerImpl.java:41)
at com.rsa.am.updateengine.components.impl.UpdateInstallerImpl.run(UpdateInstallerImpl.java:30)
[INFO] Deleting update installer temporary directory

3. The PrimaryReplication.log shows following error:
@@@2014-10-17 20:44:09,485 FATAL [WrapperSimpleAppMain ] 
Service.start(98) | somhborsapri.us.oldmutual.net,,,,Unhandled exception during service start.
java.lang.NoClassDefFoundError: org/springframework/jdbc/core/ResultSetExtractor
at com.rsa.replication.PrimaryReplicationService.getServiceRunnables(PrimaryReplicationService.java:47)
at com.rsa.replication.util.Service.start(Service.java:93)
at com.rsa.replication.PrimaryReplicationService.main(PrimaryReplicationService.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:247)
at java.lang.Thread.run(Thread.java:680)

 
Cause
The rsautil file under directory /opt/rsa/am/utils/ was damaged somehow and was set to 0 byte.
Resolution
Rollback to previous patch from Operations Console first. Then make a copy of rsautil file from another instance. Try apply the patch again.