Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-9346

Updates from 5.5 and 6.0 are not working anymore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: OpenIDM 5.5.0, OpenIDM 6.0.0
    • Fix Version/s: OpenIDM 5.5.0
    • Component/s: _Update
    • Labels:
    • Environment:
      OpenIDM version "5.5.0-SNAPSHOT" (revision: ab967b0)

      Description

      Since OPENIDM-9330 was merged in 5.5 and 6.0, some updates from these version are not working anymore. When performing an update that has some repo update and engine update, then the 2 phases are working OK. But when we launch a minimal update that does not have repo update, then it fails.

      Note that I am not 100% sure of when/how those update problems occurs, but here are some easy steps to reproduce it

      1) launch OpenIDM 5.5.0-SNAPSHOT and copy the update ZIP provided in this ticket in openidm/bin/update (this update just does a patch on a conf file)

      2) launch the first phase of the update (repo update):

      ./cli.sh update  --acceptLicense  --user openidm-admin:openidm-admin  --url http://localhost:8080/openidm update_with_script_conf_file_patched_5.5.zip
      Executing ./cli.sh...
      Starting shell in /Users/laurent/Installs/openidm
      Sep 24, 2017 9:22:01 AM org.forgerock.openidm.core.FilePropertyAccessor loadProps
      INFO: Using properties at /Users/laurent/Installs/openidm/conf/boot/boot.properties
      License was accepted via command line argument.
      No repository updates included in the archive.
      

      => this is normal, there is no repo update

      3) launch the second phase of the update (engine update)

      ./cli.sh update  --skipRepoUpdatePreview --acceptLicense  --user openidm-admin:openidm-admin  --url http://localhost:8080/openidm update_with_script_conf_file_patched_5.5.zip
      Executing ./cli.sh...
      Starting shell in /Users/laurent/Installs/openidm
      Sep 24, 2017 9:22:22 AM org.forgerock.openidm.core.FilePropertyAccessor loadProps
      INFO: Using properties at /Users/laurent/Installs/openidm/conf/boot/boot.properties
      License was accepted via command line argument.
      Repository update preview was skipped.
      Pausing the Scheduler
      Scheduler has been paused.
      Waiting for running jobs to finish.
      All running jobs have finished.
      Entering into maintenance mode...
      Now in maintenance mode.
      Installing the update archive update_with_script_conf_file_patched_5.5.zip
      Update procedure is still processing...
      The update process is complete.
      org.forgerock.json.resource.InternalServerErrorException: Update is not currently running
      	at org.forgerock.json.resource.ResourceException.newResourceException(ResourceException.java:231)
      	at org.forgerock.json.resource.ResourceException.newResourceException(ResourceException.java:181)
      	at org.forgerock.json.resource.http.CrestAdapter.createResourceException(CrestAdapter.java:419)
      	at 
         (.........)
      org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
      	at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
      	at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
      	at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
      	at java.lang.Thread.run(Thread.java:745)
      Unable to mark repository updates as complete.
      ERROR: Error during execution. The state of OpenIDM is now unknown. Last Attempted step was MARK_REPO_UPDATES_COMPLETE. Now attempting recovery steps.
      Exiting maintenance mode...
      No longer in maintenance mode.
      Resuming the job scheduler.
      Scheduler has been resumed.
      

      => this is not normal, something must have been broken in the workflow of the update.

      NOTE: I also attached a ZIP for update that can be used to update from a 6.0.0-SNAPSHOT

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                krismy.alfaro Krismy Alfaro
                Reporter:
                laurent.bristiel Laurent Bristiel [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: