[OPENIDM-11387] OpenIDM 6.0.0.1: InternalServerErrorException is pop up at the end of update process. Created: 25/Jul/18  Updated: 31/Aug/18  Resolved: 26/Jul/18

Status: Closed
Project: OpenIDM
Component/s: _Update
Affects Version/s: 6.0.0.1
Fix Version/s: 6.0.0.1

Type: Bug Priority: Major
Reporter: Jakub Janoska [X] (Inactive) Assignee: Mark Offutt [X] (Inactive)
Resolution: Fixed Votes: 0
Labels: no-release-notes, not-for-release-notes, sustaining
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Target Version/s:
Verified Version/s:

 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.

 



 Comments   
Comment by Jakub Janoska [X] (Inactive) [ 27/Jul/18 ]

 Successfully verified on OpenIDM version "6.0.0.1-SNAPSHOT" (build: 20180726204855, revision: a2422b9) jenkins-OpenIDM-build-sustaining%2F6.0.x-82.

Generated at Tue Mar 09 10:44:27 UTC 2021 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.