Description of problem: Run the following command $ rhc-create-app -a phptest -t php-5.3 -p xx && rhc-ctl-app -a phptest -e add-mongodb-2.0 -p xx && mkdir -p phptest/.openshift/mms/ && cp ~/Downloads/mms-agent/mmsAgent.py phptest/.openshift/mms/settings.py && cd phptest && git add .; git commit -a -m xx; git push && rhc-ctl-app -a phptest -e add-10gen-mms-agent-0.1 -p xx Creating application: phptest Now your new domain name is being propagated worldwide (this might take a minute)... Failed to add the host to the list of known hosts (/dev/nul). Confirming application 'phptest' is available: Success! phptest published: http://phptest-jialiu.dev.rhcloud.com/ git url: ssh://97874bb40a26440fad0e373c8c5ac5c3.rhcloud.com/~/git/phptest.git/ Successfully created application: phptest RESULT: MongoDB 2.0 database added. Please make note of these credentials: Root User: admin Root Password: HspebIw85FpP Database Name: phptest Connection URL: mongodb://127.1.1.129:27017/ You can manage your new MongoDB by also embedding rockmongo-1.1 [master 552c55b] xx 1 files changed, 329 insertions(+), 0 deletions(-) create mode 100644 .openshift/mms/settings.py Failed to add the host to the list of known hosts (/dev/nul). Counting objects: 7, done. Delta compression using up to 4 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (5/5), 3.02 KiB, done. Total 5 (delta 2), reused 0 (delta 0) remote: Stopping application... remote: Waiting for stop to finish remote: Done remote: ~/git/phptest.git ~/git/phptest.git remote: ~/git/phptest.git remote: Running .openshift/action_hooks/pre_build remote: Running .openshift/action_hooks/build remote: Running .openshift/action_hooks/deploy remote: Starting application... remote: MongoDB already running remote: Done remote: Running .openshift/action_hooks/post_deploy To ssh://97874bb40a26440fad0e373c8c5ac5c3.rhcloud.com/~/git/phptest.git/ 909ffc8..552c55b master -> master Problem reported from server. Response code was 500. Re-run with -d for more information. RESULT: Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support. Log message: <--snip--> DEBUG: Performing action 'configure' DEBUG: Adding embedded app info from persistant storage: phptest:10gen-mms-agent-0.1 Auto-merging group @@app/cart-10gen-mms-agent-0.1/group-default into @@app/cart-mongodb-2.0/group-singlenode Configure order is ["@@app/cart-10gen-mms-agent-0.1/comp-comp1", "@@app/cart-mongodb-2.0/comp-mongod-process", "@@app/cart-php-5.3", "@@app"] DEBUG: rpc_exec_direct: rpc_client=#<MCollective::RPC::Client:0x7f006bcac070> DEBUG: rpc_client.custom_request('cartridge_do', {:cartridge=>"embedded/10gen-mms-agent-0.1", :args=>"'phptest' 'jialiu' 'da66b9ea668543aa8ccdda1f84a843b4'", :action=>"configure"}, ip-10-140-13-75, {'identity' => ip-10-140-13-75}) DEBUG: [#<MCollective::RPC::Result:0x7f006bc205e8 @agent="libra", @results={:statusmsg=>"cartridge_do_action failed 121. Output Failed to start phptest\n", :statuscode=>1, :sender=>"ip-10-140-13-75", :data=>{:output=>"Failed to start phptest\n", :exitcode=>121}}, @action="cartridge_do">] DEBUG: server results: Failed to start phptest DEBUG: Failed to embed '10gen-mms-agent-0.1' in 'phptest' for user 'jialiu' DEBUG: rpc_exec_direct: rpc_client=#<MCollective::RPC::Client:0x7f006bc13398> <--snip--> Version-Release number of selected component (if applicable): devenv_1662 How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
In your script above, the copy step is copying the wrong file which is causing the configure step to fail. cp ~/Downloads/mms-agent/mmsAgent.py phptest/.openshift/mms/settings.py
Oops, that is my fault, thanks for your remind. After correct the file, it works now.