Description of problem: Create a scalable application,and embed db cartrdige,but will get this information:Connection to server timed out. It is possible the operation finished without being able to report success. Use 'rhc domain show' or 'rhc app status' to check the status of your applications. And use 'rhc domain show',sometimes will get error,like:/usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/rest/cartridge.rb:68:in `connection_info': undefined method `rstrip' for nil:NilClass (NoMethodError) Sometimes,I can not create a scalable applicaion,will get :Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support. Version-Release number of selected component (if applicable): INT(devenv_2417) How reproducible: Sometimes Steps to Reproduce: 1.create a scalable application rhc app create -a $name -t $type -s 2.embed db cartridge rhc cartridge add $db -a $appname 3.rhc domain show Actual results: 1.[wsun@localhost int]$ create_scale_nodejs_app DEBUG: Connecting to https://int.openshift.redhat.com/broker/rest/api DEBUG: Client supports API versions 1.0, 1.1, 1.2 DEBUG: Server supports API versions 1.0, 1.1, 1.2 DEBUG: Getting all domains DEBUG: Request: #<RestClient::Request:0x7f8106654d78 @max_redirects=10, @cookies={}, @ssl_client_cert=nil, @block_response=nil, @password=nil, @method="GET", @tf=nil, @verify_ssl=false, @open_timeout=nil, @user=nil, @ssl_ca_file=nil, @timeout=nil, @url="https://int.openshift.redhat.com/broker/rest/domains", @raw_response=false, @processed_headers={"Content-Type"=>"application/x-www-form-urlencoded", "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)", "Accept"=>"application/json", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"0"}, @payload="", @args={:timeout=>nil, :method=>"GET", :url=>"https://int.openshift.redhat.com/broker/rest/domains", :payload=>{}, :headers=>{"Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", :accept=>:json, "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}}, @ssl_client_key=nil, @headers={"Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", :accept=>:json, "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}> Creating application 'nodejsscaletest' ====================================== Namespace: wsunint1101 Gear Size: default Scaling: yes Cartridge: nodejs-0.6 DEBUG: Getting all domains DEBUG: Request: #<RestClient::Request:0x7f81065ed588 @max_redirects=10, @cookies={}, @ssl_client_cert=nil, @block_response=nil, @password=nil, @method="GET", @tf=nil, @verify_ssl=false, @open_timeout=nil, @user=nil, @ssl_ca_file=nil, @timeout=nil, @url="https://int.openshift.redhat.com/broker/rest/domains", @raw_response=false, @processed_headers={"Content-Type"=>"application/x-www-form-urlencoded", "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)", "Accept"=>"application/json", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"0"}, @payload="", @args={:timeout=>nil, :method=>"GET", :url=>"https://int.openshift.redhat.com/broker/rest/domains", :payload=>{}, :headers=>{"Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", :accept=>:json, "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}}, @ssl_client_key=nil, @headers={"Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", :accept=>:json, "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}> DEBUG: Finding domain wsunint1101 DEBUG: Getting all domains DEBUG: Request: #<RestClient::Request:0x7f81065990a0 @max_redirects=10, @cookies={}, @ssl_client_cert=nil, @block_response=nil, @password=nil, @method="GET", @tf=nil, @verify_ssl=false, @open_timeout=nil, @user=nil, @ssl_ca_file=nil, @timeout=nil, @url="https://int.openshift.redhat.com/broker/rest/domains", @raw_response=false, @processed_headers={"Content-Type"=>"application/x-www-form-urlencoded", "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)", "Accept"=>"application/json", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"0"}, @payload="", @args={:timeout=>nil, :method=>"GET", :url=>"https://int.openshift.redhat.com/broker/rest/domains", :payload=>{}, :headers=>{"Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", :accept=>:json, "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}}, @ssl_client_key=nil, @headers={"Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", :accept=>:json, "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}> DEBUG: Creating application 'nodejsscaletest' with these options - scaletruecartridgenodejs-0.6.inspect DEBUG: Finding cartridge typestandaloneregex^nodejs-0.6(-[0-9.]+){0,1}$ DEBUG: Getting all cartridges DEBUG: Request: #<RestClient::Request:0x7f81065445a0 @max_redirects=10, @cookies={}, @ssl_client_cert=nil, @block_response=nil, @password=nil, @method="GET", @tf=nil, @verify_ssl=false, @open_timeout=nil, @user=nil, @ssl_ca_file=nil, @timeout=nil, @url="https://int.openshift.redhat.com/broker/rest/cartridges", @raw_response=false, @processed_headers={"Content-Type"=>"application/x-www-form-urlencoded", "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)", "Accept"=>"application/json", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"0"}, @payload="", @args={:timeout=>nil, :method=>"GET", :url=>"https://int.openshift.redhat.com/broker/rest/cartridges", :payload=>{}, :headers=>{"Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", :accept=>:json, "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}}, @ssl_client_key=nil, @headers={"Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", :accept=>:json, "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}> D, [2012-11-01T15:05:22.704737 #18815] DEBUG -- : Adding application nodejsscaletest to domain wsunint1101 D, [2012-11-01T15:05:22.705033 #18815] DEBUG -- : Request: #<RestClient::Request:0x7f8106324e78 @max_redirects=10, @cookies={}, @ssl_client_cert=nil, @block_response=nil, @password=nil, @method="POST", @tf=nil, @verify_ssl=false, @open_timeout=nil, @user=nil, @ssl_ca_file=nil, @timeout=300, @url="https://int.openshift.redhat.com/broker/rest/domains/wsunint1101/applications", @raw_response=false, @processed_headers={"Content-Type"=>"application/x-www-form-urlencoded", "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)", "Accept"=>"application/json", "Accept-Encoding"=>"gzip, deflate", "Content-Length"=>"52"}, @payload="scale=true&name=nodejsscaletest&cartridge=nodejs-0.6", @args={:timeout=>300, :method=>"POST", :url=>"https://int.openshift.redhat.com/broker/rest/domains/wsunint1101/applications", :payload=>{:scale=>true, :name=>"nodejsscaletest", :cartridge=>"nodejs-0.6"}, :headers=>{"Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", :accept=>:json, "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}}, @ssl_client_key=nil, @headers={"Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", :accept=>:json, "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}> Node execution failure (invalid exit code from node). If the problem persists please contact Red Hat support. 2.[wsun@localhost ~]$ rhc cartridge add postgresql-8.4 -a phpscaletest DEBUG: Connecting to https://int.openshift.redhat.com/broker/rest/api DEBUG: Client supports API versions 1.0, 1.1, 1.2 DEBUG: Server supports API versions 1.0, 1.1, 1.2 DEBUG: Getting all domains DEBUG: Request: #<RestClient::Request:0x7fd4170ad488 @max_redirects=10, @cookies={}, @ssl_client_cert=nil, @block_response=nil, @password=nil, @method="GET", @tf=nil, @verify_ssl=false, @open_timeout=nil, @user=nil, @ssl_ca_file=nil, @timeout=nil, @url="https://int.openshift.redhat.com/broker/rest/domains", @raw_response=false, @processed_headers={"Accept"=>"application/json", "Content-Type"=>"application/x-www-form-urlencoded", "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)", "Content-Length"=>"0", "Accept-Encoding"=>"gzip, deflate"}, @payload="", @args={:timeout=>nil, :method=>"GET", :url=>"https://int.openshift.redhat.com/broker/rest/domains", :payload=>{}, :headers=>{:accept=>:json, "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}}, @ssl_client_key=nil, @headers={:accept=>:json, "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}> DEBUG: Finding cartridge typeembeddedregex^postgresql-8.4(-[0-9.]+){0,1}$ DEBUG: Getting all cartridges DEBUG: Request: #<RestClient::Request:0x7fd417054090 @max_redirects=10, @cookies={}, @ssl_client_cert=nil, @block_response=nil, @password=nil, @method="GET", @tf=nil, @verify_ssl=false, @open_timeout=nil, @user=nil, @ssl_ca_file=nil, @timeout=nil, @url="https://int.openshift.redhat.com/broker/rest/cartridges", @raw_response=false, @processed_headers={"Accept"=>"application/json", "Content-Type"=>"application/x-www-form-urlencoded", "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)", "Content-Length"=>"0", "Accept-Encoding"=>"gzip, deflate"}, @payload="", @args={:timeout=>nil, :method=>"GET", :url=>"https://int.openshift.redhat.com/broker/rest/cartridges", :payload=>{}, :headers=>{:accept=>:json, "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}}, @ssl_client_key=nil, @headers={:accept=>:json, "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}> Adding 'postgresql-8.4' to application 'phpscaletest' DEBUG: Finding domain wsunint1101 DEBUG: Getting all domains DEBUG: Request: #<RestClient::Request:0x7fd416e32208 @max_redirects=10, @cookies={}, @ssl_client_cert=nil, @block_response=nil, @password=nil, @method="GET", @tf=nil, @verify_ssl=false, @open_timeout=nil, @user=nil, @ssl_ca_file=nil, @timeout=nil, @url="https://int.openshift.redhat.com/broker/rest/domains", @raw_response=false, @processed_headers={"Accept"=>"application/json", "Content-Type"=>"application/x-www-form-urlencoded", "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)", "Content-Length"=>"0", "Accept-Encoding"=>"gzip, deflate"}, @payload="", @args={:timeout=>nil, :method=>"GET", :url=>"https://int.openshift.redhat.com/broker/rest/domains", :payload=>{}, :headers=>{:accept=>:json, "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}}, @ssl_client_key=nil, @headers={:accept=>:json, "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}> D, [2012-11-01T14:13:52.304333 #14871] DEBUG -- : Finding application :name => phpscaletest, :framework => D, [2012-11-01T14:13:52.304410 #14871] DEBUG -- : Getting all applications for domain wsunint1101 D, [2012-11-01T14:13:52.304617 #14871] DEBUG -- : Request: #<RestClient::Request:0x7fd416ddd5c8 @max_redirects=10, @cookies={}, @ssl_client_cert=nil, @block_response=nil, @password=nil, @method="GET", @tf=nil, @verify_ssl=false, @open_timeout=nil, @user=nil, @ssl_ca_file=nil, @timeout=nil, @url="https://int.openshift.redhat.com/broker/rest/domains/wsunint1101/applications", @raw_response=false, @processed_headers={"Accept"=>"application/json", "Content-Type"=>"application/x-www-form-urlencoded", "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)", "Content-Length"=>"0", "Accept-Encoding"=>"gzip, deflate"}, @payload="", @args={:timeout=>nil, :method=>"GET", :url=>"https://int.openshift.redhat.com/broker/rest/domains/wsunint1101/applications", :payload=>{}, :headers=>{:accept=>:json, "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}}, @ssl_client_key=nil, @headers={:accept=>:json, "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}> D, [2012-11-01T14:13:55.198555 #14871] DEBUG -- : Adding cartridge postgresql-8.4 D, [2012-11-01T14:13:55.198810 #14871] DEBUG -- : Request: #<RestClient::Request:0x7fd4170316f8 @max_redirects=10, @cookies={}, @ssl_client_cert=nil, @block_response=nil, @password=nil, @method="POST", @tf=nil, @verify_ssl=false, @open_timeout=nil, @user=nil, @ssl_ca_file=nil, @timeout=nil, @url="https://int.openshift.redhat.com/broker/rest/domains/wsunint1101/applications/phpscaletest/cartridges", @raw_response=false, @processed_headers={"Accept"=>"application/json", "Content-Type"=>"application/x-www-form-urlencoded", "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)", "Content-Length"=>"19", "Accept-Encoding"=>"gzip, deflate"}, @payload="name=postgresql-8.4", @args={:timeout=>nil, :method=>"POST", :url=>"https://int.openshift.redhat.com/broker/rest/domains/wsunint1101/applications/phpscaletest/cartridges", :payload=>{:name=>"postgresql-8.4"}, :headers=>{:accept=>:json, "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}}, @ssl_client_key=nil, @headers={:accept=>:json, "Authorization"=>"Basic d3N1bisxQHJlZGhhdC5jb206cmVkaGF0", "User-Agent"=>"rhc/1.0.3 (ruby 1.8.7; x86_64-linux)"}> Connection to server timed out. It is possible the operation finished without being able to report success. Use 'rhc domain show' or 'rhc app status' to check the status of your applications. 3. [wsun@localhost int]$ rhc domain show Password: ****** Applications in wsunint1101 =========================== jbossscaletest @ http://jbossscaletest-wsunint1101.int.rhcloud.com/ =================================================================== Application Info ================ Git URL = ssh://6a24679640534c588328e76ba6145367.rhcloud.com/~/git/jbossscaletest.git/ Created = Oct 31 11:11 PM Gear Size = small UUID = 6a24679640534c588328e76ba6145367 SSH URL = ssh://6a24679640534c588328e76ba6145367.rhcloud.com Cartridges ========== jbossas-7 haproxy-1.4 postgresql-8.4 = postgresql://c7dacf2423-wsunint1101.int.rhcloud.com:37491/ Scaling Info ============ Scaled x2 (minimum: 2, maximum: available gears) with haproxy-1.4 on small gears phpscaletest @ http://phpscaletest-wsunint1101.int.rhcloud.com/ =============================================================== Application Info ================ Git URL = ssh://2038e4e2821b4389a8291e2317d5f043.rhcloud.com/~/git/phpscaletest.git/ Created = 12:35 AM Gear Size = small UUID = 2038e4e2821b4389a8291e2317d5f043 SSH URL = ssh://2038e4e2821b4389a8291e2317d5f043.rhcloud.com /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/rest/cartridge.rb:68:in `connection_info': undefined method `rstrip' for nil:NilClass (NoMethodError) from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/output_helpers.rb:70:in `display_included_carts' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/output_helpers.rb:69:in `map' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/output_helpers.rb:69:in `display_included_carts' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/output_helpers.rb:55:in `display_app' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/helpers.rb:200:in `header' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/output_helpers.rb:53:in `display_app' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/helpers.rb:261:in `call' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/helpers.rb:261:in `section' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/helpers.rb:278:in `paragraph' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/output_helpers.rb:52:in `display_app' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/output_helpers.rb:42:in `display_domain' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/output_helpers.rb:41:in `each' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/output_helpers.rb:41:in `display_domain' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/helpers.rb:200:in `header' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/output_helpers.rb:40:in `display_domain' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/commands/domain.rb:48:in `show' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/commands.rb:129:in `send' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/commands.rb:129:in `to_commander' from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/command.rb:180:in `call' from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/command.rb:180:in `call' from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/command.rb:155:in `run' from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/runner.rb:402:in `run_active_command' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/command_runner.rb:58:in `run!' from /usr/lib/ruby/gems/1.8/gems/commander-4.1.2/lib/commander/delegates.rb:7:in `run!' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/lib/rhc/cli.rb:40:in `start' from /usr/lib/ruby/gems/1.8/gems/rhc-1.0.3/bin/rhc:21 from /usr/bin/rhc:19:in `load' from /usr/bin/rhc:19 Expected results: Don't have error messages. Additional info: Add db cartridges to a scalable app,always show:Connection to server timed out. It is possible the operation finished without being able to report success. Use 'rhc domain show' or 'rhc app status' to check the status of your applications.
Meet a lot of Node execution failure while adding jenkins client to app in INT today. ERROR Adding 'jenkins-client-1.4' to application 'jbossas41uqfe5' Node execution failure (error getting result from node). If the problem persists please contact Red Hat support.
#rhc app create 5iyrgw50w8 zend-5.6 -l jizhao+2 -p redhat --timeout 360 Creating application '5iyrgw50w8' ================================= Scaling: no Cartridge: zend-5.6 Namespace: ih5u5b6znn Gear Size: default [31mNode execution failure (error getting result from node). If the problem persists please contact Red Hat support.[0m Command Return: 128 #Add postgresql to app #rhc cartridge add -a el865wljvq -c postgresql-8.4 ERROR [04:42:43] Adding 'postgresql-8.4' to application 'el865wljvq' [31mNode execution failure (error getting result from node). If the problem persists please contact Red Hat support.[0m
Created attachment 636639 [details] Node Execution Failure Error log Attached is some log from client side about node execution failure error
Sending to the cli for the nil error
Fixed in: https://github.com/openshift/rhc/pull/207
Commit pushed to master at https://github.com/openshift/rhc https://github.com/openshift/rhc/commit/e07a7ed7606134a5bf28df9b528d008e3b9c1695 Bug 872084 - URL value lookup is not safe
verified on devenv_2421 Created scalable app Add mysql to it. rhc domain show Add postgres to it rhc domain show Removed cartrigdes Embedded it again rhc domain show No errors