Bug 975253

Summary: Application was deleted after a few moments of uptime: --from-code git://github.com/a-boy/openshift-glassfish4.git
Product: OpenShift Online Reporter: Nam Duong <nduong>
Component: TemplatesAssignee: Dan McPherson <dmcphers>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.xCC: jofernan, rchopra
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-19 00:10:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
errors from gear's server.log none

Description Nam Duong 2013-06-17 23:19:30 UTC
Description of problem:
When creating an app based on this --from-code git://github.com/a-boy/openshift-glassfish4.git, the application gets created and runs for several moments before it gets automatically deleted:  
rhc app-create glassfish diy-0.1 --from-code git://github.com/a-boy/openshift-glassfish4.git  


This was reported in the forums:  
https://www.openshift.com/forums/openshift/my-glassfish4-diy-application-was-auto-deleted-after-running-a-few-moment-why  


Oddly enough, if you break the app creation into the following steps, it runs fine with 0 errors:  
rhc app-create glassfish diy-0.1
cd glassfish
git remote add upstream -m master git://github.com/a-boy/openshift-glassfish4.git
git pull -s recursive -X theirs upstream master
git push -f

Maybe something about this repo?

Comment 1 Rajat Chopra 2013-06-18 04:03:20 UTC
Created attachment 762287 [details]
errors from gear's server.log

The attached errors were observed and the post-configure hook returned with 'node error'.

Comment 2 Dan McPherson 2013-06-19 00:10:42 UTC
This is currently a limitation of --from-code.  If your app can't deploy in < 4 mins it's not going to work with --from-code.