patch installation failed
Issue
When there's an error during patch installation (eg: problematic line in etc/startup.properties
) sometimes the patch git repository may be left in some problematic state (from Fuse point of view, not from git repository point of view).
admin@root()> patch:list
[name] [installed] [rollup] [description] [CVEs]
fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026 false false fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026 -
06:22:03.580 INFO [pipe-patch:install fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026] No user changes detected
06:22:03.633 INFO [pipe-patch:install fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026] Installing non-rollup patch "fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026"
06:22:03.679 INFO [pipe-patch:install fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026] Updating "bin/client"
06:22:03.681 INFO [pipe-patch:install fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026] Updating "bin/shell"
06:22:03.683 INFO [pipe-patch:install fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026] Updating "bin/client.bat"
06:22:03.684 INFO [pipe-patch:install fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026] Updating "bin/shell.bat"
06:22:03.685 INFO [pipe-patch:install fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026] Updating "etc/startup.properties"
06:22:03.686 INFO [pipe-patch:install fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026] Updating "etc/config.properties"
06:22:03.688 INFO [pipe-patch:install fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026] Updating package versions in "etc/config.properties"
06:22:05.636 ERROR [Karaf ssh console user admin] Exception caught while executing command
org.jboss.fuse.patch.management.PatchException: tag 'Tag={
object 8f71c87a022a62c17c66c6d40733a4185a77c545
type commit
tag patch-fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026
tagger PersonIdent[fuseadm, fuseadm@vtuvaina010, Tue Sep 5 06:22:05 2023 +1000]
}' already exists
at org.jboss.fuse.patch.impl.PatchServiceImpl.install(PatchServiceImpl.java:836) ~[?:?]
at org.jboss.fuse.patch.impl.PatchServiceImpl.install(PatchServiceImpl.java:542) ~[?:?]
at org.jboss.fuse.patch.commands.InstallCommand.doExecute(InstallCommand.java:46) ~[?:?]
at org.jboss.fuse.patch.commands.PatchCommandSupport.execute(PatchCommandSupport.java:42) ~[?:?]
at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?]
at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?]
at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) ~[?:?]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) ~[?:?]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) ~[?:?]
at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_362]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_362]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_362]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_362]
Caused by: org.jboss.fuse.patch.management.PatchException: tag 'Tag={
object 8f71c87a022a62c17c66c6d40733a4185a77c545
type commit
tag patch-fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026
tagger PersonIdent[fuseadm, fuseadm@vtuvaina010, Tue Sep 5 06:22:05 2023 +1000]
}' already exists
at org.jboss.fuse.patch.management.impl.GitPatchManagementServiceImpl.install(GitPatchManagementServiceImpl.java:1201) ~[?:?]
at org.jboss.fuse.patch.impl.PatchServiceImpl.install(PatchServiceImpl.java:643) ~[?:?]
... 16 more
Caused by: org.eclipse.jgit.api.errors.RefAlreadyExistsException: tag 'Tag={
object 8f71c87a022a62c17c66c6d40733a4185a77c545
type commit
tag patch-fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026
tagger PersonIdent[fuseadm, fuseadm@vtuvaina010, Tue Sep 5 06:22:05 2023 +1000]
}' already exists
at org.eclipse.jgit.api.TagCommand.updateTagRef(TagCommand.java:195) ~[?:?]
at org.eclipse.jgit.api.TagCommand.call(TagCommand.java:166) ~[?:?]
at org.jboss.fuse.patch.management.impl.GitPatchManagementServiceImpl.install(GitPatchManagementServiceImpl.java:1195) ~[?:?]
at org.jboss.fuse.patch.impl.PatchServiceImpl.install(PatchServiceImpl.java:643) ~[?:?]
... 16 more
06:22:43.423 ERROR [Karaf ssh console user admin] Exception caught while executing command
org.jboss.fuse.patch.management.PatchException: Patch 'fuse-karaf-7.11.1.hf1-patch-7.11.1.fuse-sb2-7_11_1-00026' is not installed
at org.jboss.fuse.patch.commands.RollbackCommand.doExecute(RollbackCommand.java:46) ~[?:?]
at org.jboss.fuse.patch.commands.PatchCommandSupport.execute(PatchCommandSupport.java:42) ~[?:?]
at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?]
at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68) ~[?:?]
at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86) ~[?:?]
at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599) ~[?:?]
at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526) ~[?:?]
at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415) ~[?:?]
at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_362]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_362]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_362]
at java.lang.Thread.run(Thread.java:750) [?:1.8.0_362]
Environment
- Red Hat Fuse 7.11.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.