Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-24445

OpenShift server adapter is not working, when rsync is not on path (Upstream issue)

XMLWordPrintable

    • Hide

      0) Windows operating system
      1) Remove rsync from the PATH. To check if rsync cannot be detected, simply try to run rsync command in the cmd cli. You can do it via multiple ways: a) go to the installation directory of the sygwin -> to the bin directory -> find there rsync binary and rename it. b) if you have cwRsync installed separately, then uninstall it, or also simply remove it. Finally, command which rsync must output "which: no rsync in <PATH env var>".
      2) Create openshift connection in Openshift Explorer
      3) create any eap application, e.g. jboss-eap70-openshift
      4) wait till pod is built and run.
      5) create server adapter
      6) make changes in the sources and save them.

      Show
      0) Windows operating system 1) Remove rsync from the PATH. To check if rsync cannot be detected, simply try to run rsync command in the cmd cli. You can do it via multiple ways: a) go to the installation directory of the sygwin -> to the bin directory -> find there rsync binary and rename it. b) if you have cwRsync installed separately, then uninstall it, or also simply remove it. Finally, command which rsync must output "which: no rsync in <PATH env var>". 2) Create openshift connection in Openshift Explorer 3) create any eap application, e.g. jboss-eap70-openshift 4) wait till pod is built and run. 5) create server adapter 6) make changes in the sources and save them.

      Using server adapter, when rsync is not on path results in errors like:

      Could not sync C:\Users\jbossqa\rhopp\workspace-sidnfiweun\.metadata\.plugins\org.jboss.ide.eclipse.as.core\dfgdfg@eap-app\deploy to all pods running the service eap-app
      OpenShiftBinaryCapability process exited: WARNING: rsync command not found in path. Download cwRsync for Windows and add it to your PATH.
      Ignoring the following flags because they only apply to rsync: --exclude
      tar: ROOT.war/META-INF/MANIFEST.MF: Cannot open: Not a directory
      tar: ROOT.war/META-INF/maven/org.jboss.quickstarts.eap/jboss-kitchensink/pom.properties: Cannot open: Not a directory
      tar: ROOT.war/META-INF/maven/org.jboss.quickstarts.eap/jboss-kitchensink/pom.xml: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/beans.xml: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/classes/META-INF/persistence.xml: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/classes/import.sql: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/controller/MemberController.class: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/data/MemberListProducer.class: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/data/MemberRepository.class: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/model/Member.class: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/rest/JaxRsActivator.class: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/rest/MemberResourceRESTService.class: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/service/MemberRegistration.class: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/classes/org/jboss/as/quickstarts/kitchensink/util/Resources.class: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/faces-config.xml: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/kitchensink-quickstart-ds.xml: Cannot open: Not a directory
      tar: ROOT.war/WEB-INF/templates/default.xhtml: Cannot open: Not a directory
      tar: ROOT.war/index.html: Cannot open: Not a directory
      tar: ROOT.war/index.xhtml: Cannot open: Not a directory
      tar: ROOT.war/resources/css/screen.css: Cannot open: Not a directory
      tar: ROOT.war/resources/gfx/asidebkg.png: Cannot open: Not a directory
      tar: ROOT.war/resources/gfx/banner.png: Cannot open: Not a directory
      tar: ROOT.war/resources/gfx/bkg-blkheader.png: Cannot open: Not a directory
      tar: ROOT.war/resources/gfx/headerbkg.png: Cannot open: Not a directory
      tar: ROOT.war/resources/gfx/rhjb_eap_logo.png: Cannot open: Not a directory
      tar: Exiting with failure status due to previous errors
      error: error extracting tar at destination directory: command terminated with exit code 2
      

      More info in upstream issue: https://github.com/openshift/origin/issues/14075

            adietish@redhat.com André Dietisheim
            rhopp@redhat.com Radim Hopp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: