[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Installing Openshift Origins on CentOS 6] rhc question



Hi Dennis,

Can you also attach the Broker production and development logs. /var/www/openshift/broker/logs/*.log
That would help with debugging the issue.

--Krishna

On Jan 28, 2013, at 8:10 AM, Clayton Coleman <ccoleman redhat com> wrote:

> The broker is returning HTML in your debug trace - that means an error on the broker side, or a bad HTTP proxy between you and the server.  Can you provide the output of the curl command?
> 
> ----- Original Message -----
>> 
>> Thanks for all your responses. It does appear that the API is
>> functioning properly. This appears to be a client issue. I'm running
>> the client tools on Ubunu 12.04 LTS.
>> 
>> Thanks.
>> 
>> 
>> On Sat, Jan 26, 2013 at 9:42 AM, Clayton Coleman <
>> ccoleman redhat com > wrote:
>> 
>> 
>> 
>> 
>> This means the broker is not configured properly (it's throwing an
>> error). Curl https://yourserver/broker/rest/user.json -u
>> <user>:<pass> and see whether it returns an HTML error page. If it
>> doesn't, curl domains.json.
>> 
>> 
>> Also, run oo-accept-broker
>> 
>> 
>> 
>> On Jan 26, 2013, at 9:06 AM, William DeCoste < wdecoste redhat com >
>> wrote:
>> 
>> 
>> 
>> 
>> 
>> 
>> Hi Dennis,
>> 
>> What version of RHC do you have installed? Strange that you can hit
>> the rest api via curl but not rhc. Perhaps the rhc and broker
>> versions are out-of-sync.
>> 
>> Thanks -Bill
>> 
>> 
>> 
>> 
>> On 1/25/13 3:07 PM, Dennis Kirkpatrick wrote:
>> 
>> 
>> I realize that I forgot to put the debug output for rhc. Here it is--
>> 
>> dennis prometheus:~$ rhc -d setup
>> DEBUG: Running greeting_stage
>> OpenShift Client Tools (RHC) Setup Wizard
>> 
>> This wizard will help you upload your SSH keys, set your application
>> namespace,
>> and check that other programs like Git are properly installed.
>> 
>> DEBUG: Running login_stage
>> Login to broker.gorilla.dev.opal.synacor.com : username
>> Password: *******
>> 
>> DEBUG: Connecting to
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api
>> DEBUG: Client supports API versions 1.1, 1.2, 1.3
>> DEBUG: Request: #<RestClient::Request:0x7f8e764e78a0
>> @ssl_client_cert=nil, @block_response=nil, @timeout=nil,
>> @args={:open_timeout=>4, :method=>:get, :timeout=>nil, :url=>"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api ",
>> :headers=>{:accept=>:json, "Authorization"=>"Basic
>> dXNlcm5hbWU6dGVzdGluZw==", "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7;
>> x86_64-linux)"}}, @tf=nil, @verify_ssl=false,
>> @headers={:accept=>:json, "Authorization"=>"Basic
>> dXNlcm5hbWU6dGVzdGluZw==", "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7;
>> x86_64-linux)"}, @ssl_ca_file=nil, @open_timeout=4, @url="
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api ",
>> @raw_response=false, @processed_headers={"Accept-Encoding"=>"gzip,
>> deflate", "Authorization"=>"Basic dXNlcm5hbWU6dGVzdGluZw==",
>> "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7; x86_64-linux)",
>> "Accept"=>"application/json"}, @password=nil, @payload=nil,
>> @ssl_client_key=nil, @method=:get, @max_redirects=10, @user=nil,
>> @cookies={}>
>> DEBUG: Response:
>> "{\"supported_api_versions\":[1.0,1.1,1.2],\"messages\":[],\"version\":\"1.2\",\"status\":\"ok\",\"data\":{\"LIST_DOMAINS\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/domains\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"List
>> domains\"},\"GET_ENVIRONMENT\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/environment\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"Get
>> environment information\"},\"ADD_DOMAIN\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/domains\
>> ",\"method\":\"POST\",\"optional_params\":[],\"required_params\":[{\"description\":\"Name
>> of the
>> domain\",\"valid_options\":[],\"invalid_options\":[],\"type\":\"string\",\"name\":\"id\"}],\"rel\":\"Create
>> new domain\"},\"LIST_TEMPLATES\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/application_templates\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"List
>> application templates\"},\"API\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"API
>> entry point\"},\"LIST_CARTRIDGES\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/cartridges\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"List
>> cartridges\"},\"GET_USER\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/user\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"Get
>> user information\"},\"LIST_ESTIMATES\":{\"href\":\"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/estimates\
>> ",\"method\":\"GET\",\"optional_params\":[],\"required_params\":[],\"rel\":\"List
>> available estimates\"}},\"type\":\"links\"}"
>> DEBUG: Server supports API versions 1.0, 1.1, 1.2
>> DEBUG: Getting user info
>> DEBUG: Request: #<RestClient::Request:0x7f8e764be8d8
>> @ssl_client_cert=nil, @block_response=nil, @timeout=nil,
>> @args={:open_timeout=>4, :method=>"GET", :timeout=>nil, :url=>"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/user ",
>> :payload=>{}, :headers=>{:accept=>:json, "Authorization"=>"Basic
>> dXNlcm5hbWU6dGVzdGluZw==", "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7;
>> x86_64-linux)"}}, @tf=nil, @verify_ssl=false,
>> @headers={:accept=>:json, "Authorization"=>"Basic
>> dXNlcm5hbWU6dGVzdGluZw==", "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7;
>> x86_64-linux)"}, @ssl_ca_file=nil, @open_timeout=4, @url="
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/user ",
>> @raw_response=false, @processed_headers={"Content-Length"=>"0",
>> "Content-Type"=>"application/x-www-form-urlencoded",
>> "Accept-Encoding"=>"gzip, deflate", "Authorization"=>"Basic
>> dXNlcm5hbWU6dGVzdGluZw==", "User-Agent"=>"rhc/1.2.7 (ruby 1.8.7;
>> x86_64-linux)", "Accept"=>"application/json"}, @password=nil,
>> @payload="", @ssl_client_key=nil, @method="GET", @max_redirects=10,
>> @user=nil, @cookies={}>
>> DEBUG: Response: nil
>> D, [2013-01-25T16:05:56.596358 #12248] DEBUG -- : Response did not
>> include a message from server: invalid character at "<!DOCTYPE "
>> The server did not respond correctly. This may be an issue with the
>> server
>> configuration or with your connection to the server (such as a Web
>> proxy or
>> firewall).Please verify that you can access the OpenShift server
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/user
>> dennis prometheus:~$
>> 
>> 
>> On Fri, Jan 25, 2013 at 3:52 PM, Dennis Kirkpatrick <
>> dennis kirkpatrick gorillalogic com > wrote:
>> 
>> 
>> First, thanks to everyone answering my questions on the Openshift
>> Origin install for CentOS 6.3. I was able to work through all my
>> issues and get it installed and configured without seeing any issues
>> through the broker and node setup. However, then I ran into a
>> problem setting up rhc Client Tools. Here is the console output--
>> 
>> dennis prometheus:~$ curl -Ik
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api
>> HTTP/1.1 200 OK
>> Date: Fri, 25 Jan 2013 22:45:23 GMT
>> Server: Apache/2.2.15 (CentOS)
>> X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 3.0.17
>> X-UA-Compatible: IE=Edge,chrome=1
>> X-Runtime: 0.054270
>> ETag: "538b502c5994f0f51f925229e4684f3e"
>> Cache-Control: max-age=0, private, must-revalidate
>> Status: 200
>> Content-Type: application/json; charset=utf-8
>> Connection: close
>> 
>> dennis prometheus:~$ curl -k
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api
>> {"supported_api_versions":[1.0,1.1,1.2],"messages":[],"version":"1.2","status":"ok","data":{"LIST_DOMAINS":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/domains
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"List
>> domains"},"GET_ENVIRONMENT":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/environment
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"Get
>> environment information"},"ADD_DOMAIN":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/domains
>> ","method":"POST","optional_params":[],"required_params":[{"description":"Name
>> of the
>> domain","valid_options":[],"invalid_options":[],"type":"string","name":"id"}],"rel":"Create
>> new domain"},"LIST_TEMPLATES":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/application_templates
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"List
>> application templates"},"API":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/api
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"API
>> entry point"},"LIST_CARTRIDGES":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/cartridges
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"List
>> cartridges"},"GET_USER":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/user
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"Get
>> user information"},"LIST_ESTIMATES":{"href":"
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/estimates
>> ","method":"GET","optional_params":[],"required_params":[],"rel":"List
>> available dennis prometheus:~$ rhc setup
>> OpenShift Client Tools (RHC) Setup Wizard
>> 
>> This wizard will help you upload your SSH keys, set your application
>> namespace,
>> and check that other programs like Git are properly installed.
>> 
>> Login to broker.gorilla.dev.opal.synacor.com : username
>> Password: *******
>> 
>> The server did not respond correctly. This may be an issue with the
>> server
>> configuration or with your connection to the server (such as a Web
>> proxy or
>> firewall).Please verify that you can access the OpenShift server
>> https://broker.gorilla.dev.opal.synacor.com/broker/rest/user
>> dennis prometheus:~$
>> 
>> I decided to check the broker logs for any info, but the
>> /var/log/openshift came up with nada. Anyone faced this issue
>> before?
>> 
>> Thanks.
>> 
>> 
>> 
>> --
>> Dennis D. Kirkpatrick | DevOps Consultant | GorillaLogic
>> 1500 Pearl Street, Suite 300 | Boulder, CO 80302
>> t. (720) 446-6512 s. ddkirkpat
>> e. dennis kirkpatrick gorillalogic com
>> 
>> _______________________________________________
>> dev mailing list dev lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>> --
>> Bill DeCoste
>> Principal Software Engineer, Red Hat 978-204-0920 wdecoste redhat com
>> 
>> 
>> _______________________________________________
>> dev mailing list
>> dev lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>> 
>> _______________________________________________
>> dev mailing list
>> dev lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>> 
>> 
>> 
>> _______________________________________________
>> dev mailing list
>> dev lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev
>> 
> 
> _______________________________________________
> dev mailing list
> dev lists openshift redhat com
> http://lists.openshift.redhat.com/openshiftmm/listinfo/dev



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]