After upgrading a container we hit the following error "io.fabric8.patch.management.PatchException: Missing unknown ..."

Solution Verified - Updated -

Issue

  • Upgrade or downgrade fails with the following error:

    io.fabric8.patch.management.PatchException: Missing unknown dffd062d3e2b0afda6ab189163c0207d46e128fe
      at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.alignTo(GitPatchManagementServiceImpl.java:3525)
      at io.fabric8.agent.DeploymentAgent$11.done(DeploymentAgent.java:709)[io.fabric8:fabric-agent:1.2.0.redhat-621222]
      at io.fabric8.agent.service.Agent$2.done(Agent.java:352)[io.fabric8:fabric-agent:1.2.0.redhat-621222]
      at io.fabric8.agent.service.Deployer.deploy(Deployer.java:1060)[io.fabric8:fabric-agent:1.2.0.redhat-621222]
      at io.fabric8.agent.service.Agent.provision(Agent.java:366)[io.fabric8:fabric-agent:1.2.0.redhat-621222]
      at io.fabric8.agent.service.Agent.provision(Agent.java:199)[io.fabric8:fabric-agent:1.2.0.redhat-621222]
      at io.fabric8.agent.DeploymentAgent.doUpdate(DeploymentAgent.java:736)[io.fabric8:fabric-agent:1.2.0.redhat-621222]
      at io.fabric8.agent.DeploymentAgent$4.run(DeploymentAgent.java:292)[io.fabric8:fabric-agent:1.2.0.redhat-621222]
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_222]
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_222]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)[:1.8.0_222]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)[:1.8.0_222]
      at java.lang.Thread.run(Thread.java:748)[:1.8.0_222]
    Caused by: org.eclipse.jgit.api.errors.JGitInternalException: Missing unknown dffd062d3e2b0afda6ab189163c0207d46e128fe
      at org.eclipse.jgit.api.StatusCommand.call(StatusCommand.java:154)
      at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.applyUserChanges(GitPatchManagementServiceImpl.java:2785)
      at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.handleNonCurrentBaseline(GitPatchManagementServiceImpl.java:2046)
      at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.alignTo(GitPatchManagementServiceImpl.java:3489)
    ... 12 more
    Caused by: org.eclipse.jgit.errors.MissingObjectException: Missing unknown dffd062d3e2b0afda6ab189163c0207d46e128fe
      at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:145)
      at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:226)
      at org.eclipse.jgit.revwalk.RevWalk.parseAny(RevWalk.java:859)
      at org.eclipse.jgit.revwalk.RevWalk.parseTree(RevWalk.java:799)
      at org.eclipse.jgit.lib.IndexDiff.(IndexDiff.java:314)
      at org.eclipse.jgit.lib.IndexDiff.diff(IndexDiff.java:551)
      at org.eclipse.jgit.lib.IndexDiff.diff(IndexDiff.java:376)
      at org.eclipse.jgit.api.StatusCommand.call(StatusCommand.java:148)
    

Environment

  • Red Hat Fuse (Fuse) 6.2.1
  • Fabric managed environment : Upgrade/Downgrade to a profile version with patch applied.

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content