[OPENIDM-10864] Update from 6.0.0 to 6.5.0 is failing on archive meta-data lookup Created: 04/May/18  Updated: 10/May/18  Resolved: 10/May/18

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

Type: Bug Priority: Major
Reporter: Laurent Bristiel [X] (Inactive) Assignee: Brendan Miller
Resolution: Won't Fix Votes: 0
Labels: regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OpenIDM 6.0.0 (official) and OpenIDM 6.5.0-SNAPSHOT rev 66cc792



 Description   

Step to reproduce:

  • install/start OpenIDM 6.0.0 with MySQL repo
  • copy openidm-6.5.0-SNAPSHOT.zip to openidm/update
  • launch first phase of update:
    ./cli.sh update  --acceptLicense  --user openidm-admin:openidm-admin  --url http://localhost:8080/openidm openidm-6.5.0-SNAPSHOT.zip
    Executing ./cli.sh...
    Starting shell in /Users/laurent/Installs/openidm
    org.forgerock.json.resource.InternalServerErrorException: Response is not application/json
    	at org.forgerock.json.resource.http.CrestAdapter.loadJsonValueContent(CrestAdapter.java:396)
    	at org.forgerock.json.resource.http.CrestAdapter.lambda$handleAction$0(CrestAdapter.java:180)
    	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:745)
    The attempt to lookup the archive meta-data failed.
    ERROR: Error during execution. The state of OpenIDM is now unknown. Last Attempted step was PREVIEW_ARCHIVE. Now attempting recovery steps.
    


 Comments   
Comment by Laurent Bristiel [X] (Inactive) [ 04/May/18 ]

> Since we removed it from master this all seems appropriate though perhaps we should silence that stack trace.
we did not repove update.json from Master
It is still here

> Does the archive appear in a `listRepoUpdates` request?
no it does not:

curl --header "Content-Type: application/json" --header "X-OpenIDM-Username: openidm-admin" --header "X-OpenIDM-Password: openidm-admin" --request POST "http://localhost:8080/openidm/maintenance/update?_action=listRepoUpdates&archive=openidm-6.5.0-SNAPSHOT.zip"  | jq '.'
[]
Comment by Brendan Miller [ 10/May/18 ]

Not expecting to use update facility for 6.0 -> 6.5

Generated at Mon Nov 23 16:10:02 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.