Bug 1021414 - Return 503 in web after force-clean-build the installed dependencies for nodejs-0.6/0.10 app
Summary: Return 503 in web after force-clean-build the installed dependencies for node...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Andy Goldstein
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-21 09:21 UTC by Yan Du
Modified: 2015-05-14 23:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-24 03:25:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
log (2.25 MB, text/plain)
2013-10-21 09:22 UTC, Yan Du
no flags Details

Description Yan Du 2013-10-21 09:21:45 UTC
Description of problem:
Return 503 in web after force-clean-build the installed dependencies for nodejs-0.6/0.10 app



Version-Release number of selected component (if applicable):
devenv_3921
rhc-1.16.0 (build from devenv_3921)



How reproducible:
Always



Steps to Reproduce:

1. create an nodejs app
2. in local repo, add dependencies in package.json, (eg: "optimist": "0.3.4")
3. git push and deploy
4. visit the app in web
5. dependencies in package.json and touch a force_clean_build marker in .openshift/markers/
6. git push and deploy
7. visit the app in web again



Actual results:

step6:

root@openshift-ubuntu:~/test/n10a# touch .openshift/markers/force_clean_build
root@openshift-ubuntu:~/test/n10a# git add .; git commit -amadd2; git push
[master 9c81ca5] add2
 Committer: root <root@openshift-ubuntu.(none)>
 1 file changed, 1 deletion(-)
 create mode 100644 .openshift/markers/force_clean_build
Counting objects: 9, done.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 446 bytes, done.
Total 5 (delta 3), reused 0 (delta 0)
remote: Stopping NodeJS cartridge
remote: Saving away previously installed Node modules
remote: Building git ref 'master', commit 9c81ca5
remote: Building NodeJS cartridge
remote: Force-clean builds are enabled. Recreating npm modules
remote: npm info it worked if it ends with ok
remote: npm info using npm.17
remote: npm info using node.5
remote: npm info preinstall OpenShift-Sample-App.0
remote: npm info build /var/lib/openshift/5264d7a95702a7d8b2000052/app-deployments/2013-10-21_03-32-58.656/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: Prepared deployment artifacts in /var/lib/openshift/5264d7a95702a7d8b2000052/app-deployments/2013-10-21_03-32-58.656
remote: Deployment id is 487d2110
remote: Activating deployment
remote: Starting NodeJS cartridge
remote: Result: success
remote: Activation status: success
remote: Deployment completed with status: success
To ssh://5264d7a95702a7d8b2000052.rhcloud.com/~/git/n10a.git/
   00fad77..9c81ca5  master -> master


step7:
return 503 in web




Expected results:
app should be available in web after force-clean the installed dependencies


Additional info:

1. after step7, check the app state, it is started.
root@openshift-ubuntu:~/test/n10a# rhc app show n10a --state
Cartridge nodejs-0.10 is started

2. node.log has attached.

Comment 1 Yan Du 2013-10-21 09:22:39 UTC
Created attachment 814490 [details]
log

Comment 2 Andy Goldstein 2013-10-23 12:18:57 UTC
https://github.com/openshift/origin-server/pull/3955

Comment 3 Yan Du 2013-10-24 05:09:59 UTC
test devenv_3937

app can be accessed after force-clean-build the installed dependencies for nodejs-0.6/0.10 app. Move to verified


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