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

Re: 500 Server error on invoking /broker/rest/[domains|cartridges] after installing Origin on RHEL 6.4



Hi Marek/all,

So after reinstalling the broker and a node manually, and installing the openshift-origin-cartridge-* on the node, the broker/rest/cartridges is still giving me a '500 Internal Server error'.

The logs from /var/log/openshift/broker/httpd/error_log has the following error :

<<...snip...>>

[ pid=2382 thr=139694832588768 file=ext/apache2/Hooks.cpp:841 time=2013-06-21 17:01:54.766 ]: The backend application (process 2527) did not send a valid HTTP response; instead, it sent nothing at all. It is possible that it has crashed; please check whether there are crashing bugs in this application.
[ pid=2527 thr=9551980 file=utils.rb:176 time=2013-06-21 17:01:54.766 ]: *** Exception Stomp::Error::NoCurrentConnection in application (Stomp::Error::NoCurrentConnection) (process 2527, thread #<Thread:0x000000012380d8>):        from /opt/rh/ruby193/root/usr/local/share/gems/gems/stomp-1.2.9/lib/stomp/connection.rb:344:in `disconnect'

<<...snip...>>

'mco ping', invoking broker/rest/[api|domains|environment|user] work just fine. 

Is there something else that I could try?

regards,
Shiva




On Thu, Jun 20, 2013 at 12:16 AM, Marek Śmigielski <marek smigielski gmail com> wrote:
I am using centos 6.4 and I have followed instructions on that page:
http://openshift.github.io/origin/file.install_origin_using_puppet.html

As for the steps that I have to done manualy it was:

1. Install puppet from puppet repository (it is with required dependencies), this repo has to be disabled after installation :
http://yum.puppetlabs.com/el/6/products/x86_64/puppetlabs-release-6-7.noarch.rpm

2. Add https://mirror.openshift.com/pub/openshift-origin/rhel-6/x86_64/ as a repo for some additional dependencies.

3. Invoke puppet configuration.

4. Some more post configuration in etc:

BROKER_URL in console.conf
BROKER_HOST and PUBLIC_IP in node.conf
MONGO_PASSWORD in broker.conf and plugins.d/openshift-origin-auth-mongo.conf

 5. Add broker node to dns via nsupdate:
nsupdate -k /var/named/example.com.key 
update add platform.example.com 86400 a 192.168.0.1
send

6. Uninstall all v1 cartridges and install v2 ones. You have to check if you have openshift-origin-cartridge-abstract installed. V2 cartridges require this but they don't have it as a dependency.


7. Use oo-accept-broker   oo-accept-node     oo-accept-systems  to check if everything is ok and make a hard reboot (possibly I have made it more than once while installing, it is definitely not necessary but unless you know exactly what to restart it is easier than guess). 

Also installing jboss cartridge was a bit tricky but if you know a bit linux it is definitely doable. Just follow the installation script for old cartridge version and use rpm from fedora repo. You have to install all dependencies manually and then force install of cartridge.

As far as I have checked except of jenkins everything works great. 

Cheers,
Marek

On 20 June 2013 00:20, Shiva Bhanujan <sxb075 gmail com> wrote:
Hi Marek,

are you installing on RHEL 6.4 or Fedora 18, or some other version?  And for the reinstall, did you use the new instructions that were posted, or the original ones, where you have to manually install every step?

regards,
Shiva



On Fri, Jun 14, 2013 at 12:57 PM, Krishna Raman <kraman gmail com> wrote:
I am working on create RHEL install documentation. Will send out an alert to the list once it is completed.

--Krishna

On Jun 14, 2013, at 3:36 PM, Marek Śmigielski <marek smigielski gmail com> wrote:

Hi,

I have exactly the same problem. Have you found any solution?

Cheers,
Marek

On 13 June 2013 00:17, Shiva Bhanujan <sxb075 gmail com> wrote:
Hello,

I've installed OpenShift Origin on RHEL 6.4 w/ EPEL.  The node/broker are installed on the same host.  After the installation, the invocation of /broker/rest/domains and /broker/rest/cartridges returns a '500 Internal Server Error'.  The STOMP configuration for host/port/user/password in /etc/mcollective/[client|server].cfg looks correct.  The DNS lookup for the broker/node succeeds, and 'mco ping' also returns success.

The following logs from /var/log/openshift/broker/production.log seems to be interesting :

<<...snip...>>

Error processing custom_request for action cartridge-list: no current connection exists
["/opt/rh/ruby193/root/usr/local/share/gems/gems/stomp-1.2.9/lib/stomp/connection.rb:243:in `subscribe'", "/opt/rh/ruby193/root/usr/libexec/mcollective/mcollective/connector/stomp.rb:242:in `subscribe'", "/opt/rh/ruby193/root/usr/share/ruby/mcollective/util.rb:192:in `block in subscribe'", "/opt/rh/ruby193/root/usr/share/ruby/mcollective/util.rb:191:in `each'", "/opt/rh/ruby193/root/usr/share/ruby/mcollective/util.rb:191:in `subscribe'", "/opt/rh/ruby193/root/usr/share/ruby/mcollective/client.rb:65:in `subscribe'", "/opt/rh/ruby193/root/usr/share/ruby/mcollective/client.rb:53:in `sendreq'", "/opt/rh/ruby193/root/usr/share/ruby/mcollective/client.rb:149:in `block in req'", "/opt/rh/ruby193/root/usr/share/ruby/timeout.rb:68:in `timeout'", "/opt/rh/ruby193/root/usr/share/ruby/mcollective/client.rb:148:in `req'", "/opt/rh/ruby193/root/usr/share/ruby/mcollective/rpc/client.rb:822:in `call_agent'",

<<...snip...>> 


Right where connection.subscribe is invoked in self.subscribe@/opt/rh/ruby193/root/usr/share/ruby/mcollective/util.rb, the values for the parameters being passed are as follows :

util.rb:192:in `block in subscribe' connection.subscribe - :agent = 'openshift', :type = 'reply', :collective = 'collective'


I have tried executing 'rhc setup --server <host>', but because /broker/rest/domains doesn't pass, the setup also fails.


This is as far as my debugging goes.  Can somebody suggest based on the above what to look for?  Or, what other information might be required to debug this?


Regards,

Shiva



_______________________________________________
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]