VMware Cloud Community
kach
Contributor
Contributor
Jump to solution

Web UI not display after change /etc/hosts

I can able to access webui using http://my_esx_IP until

I did made some change to /etc/hosts

from 127.0.0.1 localhost.localdomain

to 127.0.0.1 esxbox.localdomain

After that I can't access the webui .

Then I tried to reverse it back to old one and did restart the webAccess by

\# service vmware-webAccess restart

But, I still can't access webui.

I did tried "telnet 80", and there result reflect no error. Port 80 open and work properly.

And webAccess seems to runing properly as a result of this cmd.

\# ps -aux|grep webAccess

root 4290 0.5 24.1 291348 64676 ? S 01:26 0:08 /usr/lib/vmware/webAccess/java/jre1.5.0_04/bin/webAccess -server -Xincgc -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/lib/vmware/webAccess/tomcat/jakarta-tomcat-5.5.9/common/endorsed -classpath :/usr/lib/vmware

And, here are the messages I toke from /var/log/vmware/hostd.log

\[2006-12-03 01:32:53.437 'ProxysvcPlugin' 7789488 error] Connection to server localhost:9080 failed with error Success. Retrying...

\[2006-12-03 01:33:13.477 'ProxysvcPlugin' 2862000 error] Connection to server localhost:9080 failed with error Success. Retrying...

\[2006-12-03 01:33:33.517 'ProxysvcPlugin' 7789488 error] Connection to server localhost:9080 failed with error Success. Retrying...

\[2006-12-03 01:33:53.557 'ProxysvcPlugin' 2862000 error] Connection to server localhost:9080 failed with error Success. Retrying...

\[2006-12-03 01:34:13.597 'ProxysvcPlugin' 7789488 error] Connection to server localhost:9080 failed with error Success. Retrying...

\[2006-12-03 01:34:33.637 'ProxysvcPlugin' 2862000 error] Connection to server localhost:9080 failed with error Success. Retrying...

\[2006-12-03 01:34:53.677 'ProxysvcPlugin' 7789488 error] Connection to server localhost:9080 failed with error Success. Retrying...

\[2006-12-03 01:35:13.717 'ProxysvcPlugin' 2862000 error] Connection to server localhost:9080 failed with error Success. Retrying...

\[2006-12-03 01:35:33.757 'ProxysvcPlugin' 7789488 error] ProxyReq: Exception while processing request: Success

\[2006-12-03 01:35:53.797 'ProxysvcPlugin' 2862000 error] ProxyReq: Exception while processing request: Success

Anybody know what to do?

0 Kudos
1 Solution

Accepted Solutions
jmcdonald1
VMware Employee
VMware Employee
Jump to solution

WebAccess depends on the ability to be able to map to localhost. Thus if you cannot 'ping localhost' and get a response back from 127.0.0.1 than it will fail. Change the localhost line in your hosts file to look like this:

127.0.0.1 localhost.localdomain localhost

and than restart the webservice, and you should be good to go. I recommend leaving the first line of the hosts file like above.

(PS: I think you can change this behavior in one of the WebAccess configuration files located in /etc/vmware/WebAccess, however off the top of my head I cannot remember which file)

View solution in original post

0 Kudos
5 Replies
jmcdonald1
VMware Employee
VMware Employee
Jump to solution

WebAccess depends on the ability to be able to map to localhost. Thus if you cannot 'ping localhost' and get a response back from 127.0.0.1 than it will fail. Change the localhost line in your hosts file to look like this:

127.0.0.1 localhost.localdomain localhost

and than restart the webservice, and you should be good to go. I recommend leaving the first line of the hosts file like above.

(PS: I think you can change this behavior in one of the WebAccess configuration files located in /etc/vmware/WebAccess, however off the top of my head I cannot remember which file)

0 Kudos
jonhutchings
Hot Shot
Hot Shot
Jump to solution

I think you need the short form localhost too so

127.0.0.1 locahost.locadomain localhost

0 Kudos
kach
Contributor
Contributor
Jump to solution

did it, but no luck at all. Smiley Sad

0 Kudos
kach
Contributor
Contributor
Jump to solution

Hi,

It work now!!.

I notcie that I am something wrong with mgmt-vmware then

I did restart it. And now I can access to webui.

Thank all for your help.

0 Kudos
jmdiazs001
Contributor
Contributor
Jump to solution

Hallo, me too i had this problem, and succeded when i changed the dns domain en VMware VI client, mi hostname is szzonazvm1 and the /etc/host must be:

127.0.0.1 szzonazvm1.soluziona.lan.guf.es localhost

10.240.5.241 szzonazvm1.soluziona.lan.guf.es

it is important do ping to localhost and be OK

0 Kudos