VMware Cloud Community
surendhar
Contributor
Contributor

VMware Infrastructure Web Access - Web Service not availabe

HI All,

Recently i download and install the vmwar2.0.0.122956

after installaing i tried login through the web interface using https://127.0.0.1:8333 home page appear.

i Enter the username and password.

I got error : Web Service not available. What is the problem.

Reply
0 Kudos
19 Replies
wila
Immortal
Immortal

From the version # and other information it sounds to me like you are using VMware Server 2.x and not Virtual Center (the group you posted into)

Anyways.. there are a couple of things to try.

What user did you setup to administer your server? Is it your normal user or was it root? Have you tried with root?

What is your host OS?

Is the tomcat server for administering your VMs running?

--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
surendhar
Contributor
Contributor

I used root user

HostOS : RHEL5

Tomcat is also running.

Reply
0 Kudos
wila
Immortal
Immortal

Hi,

Thank you, that helps.

Did you follow the release notes on SELinux then? You have to follow some additional steps in order to get this bit to work on RHEL5

http://www.vmware.com/support/server2/doc/releasenotes_vmserver2.html

The only other alternative is to disable SELinux (permissive won't do in that case) and that is actually bad advice (disabling SElinux I mean)



--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
wila
Immortal
Immortal

For your convenience, here is the snippet in the notes I was talking about:

On Red Hat Enterprise Linux 5 with SELinux enabled, the host agent will not start due to library loading errors.
Workaround: Use the chcon command to change the security context for any libraries that fail to load, for example:
chcon -t texrel_shlib_t /usr/lib/vmware/vmacore/libvmacore.so.1.0.



--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
surendhar
Contributor
Contributor

Selinux has been disabled.

Reply
0 Kudos
wila
Immortal
Immortal

So are you saying that even after disabling SELinux -again changing to permissive won't help- and then rebooting it still doesn't work for you?

Have you tried using the real IP for your host and not 127.0.0.1?

--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
surendhar
Contributor
Contributor

Yes tried using the real IP address also

ans also i tried with http://192.168.1.81:8222

If you want? i can post you the log.

Reply
0 Kudos
surendhar
Contributor
Contributor

tail -f /var/log/vmware/webAccess/proxy.log

Error processing action request /action/login : (503)Service Unavailable

Reply
0 Kudos
wila
Immortal
Immortal

Is port 8308 open on your host's firewall?

--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
surendhar
Contributor
Contributor

Firewall is not running in the Host.

I have Checked the open ports:

# nmap localhost

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2008-11-19 18:12 IST

Interesting ports on TESTDB (192.168.1.81):

Not shown: 1672 closed ports

PORT STATE SERVICE

22/tcp open ssh

80/tcp open http

111/tcp open rpcbind

631/tcp open ipp

733/tcp open unknown

902/tcp open iss-realsecure-sensor

3306/tcp open mysql

8009/tcp open ajp13

Nmap finished: 1 IP address (1 host up) scanned in 0.116 seconds

Reply
0 Kudos
wila
Immortal
Immortal

Hi,

Ok, I did the same thing here and don't have a server running on port 80 and no mysql, but none of those shouldn't be a problem with a default setup of VMware server.

On my setup I also do not see port 8308 as open using nmap, however this doesn't mean it isn't used!

The strange thing was that I do get a blank page when connecting to port 8308, but not quite so when adding a little bit of extra's down there.. after adding the "/ui" bit I can just login as if I connect to port 8222.....

Here's the wget output on my fedora9 machine:

$ wget 127.0.0.1:8308/ui
--2008-11-19 19:57:17--  http://127.0.0.1:8308/ui
Connecting to 127.0.0.1:8308... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://127.0.0.1:8308/ui/ [following]
--2008-11-19 19:57:17--  http://127.0.0.1:8308/ui/
Connecting to 127.0.0.1:8308... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4254 (4.2K) [text/html]
Saving to: `index.html'

100%[=============================================================>] 4,254       --.-K/s   in 0s      

2008-11-19 19:57:17 (118 MB/s) - `index.html' saved [4254/4254]


$ wget 127.0.0.1:8222
--2008-11-19 19:43:48--  http://127.0.0.1:8222/
Connecting to 127.0.0.1:8222... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1833 (1.8K) [text/html]
Saving to: `index.html'

100%[=============================================================>] 1,833       --.-K/s   in 0s      

2008-11-19 19:43:48 (40.9 MB/s) - `index.html' saved [1833/1833]

The proxy is proxying from port 8308 to 8222/8333 from what I've understood about this part.

The configuration for this can be found in the proxy.xml config file as in:

cat /etc/vmware/hostd/proxy.xml 

and here's a snippet of my config:

    <e id="2">
      <_type>vim.ProxyService.LocalServiceSpec</_type>
      <accessMode>httpsWithRedirect</accessMode>
      <port>8308</port>
      <serverNamespace>/ui</serverNamespace>
    </e>

hth,



--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
surendhar
Contributor
Contributor

I tried using the following port http://127.0.0.1:8308/ui -


&gt; i can able to access the web page, but when i tried login with the user name

and password.

It shows an same error. ---&gt; Webservice not available.

Reply
0 Kudos
wila
Immortal
Immortal

Hi,

If i"m not mistaken then your /var/log/hostd.log file will have errors about this issue and maybe will provide us with some more details.

In addition here's 2 threads of similar issues that might help give you some ideas:



--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
surendhar
Contributor
Contributor

tail -f /var/log/vmware/hostd.log

Connection to server localhost:8307 failed with error Connection refused. Retrying...

Connection to server localhost:8307 failed with error Connection refused. Retrying...

Tihs error msg.

Reply
0 Kudos
wila
Immortal
Immortal

That's just so weird as you can connect via the browser.. just not log in.

Have you changed any of the default settings? And in particular with regards to tcp ports?

Have you tried connecting with the virtual infrastructure client?

You'll need a windows machine somewhere, but you can get the client from:

/usr/lib/vmware/hostd/docroot/client/VMware-viclient.exe

To connect the VI client you would enter the following for your host: https://:8333 or to give you an example, if your Hosts IP is 10.10.10.10 then you would type:

 https://10.10.10.10:8333

The additional port is required as you are not using port 443 by default.

When you are connecting from Windows... please try also with Internet Explorer, maybe there's a certificate issue of some kind. Although in that case I would have expected more errors in the hostd.log file. From your feedback it seems you are always checking your logs with tail -f ... have you browsed over them with less as well, so that you would see additional errors that have happened before trying to log in?

Did you really reboot after disabling SELinux?

What happens if you try:

vmware-hostd restart

and then try to log in again.

What's the output of:

netstat -a | grep tcp | grep LISTEN

and from:

su -c "ps -ef |grep vmware"

Did you install tcp wrappers?

What happens if you just run "vmware" from a terminal? This should open the browser to the webaccess console...

If none of this helps, can you try to run: vmware-config.pl again?



--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
surendhar
Contributor
Contributor

i have not changed any default settings.

I have never run SELINUX in my system.

i could not find /etc/init.d/vmware-hostd

# vmware-hostd restart

Current working directory: /root

error: Could not find any plugins in config file

backtrace:

eip 0x62bc7d

eip 0x514225

eip 0x4b26e4

eip 0x4bedc8

eip 0x4c37e3

eip 0x4ba323

eip 0x8684067

eip 0x86918c4

eip 0x86a20d6

eip 0xcabdec

eip 0x81dff81

I tried from windows infastrucutre client and also from IE it not working.

# netstat -an | grep tcp | grep LISTEN

tcp 0 0 127.0.0.1:2208 0.0.0.0:* LIST EN

tcp 0 0 192.168.1.81:8005 0.0.0.0:* LIST EN

tcp 0 0 0.0.0.0:902 0.0.0.0:* LIST EN

tcp 0 0 0.0.0.0:8009 0.0.0.0:* LIST EN

tcp 0 0 0.0.0.0:3306 0.0.0.0:* LIST EN

tcp 0 0 0.0.0.0:8333 0.0.0.0:* LIST EN

tcp 0 0 0.0.0.0:111 0.0.0.0:* LIST EN

tcp 0 0 127.0.0.1:8307 0.0.0.0:* LIST EN

tcp 0 0 0.0.0.0:8308 0.0.0.0:* LIST EN

tcp 0 0 0.0.0.0:22 0.0.0.0:* LIST EN

tcp 0 0 192.168.1.81:631 0.0.0.0:* LIST EN

tcp 0 0 127.0.0.1:25 0.0.0.0:* LIST EN

tcp 0 0 0.0.0.0:764 0.0.0.0:* LIST EN

tcp 0 0 0.0.0.0:8222 0.0.0.0:* LIST EN

tcp 0 0 127.0.0.1:2207 0.0.0.0:* LIST EN

# su -c "ps -ef|grep vmware"

root 2011 1 0 16:14 ? 00:00:00 /usr/bin/vmnet-dhcpd -cf /etc/vmware/vmnet1/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet1/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet1.pid vmnet1

root 2029 1 0 16:14 ? 00:00:00 /usr/bin/vmnet-dhcpd -cf /etc/vmware/vmnet8/dhcpd/dhcpd.conf -lf /etc/vmware/vmnet8/dhcpd/dhcpd.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8

root 2034 1 0 16:14 ? 00:00:00 /usr/bin/vmnet-natd -d /var/run/vmnet-natd-8.pid -m /var/run/vmnet-natd-8.mac -c /etc/vmware/vmnet8/nat/nat.conf

root 2300 1 0 16:14 ? 00:00:00 /bin/sh /usr/bin/vmware-watchdog -s webAccess -u 30 -q 5 /usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess -client -Xmx64m -XX:MinHeapFreeRatio=30 -XX:MaxHeapFreeRatio=30 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/common/endorsed -classpath /usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/bin/bootstrap.jar:/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/bin/commons-logging-api.jar -Dcatalina.base=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16 -Dcatalina.home=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16 -Djava.io.tmpdir=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/temp org.apache.catalina.startup.Bootstrap start

root 2305 1 0 16:14 ? 00:00:00 /usr/sbin/vmware-authdlauncher

root 2310 2300 0 16:14 ? 00:00:06 /usr/lib/vmware/webAccess/java/jre1.5.0_15/bin/webAccess -client -Xmx64m -XX:MinHeapFreeRatio=30 -XX:MaxHeapFreeRatio=30 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/common/endorsed -classpath /usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/bin/bootstrap.jar:/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/bin/commons-logging-api.jar -Dcatalina.base=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16 -Dcatalina.home=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16 -Djava.io.tmpdir=/usr/lib/vmware/webAccess/tomcat/apache-tomcat-6.0.16/temp org.apache.catalina.startup.Bootstrap start

root 2489 1 0 16:15 ? 00:00:03 /usr/lib/vmware/bin/vmware-hostd -a -d -u /etc/vmware/hostd/config.xml

root 4255 4020 0 17:32 pts/3 00:00:00 su -c ps -ef|grep vmware

root 4256 4255 0 17:32 pts/3 00:00:00 bash -c ps -ef|grep vmware

root 4258 4256 0 17:32 pts/3 00:00:00 bash -c ps -ef|grep vmware

#

Reply
0 Kudos
wila
Immortal
Immortal

Hi,

My bad on the vmware-hostd restart... I meant to write about:

 /etc/init.d/vmware-mgmt restart

I'm starting to run out of ideas... did you change the default PAM configuration?

Also sorry for keep on returning to SELINUX but I take it that you are aware that it is enabled by default these days?

So from your feedbak I take it that the file /var/log/setroubleshoot/setroubleshootd.log is empty?

So

less  /var/log/setroubleshoot/setroubleshootd.log

Returns nothing?



--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos
surendhar
Contributor
Contributor

# /etc/init.d/vmware-mgmt restart

Stopping VMware management services:

VMware Virtual Infrastructure Web Access

VMware Server Host Agent

Starting VMware management services:

VMware Server Host Agent (background)

VMware Virtual Infrastructure Web Access

#

<code>less /var/log/setroubleshoot/setroubleshootd.log </code>----It return nothing. I didn't change or touch the pam Configuration.

Reply
0 Kudos
wila
Immortal
Immortal

I hate saying this, but can you try to re-install?

--

Wil

| Author of Vimalin. The virtual machine Backup app for VMware Fusion, VMware Workstation and Player |
| More info at vimalin.com | Twitter @wilva
Reply
0 Kudos