000029705 - Cannot apply RSA Authentication Manager 8.1 SP1 patch due to special characters in OS user rsaadmin password

Document created by RSA Customer Support Employee on Jun 15, 2016Last modified by RSA Customer Support on Jan 2, 2020
Version 4Show Document
  • View in full screen mode

Article Content

Article Number000029705
Applies ToRSA Product Set: SecurID
RSA Product/Service Type: Authentication Manager
RSA Version/Condition: 8.1 SP1
IssueWhen trying to apply RSA Authentication Manager 8.1 SP1 patch to virtual appliance it fails with the following error message in the Advanced Status view:
[INFO] Invoking config engine goal UpdateRollback:preUpdate
1      2015-02-25 08:55:16,729 INFO: Arguments: [UpdateRollback.preUpdate]
1322   2015-02-25 08:55:18,050 INFO: Will not attempt to fix line endings in patch source files
1370   2015-02-25 08:55:18,098 INFO: Script source dir: /tmp/rsa_update/installer/config/src/scripts
1371   2015-02-25 08:55:18,099 INFO: Patch Script source dir: /tmp/rsa_update/iso/rsa/scripts
1593   2015-02-25 08:55:18,321 INFO: Reading configuration from Config.groovy
2702   2015-02-25 08:55:19,430 INFO: Running task UpdateRollback.preUpdate
6917   2015-02-25 08:55:23,645 INFO: Executing free
7381   2015-02-25 08:55:24,109 INFO: Total Memory: 8194248 KB
7386   2015-02-25 08:55:24,114 INFO: Using memory category 8GB
     [copy] Copying 1 file to /opt/rsa/am/updates/backup
     [copy] Copying /tmp/rsa_update/iso/PatchManifest.xml to /opt/rsa/am/updates/backup/PatchManifest.xml
    [mkdir] Created dir: /opt/rsa/am/updates/backup/opt/rsa/am/utils/etc
8084   2015-02-25 08:55:24,812 INFO: Copying /opt/rsa/am/utils/etc/patchHistory.dat to /opt/rsa/am/updates/backup/opt/rsa/am/utils/etc/patchHistory.dat
8493   2015-02-25 08:55:25,221 INFO: Initialized patch properties
8498   2015-02-25 08:55:25,226 INFO: Patch execution mode is set to: UPDATE
8498   2015-02-25 08:55:25,226 INFO: Database started is set to: false
8501   2015-02-25 08:55:25,229 INFO: Retrieving platform specification.
Exception in thread "Main Thread" : exec returned: 1
                at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:646)
                at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
                at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
                at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
                at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
                at PatchUtils.execCommand(PatchUtils.groovy:568)
                at PatchUtils$execCommand.callCurrent(Unknown Source)
                at PatchUtils.setCurrentPlatformSpec(PatchUtils.groovy:878)
                at PatchUtils$setCurrentPlatformSpec.call(Unknown Source)
                at PatchUtils.initPatchProperties(PatchUtils.groovy:98)
                at PatchUtils$initPatchProperties.call(Unknown Source)
                at UpdateRollback$_preUpdate_closure1.doCall(UpdateRollback.groovy:12)
                at UpdateRollback$_preUpdate_closure1.doCall(UpdateRollback.groovy)
                at Utils.withArtifacts(Utils.groovy:48)
                at Utils$withArtifacts.call(Unknown Source)
                at UpdateRollback.preUpdate(UpdateRollback.groovy:9)
                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)
Configuration step UpdateRollback:preUpdate [FAILED] [ERROR] Error: Failed to invoke update engine: Failed to prepare the update.
java.lang.Exception: Failed to prepare 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] Invoking config engine goal UpdateRollback:postUpdate
0      2015-02-25 08:55:27,054 INFO: Arguments: [UpdateRollback.postUpdate]
1680   2015-02-25 08:55:28,734 INFO: Will not attempt to fix line endings in patch source files
1718   2015-02-25 08:55:28,772 INFO: Script source dir: /tmp/rsa_update/installer/config/src/scripts
1719   2015-02-25 08:55:28,773 INFO: Patch Script source dir: /tmp/rsa_update/iso/rsa/scripts
1882   2015-02-25 08:55:28,936 INFO: Reading configuration from Config.groovy
2840   2015-02-25 08:55:29,894 INFO: Running task UpdateRollback.postUpdate
6862   2015-02-25 08:55:33,916 INFO: Executing free
7320   2015-02-25 08:55:34,374 INFO: Total Memory: 8194248 KB
7325   2015-02-25 08:55:34,379 INFO: Using memory category 8GB
7371   2015-02-25 08:55:34,425 INFO: Patch execution mode is set to: PRE_PHASE_FAILED
7419   2015-02-25 08:55:34,473 INFO: Performing postUpdate task DeleteWeblogicServerCache (Delete Weblogic caches)
7419   2015-02-25 08:55:34,473 INFO: Skipping Delete_Weblogic_caches due to services still running condition
7420   2015-02-25 08:55:34,474 INFO: Performing postUpdate task ServiceControl (Start All Services)
7420   2015-02-25 08:55:34,474 INFO: Skipping Start_All_Services due to services still running condition
7421   2015-02-25 08:55:34,475 INFO: Removing temporary file with patch properties /tmp/patch-properties.tmp
Configuration step UpdateRollback:postUpdate [SUCCESS]
Cause
  • The error occurs if special characters are used in the rsaadmin's password.
  • The patch runs shell scripts in the background and special characters may break the shell script.
  • Both forward slash ( / )  and backslash characters( \ ) cause the issue, but other special characters may also be an issue.
 

The user name rsaadmin is the default operating system user.  During Quick Setup another user name may have been selected. Ensure that the password for this user name does not include special characters.

ResolutionIt is suggested to use a dot as the special character for operating system user's password.  The password can be returned to the original string after the RSA Authentication Manager 8.1 SP1 patch is applied.
 

Be sure to run these steps on the primary first.  When done, move on to complete the steps on each replica.




  1. Login to the primary's Operations Console.
  2. Navigate to Administration > Change Operating System Password
  3. Change the rsaadmin's password, ensuring that a dot ( . ) is the only special character in use.
  4. Using 000038244 - SSH to an RSA Authentication Manager server, connect to the RSA AUthentication Manager server.
  5. Login to the primary server:



login as: rsaadmin
Using keyboard-interactive authentication.
Password:<enter operating system password>
Last login: Wed Dec 18 16:39:41 2019 from jumphost.vcloud.local
RSA Authentication Manager Installation Directory: /opt/rsa/am



  1. Navigate to /opt/rsa/am/utils/



rsaadmin@am81p:~> cd /opt/rsa/am/utils



  1. Generate a classpath.jar with classpath manifest to locate third party JAR files:



rsaadmin@am82p:/opt/rsa/am/utils> ./rsautil -g
Generating RSAUTIL Class-Path Manifest JAR file.
RSAUTIL Class-Path Manifest JAR file generated successfully.



  1. Restore the system fingerprint:



rsaadmin@am81p:/opt/rsa/am/utils> ./rsautil manage-secrets -a recover
Please enter OC Administrator username: <enter Operations Console administrator name>
Please enter OC Administrator password: <enter Operations Console administrator password>
Machine fingerprint restored successfully.



  1. Navigate to /opt/rsa/am/server and restart all RSA Authentication Manager services for the change to take effect:



rsaadmin@am81p:/opt/rsa/am/utils> cd ../server
rsaadmin@am81p:/opt/rsa/am/server> ./rsaserv restart all
Stopping RSA RADIUS Server: **
RSA RADIUS Server                                          [SHUTDOWN]
Stopping RSA Runtime Server: ****
RSA Runtime Server                                         [SHUTDOWN]
Stopping RSA Console Server: ***
RSA Console Server                                         [SHUTDOWN]
Stopping RSA Replication (Primary): *
RSA Replication (Primary)                                  [SHUTDOWN]
Stopping RSA Database Server: **
RSA Database Server                                        [SHUTDOWN]
Stopping RSA RADIUS Server Operations Console: **
RSA RADIUS Server Operations Console                       [SHUTDOWN]
Stopping RSA Administration Server with Operations Console: **
RSA Administration Server with Operations Console          [SHUTDOWN]
Starting RSA Database Server:
Starting RSA Administration Server with Operations Console: ****************************
RSA Administration Server with Operations Console          [RUNNING]
Starting RSA RADIUS Server Operations Console: / RSA Database Server                  [RUNNING   *****************
RSA RADIUS Server Operations Console                       [RUNNING]
Starting RSA Runtime Server: **********************************
RSA Runtime Server                                         [RUNNING]
Starting RSA RADIUS Server: **
RSA RADIUS Server                                          [RUNNING]
Starting RSA Console Server: *
Starting RSA Replication (Primary): ****
RSA Replication (Primary)                                  [RUNNING]*****************************
RSA Console Server                                         [RUNNING]


  1. Apply the RSA Authentication Manager 8.1 SP1 patch.
  2. Repeat the above steps on all instances.

Attachments

    Outcomes