Can't connect to Virtualization Manager

Latest response

Hi All,

 

I just installed RHEV, following the installation document, and everything seemed to go well.  When trying to connect to the admin portal from a web broswer (https://server_name:8443/ or http://server_name:8080), the connection times out.  Looking in /var/log/jbossas/rhevm-slimmed/server.log, I see the following error:

 

java.lang.Exception: No Certificate file specified or invalid file format

      at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method)

      at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:660)

      ... etc

 

A whole bunch of other errors follow (and probably caused by) the above.

 

When RHEV install completed, I got the "**** Installation completed successfully ****" and the "Additional information" section seemed to indicate that the SSL cert and SSH public keys got created ok.

 

I am not using iptables and there are no intermnediate firewalls. 

 

I've tried doing a rhevm-cleanup and a reinstall, but the problem persists.

 

Any ideas?

 

Regards,

Steve.

Responses

Hi Steve

Did you install the certificateas the first, when you connect to http://server_name:8080 ?

and after that log in as admin.

br,

Peter Calum, DEnmark

Which browser do you use ? - try IE first..

Peter

Peter,

 

I don't even get as far as installing the certificates, the connection times out.  I did a netstat -al and I don't see anything listening on ports 8080 or 8443, so something isn't starting up correctly.

 

-Steve.

Peter,

 

I've tried both IE (with modified security settings per the install doc) and Firefox, both browsers time out when trying to connect.  If I do a netstat -al, I see that nothing is listenning on ports 8080 or 8443, so something is not starting up correctly.

 

-Steve.

 

Hi Steve

 

try

netstat -an | grep 8080
tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN   

 

service jbossas status
jbossas (pid 1855) is running

 

service jbossas stop

service jbossas start

 

 

br,

Peter

 

Hi Peter,

 

Thanks for the info.  I can see

 

tcp        0      0 0.0.0.0:8080                0.0.0.0:*                   LISTEN  

 

when I do a nestat -an and the jbossas service is running.  I tried stopping and restarting it, but I'm still getting the certificate error in server.log

 

-Steve.

 

Hmm, maybe you should start from a fresh Linux install, or rise a bug report.

I think it is strange that you get no response at all, when server is listening at port 8080.

Are you sure there's no FW issues on port 8080 / 8083 between your PC and RHEVM server ?

 

br,

Peter

Hi Peter,

 

There are defintely no firewalls between the hosts.  The error in the jbossas log file tells me there's something wrong with the way the coyote connector is starting up, something about certificates.  Specifically, the error is:

 

ERROR: [org.apache.coyote.http11.Http11AprProtocol] Error initializing endpoint

java.lang.Exception: No Certificate file specified or invalid file format

    at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method)

 

Am I supposed to generate any certificates myself?  I'm following the RHEVM installation guide to the letter and there's no mention of generating certificates.  In the installation log file for RHEVM, I see that certificates are generated and the certificate fingerprints are displayed.

 

-Steve.

 

*** Problem solved ***

 

I found a solution to my problem in this thread.

 

In /var/lib/jbossas/server/rhevm-slimmed/deploy/jbossweb.sar/server.xml, I changed the two instances of:

 

<Connector protocol="HTTP/1.1" .... >

 

to:

 

<Connector protocol="org.apache.coyote.http11.Http11Protocol" .... >

 

After restarting jbossas, the certificate errors went away and I was able to connect to the rhevm admin portal using http and https (after some futzing with root certificates in IE8).

 

-Steve.

 

 

Awesome, Steve. Thanks for letting us know how you resolve this one.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.