Bug 1039401 - App do not start every git push [NEEDINFO]
Summary: App do not start every git push
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Dan Mace
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-09 03:03 UTC by pesobility
Modified: 2015-05-14 23:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-07 19:55:13 UTC
Target Upstream Version:
dmace: needinfo? (pesobility)


Attachments (Terms of Use)

Description pesobility 2013-12-09 03:03:51 UTC
Description of problem:
Everytime I git push (my domain is pesobility.com), the app fails to start. I have to roc app stop, force-stop, then start to be able to start my web application again.


Version-Release number of selected component (if applicable):


How reproducible:
Everytime on my environment

Steps to Reproduce:
1. git push
2.
3.

Actual results:

remote: Activation failed for the following gears:
remote: fe506a23f919485fb6c170aa95578604 (Error activating gear: Shell command '/usr/bin/rsync -av --delete /var/lib/openshift/fe506a23f919485fb6c170aa95578604/app-deployments/2013-12-08_21-41-38.725/dependencies/ /var/lib/openshift/fe506a23f919485fb6c170aa95578604/app-root/runtime/dependencies/' returned an error. rc=23)
remote: Deployment completed with status: failure
remote: postreceive failed

Expected results:


Additional info:

Comment 1 Jhon Honce 2013-12-09 15:34:07 UTC
Which cartridges does your application use?

Comment 2 pesobility 2013-12-10 02:44:00 UTC
node js
mongodb
rockmongo

Here's a longer log:

remote: Stopping RockMongo cartridge
remote: [Mon Dec 09 21:34:33 2013] [warn] module php5_module is already loaded, skipping
remote: Waiting for stop to finish
remote: Waiting for stop to finish
remote: Waiting for stop to finish
remote: 
remote:   - pre_stop_nodejs: Adding Node.js version 0.10.22 binaries to path
remote:   - PATH set to include custom node version (0.10.22) from
remote:        /var/lib/openshift/fe506a23f919485fb6c170aa95578604/app-root/data//node-v0.10.22-linux-x64/bin 
remote:     PATH = /var/lib/openshift/fe506a23f919485fb6c170aa95578604/app-root/data//node-v0.10.22-linux-x64/bin:/var/lib/openshift/fe506a23f919485fb6c170aa95578604//.node_modules/.bin:/bin:/usr/bin:/usr/sbin
remote: Stopping NodeJS cartridge
remote: Stopping MongoDB cartridge
remote: Saving away previously installed Node modules
remote: Building git ref 'master', commit 8222b54
remote: 
remote:   - Checking to see if Node.js version 0.10.22 is installed ... 
remote:   - Node.js version 0.10.22 is already installed
remote: Building NodeJS cartridge
remote:   - PATH set to include custom node version (0.10.22) from
remote:        /var/lib/openshift/fe506a23f919485fb6c170aa95578604/app-root/data//node-v0.10.22-linux-x64/bin 
remote:     PATH = /var/lib/openshift/fe506a23f919485fb6c170aa95578604/app-root/data//node-v0.10.22-linux-x64/bin:/var/lib/openshift/fe506a23f919485fb6c170aa95578604//.node_modules/.bin:/bin:/usr/bin:/usr/sbin
remote:   - Installing dependencies w/ new version of npm ... 
remote: 
remote: npm info it worked if it ends with ok
remote: npm info using npm.14
remote: npm info using node.22
remote: npm info preinstall OpenShift-Sample-App.0
remote: npm info build /var/lib/openshift/fe506a23f919485fb6c170aa95578604/app-root/runtime/repo
remote: npm info linkStuff OpenShift-Sample-App.0
remote: npm info install OpenShift-Sample-App.0
remote: npm info postinstall OpenShift-Sample-App.0
remote: npm info prepublish OpenShift-Sample-App.0
remote: npm info ok 
remote: Preparing build for deployment
remote: Deployment id is 50c380ef
remote: Activating deployment
remote: Result: failure
remote: Activation status: failure
remote: Activation failed for the following gears:
remote: fe506a23f919485fb6c170aa95578604 (Error activating gear: Shell command '/usr/bin/rsync -av --delete /var/lib/openshift/fe506a23f919485fb6c170aa95578604/app-deployments/2013-12-09_21-35-23.287/dependencies/ /var/lib/openshift/fe506a23f919485fb6c170aa95578604/app-root/runtime/dependencies/' returned an error. rc=23)
remote: Deployment completed with status: failure
remote: postreceive failed

Comment 3 ligia.arghir 2013-12-20 10:21:35 UTC
Is this the same bug?

remote: Stopping PYTHON cart
remote: [Fri Dec 20 10:04:26.413454 2013] [core:warn] [pid 12823] AH00117: Ignoring deprecated use of DefaultType in line 112 of /var/lib/openshift/52b16f21b01314bbac00000d/python/etc/conf/httpd_nolog.conf.
remote: Waiting for stop to finish
remote: Permission denied - /var/lib/openshift/52b16f21b01314bbac00000d/app-deployments/2013-12-18_09-47-19.620/dependencies/python/virtenv/lib/python2.7/genericpath.py
To ssh://52b16f21b01314bbac00000d@[***]/~/git/newpython.git/
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://52b16f21b01314bbac00000d@[***]/~/git/newpython.git/'

*** application and hostname have been hidden for this post


This is a simple python-2.7 application with only one cartridge.
This occurrs at git push.

Comment 4 Dan Mace 2014-01-16 19:02:19 UTC
(In reply to pesobility from comment #0)

Can you do another git push to your application and paste the results here? The gear contents changed by the time I got to it, and so I need some more current output and a verification that the problem still exists. Thanks.

Comment 5 pesobility 2014-01-21 01:49:43 UTC
I retired the said web app already and deployed it to newer nodejs 0.10 application (after few changes). The problem cannot be replicated. Thank you.


Note You need to log in before you can comment on or make changes to this bug.