Issue Type: Bug Bug
Affects Versions: 3.3.0.Final
Assignee: Andre Dietisheim
Components: openshift
Created: 27/Jun/12 12:18 PM
Description:

Using Java EE Web application from JBoss Central:

  • Import Java EE Web project from Central and as target runtime select EAP6. (enterprise=true)
  • Create a new application on OpenShift with scaling enabled, don't create a new project - use the existing Java EE Web project and deploy it to OpenShift
  • Publish local git repo - application should be running.
  • Change e.g. index.xhtml and republish it.
  • Result: application is down (only haproxy status is on index, showing that the gear is down).

Part of build output

Stopping application...
/usr/libexec/stickshift/cartridges/abstract/info/lib/util: line 767: /var/lib/stickshift/28debff7fc5840b39a57cadfd0f42a92/app-root/runtime/repo/.openshift/action_hooks/post_stop_jbosseap-6.0: Permission denied
Done
~/git/j2eeweb.git ~/git/j2eeweb.git
~/git/j2eeweb.git
Found pom.xml... attempting to build with 'mvn -e clean package -Popenshift -DskipTests'
Apache Maven 3.0.3 (r1075437; 2011-06-20 13:22:37-0400)
Maven home: /etc/alternatives/maven-3.0
Java version: 1.6.0_24, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre
Default locale: en_US, platform encoding: ANSI_X3.4-1968
OS name: "linux", version: "2.6.32-279.el6.x86_64", arch: "i386", family: "unix"
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Java EE 6 webapp project 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ jboss-javaee6-webapp ---
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ jboss-javaee6-webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:compile (default-compile) @ jboss-javaee6-webapp ---
[INFO] Compiling 7 source files to /var/lib/stickshift/28debff7fc5840b39a57cadfd0f42a92/app-root/runtime/repo/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ jboss-javaee6-webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.1:testCompile (default-testCompile) @ jboss-javaee6-webapp ---
[INFO] Compiling 1 source file to /var/lib/stickshift/28debff7fc5840b39a57cadfd0f42a92/app-root/runtime/repo/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ jboss-javaee6-webapp ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ jboss-javaee6-webapp ---
[INFO] Packaging webapp
[INFO] Assembling webapp [jboss-javaee6-webapp] in [/var/lib/stickshift/28debff7fc5840b39a57cadfd0f42a92/app-root/runtime/repo/target/jboss-javaee6-webapp]
[INFO] Processing war project
[INFO] Copying webapp resources [/var/lib/stickshift/28debff7fc5840b39a57cadfd0f42a92/app-root/runtime/repo/src/main/webapp]
[INFO] Webapp assembled in [398 msecs]
[INFO] Building war: /var/lib/stickshift/28debff7fc5840b39a57cadfd0f42a92/app-root/runtime/repo/deployments/ROOT.war
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 49.190s
[INFO] Finished at: Wed Jun 27 09:38:38 EDT 2012
[INFO] Final Memory: 18M/159M
[INFO] ------------------------------------------------------------------------
SSH_CMD: ssh b4397afc711140bf8277daa379b99435@10.113.17.228
++ date
+ echo 'Syncing to gear: b4397afc711140bf8277daa379b99435@10.113.17.228:b4397afc71 @ ' Wed Jun 27 09:38:39 EDT 2012
Syncing to gear: b4397afc711140bf8277daa379b99435@10.113.17.228:b4397afc71 @  Wed Jun 27 09:38:39 EDT 2012
+ for rpccall in '"${OPENSHIFT_SYNC_GEARS_PRE[@]}"'
+ ssh b4397afc711140bf8277daa379b99435@10.113.17.228 'ctl_all stop'

    *********************************************************************

    You are accessing a service that is for use only by authorized users.  
    If you do not have authorization, discontinue use at once. 
    Any use of the services is subject to the applicable terms of the 
    agreement which can be found at: 
    https://openshift.redhat.com/app/legal

    *********************************************************************

    Welcome to OpenShift shell

    This shell will assist you in managing OpenShift applications.

    !!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
    Shell access is quite powerful and it is possible for you to
    accidentally damage your application.  Proceed with care!
    If worse comes to worst, destroy your application with 'rhc app destroy'
    and recreate it
    !!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!

    Type "help" for more info.

WARNING: This ssh terminal was started without a tty.
          It is highly recommended to login with: ssh -t
+ /var/lib/stickshift/b4397afc711140bf8277daa379b99435/jbosseap-6.0/b4397afc71_ctl.sh stop
Starting application...
/usr/libexec/stickshift/cartridges/abstract/info/lib/util: line 767: /var/lib/stickshift/28debff7fc5840b39a57cadfd0f42a92/app-root/runtime/repo/.openshift/action_hooks/post_start_jbosseap-6.0: Permission denied
Done
  • Change the application and republish once more.
  • Application is running again.
Project: Tools (JBoss Tools)
Priority: Critical Critical
Reporter: Stefan Bunciak
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira