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

OpenIDM 6.0.0.1: InternalServerErrorException is pop up at the end of update process.

    Details

      Description

      I test update process from OpenIDM 6.0.0 to OpenIDM 6.0.0.1. At the end of process error is pop up. Please look at attached console log with used cli.sh command for update.

       

      ./cli.sh update --skipRepoUpdatePreview --acceptLicense --user openidm-admin:openidm-admin --url http://localhost:8080/openidm IDM-6.0.0.1-M1-patch.zip
      
      Executing ./cli.sh...
      Starting shell in /home/kuba/Documents/idm6001/update/openidm
      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 IDM-6.0.0.1-M1-patch.zip
      Update procedure is still processing...
      The update process is complete.
      org.forgerock.json.resource.InternalServerErrorException: Update cannot be completed or has already been marked complete
      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:421)
      at org.forgerock.json.resource.http.CrestAdapter.lambda$handleAction$0(CrestAdapter.java:185)
      at org.forgerock.util.CloseSilentlyFunction.apply(CloseSilentlyFunction.java:53)
      at org.forgerock.util.CloseSilentlyFunction.apply(CloseSilentlyFunction.java:29)
      at org.forgerock.util.promise.PromiseImpl.lambda$then$6(PromiseImpl.java:369)
      at org.forgerock.util.promise.PromiseImpl.handleCompletion(PromiseImpl.java:531)
      at org.forgerock.util.promise.PromiseImpl.setState(PromiseImpl.java:572)
      at org.forgerock.util.promise.PromiseImpl.tryHandleResult(PromiseImpl.java:258)
      at org.forgerock.util.promise.PromiseImpl.handleResult(PromiseImpl.java:208)
      at org.forgerock.util.promise.PromiseImpl.lambda$then$6(PromiseImpl.java:369)
      at org.forgerock.util.promise.PromiseImpl.handleCompletion(PromiseImpl.java:531)
      at org.forgerock.util.promise.PromiseImpl.setState(PromiseImpl.java:572)
      at org.forgerock.util.promise.PromiseImpl.tryHandleResult(PromiseImpl.java:258)
      at org.forgerock.util.promise.PromiseImpl.handleResult(PromiseImpl.java:208)
      at org.forgerock.util.promise.PromiseImpl.lambda$then$6(PromiseImpl.java:369)
      at org.forgerock.util.promise.PromiseImpl.handleCompletion(PromiseImpl.java:531)
      at org.forgerock.util.promise.PromiseImpl.setState(PromiseImpl.java:572)
      at org.forgerock.util.promise.PromiseImpl.tryHandleResult(PromiseImpl.java:258)
      at org.forgerock.util.promise.PromiseImpl.handleResult(PromiseImpl.java:208)
      at org.forgerock.http.apache.async.AsyncResponseHttpClient$EntityCompletionPromiseResponseConsumer.responseCompleted(AsyncResponseHttpClient.java:146)
      at org.apache.http.impl.nio.client.MainClientExec.responseCompleted(MainClientExec.java:383)
      at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.responseCompleted(DefaultClientExchangeHandlerImpl.java:168)
      at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse(HttpAsyncRequestExecutor.java:436)
      at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(HttpAsyncRequestExecutor.java:326)
      at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:265)
      at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
      at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)
      at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:114)
      at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
      at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
      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:748)
      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.
      
      

      I noticed, that we have configured

      "shutdownRequired" : true

      in update.json. When I tried to change to the false, update process ends without any error and OpenIDM is updated to 6.0.0.1 after restart of IDM.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mark.offutt Mark Offutt [X] (Inactive)
                Reporter:
                jakub.janoska Jakub Janoska [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: