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

Git-versioned projects not building when deployed on OpenShift

XMLWordPrintable

    • Hide
      • Imported a project from github (I used https://github.com/aerogear/as-quickstarts)
      • Open the OpenShift wizard
      • Create a new application on OpenShift and try to merge it with this existing project
      • Finish the wizard

      Result:

      • Not able to push to the remote repo
      • Publishing does the trick, but doesn't trigger the Maven build.
      • After reaching the application's url gives me a blank screen.
      Show
      Imported a project from github (I used https://github.com/aerogear/as-quickstarts ) Open the OpenShift wizard Create a new application on OpenShift and try to merge it with this existing project Finish the wizard Result: Not able to push to the remote repo Publishing does the trick, but doesn't trigger the Maven build. After reaching the application's url gives me a blank screen.
    • Workaround Exists

      After trying to Commit & Push i get: master: master [rejected - non-fast-forward]

      Repository ssh://500881bf89dc482298bebb43ea15fbdf@html-rhtestdomain.rhcloud.com/~/git/html.git/
      

      After publishing via server adapter (no Maven build triggered):

      Repository ssh://500881bf89dc482298bebb43ea15fbdf@html-rhtestdomain.rhcloud.com/~/git/html.git/
      Stopping application...
      Done
      ~/git/html.git ~/git/html.git
      ~/git/html.git
      Emptying tmp dir: /var/lib/stickshift/500881bf89dc482298bebb43ea15fbdf/html/jbossas-7/standalone/tmp/auth
      Emptying tmp dir: /var/lib/stickshift/500881bf89dc482298bebb43ea15fbdf/html/jbossas-7/standalone/tmp/vfs
      Emptying tmp dir: /var/lib/stickshift/500881bf89dc482298bebb43ea15fbdf/html/jbossas-7/standalone/tmp/work
      Starting application...
      Done
      

      Output of the server.log (used the Tail files option from OpenShift Explorer):

      2012/06/19 09:41:23,904 INFO  [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
      JBAS014777:   Services which failed to start:      service jboss.server.deployment.scanner.default: org.jboss.msc.service.StartException in service jboss.server.deployment.scanner.default: java.lang.IllegalArgumentException: JBAS015053: /var/lib/stickshift/500881bf89dc482298bebb43ea15fbdf/html/jbossas-7/standalone/deployments does not exist
      2012/06/19 09:41:23,983 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss AS 7.1.0.Final "Thunder" started (with errors) in 32395ms - Started 168 of 283 services (1 services failed or missing dependencies, 111 services are passive or on-demand)
      

      But git project (jboss-kithensink) from [git://github.com/openshift/kitchensink-example.git] works fine. What's the difference? Probably their repo layout.

        1. deployed-helloworld.png
          103 kB
          André Dietisheim
        2. push-force.png
          29 kB
          André Dietisheim

            manderse@redhat.com Max Andersen
            sbunciak-rh Stefan Bunciak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: