Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4184

[Patch mechanism 050] Unable to install patch on windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • jboss-fuse-6.2.1
    • jboss-fuse-6.2.1
    • Patching
    • None
    • % %

      During following steps in https://mojo.redhat.com/docs/DOC-1049758 patch:install throws following exception on windows:

          14:15:43,699 | ERROR | l Console Thread | Console                          | 34 - org.apache.karaf.shell.console - 2.4.0.redhat-620133 | Exception caught while executing command
          io.fabric8.patch.management.PatchException: Could not rename file C:\jboss-fuse-6.2.0.redhat-133\patches\tmp\20151013-141536418\etc\._io.fabric8.mq.fabric.server-broker.cfg3636285578695286998.tmp to C:\jboss-fuse-6.2.0.redhat-133\patches\tmp\20151013-141536418\etc\io.fabric8.mq.fabric.server-broker.cfg
                  at io.fabric8.patch.impl.ServiceImpl.install(ServiceImpl.java:551)
                  at io.fabric8.patch.impl.ServiceImpl.install(ServiceImpl.java:344)
                  at io.fabric8.patch.commands.InstallAction.doExecute(InstallAction.java:68)
                  at io.fabric8.patch.commands.PatchActionSupport.doExecute(PatchActionSupport.java:38)
                  at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
                  at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_60]
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_60]
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_60]
                  at java.lang.reflect.Method.invoke(Method.java:497)[:1.8.0_60]
                  at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)[18:org.apache.aries.proxy.impl:1.0.4]
                  at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)[18:org.apache.aries.proxy.impl:1.0.4]
                  at io.fabric8.patch.commands.$Install881963532.execute(Unknown Source)[266:io.fabric8.patch.patch-commands:1.2.0.redhat-621050]
                  at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
                  at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
                  at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
                  at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
                  at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
                  at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
                  at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
                  at org.apache.karaf.shell.console.jline.Console.run(Console.java:195)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
                  at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79)[34:org.apache.karaf.shell.console:2.4.0.redhat-620133]
          Caused by: org.eclipse.jgit.api.errors.JGitInternalException: Could not rename file C:\jboss-fuse-6.2.0.redhat-133\patches\tmp\20151013-141536418\etc\._io.fabric8.mq.fabric.server-broker.cfg3636285578695286998.tmp to C:\jboss-fuse-6.2.0.redhat-133\patches\tmp\20151013-141536418\etc\io.fabric8.mq.fabric.server-broker.cfg
                  at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:318)
                  at io.fabric8.patch.management.impl.GitPatchManagementServiceImpl.commitInstallation(GitPatchManagementServiceImpl.java:814)
                  at io.fabric8.patch.impl.ServiceImpl.install(ServiceImpl.java:465)
                  ... 21 more
          Caused by: java.io.IOException: Could not rename file C:\jboss-fuse-6.2.0.redhat-133\patches\tmp\20151013-141536418\etc\._io.fabric8.mq.fabric.server-broker.cfg3636285578695286998.tmp to C:\jboss-fuse-6.2.0.redhat-133\patches\tmp\20151013-141536418\etc\io.fabric8.mq.fabric.server-broker.cfg
                  at org.eclipse.jgit.dircache.DirCacheCheckout.checkoutEntry(DirCacheCheckout.java:1239)
                  at org.eclipse.jgit.dircache.DirCacheCheckout.doCheckout(DirCacheCheckout.java:462)
                  at org.eclipse.jgit.dircache.DirCacheCheckout.checkout(DirCacheCheckout.java:397)
                  at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:261)
                  ... 23 more
      
      

            ggrzybek Grzegorz Grzybek
            mmelko@redhat.com Matej Melko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: