Article ID: 122559, created on Aug 2, 2014, last review on Aug 2, 2014

  • Applies to:
  • H-Sphere 3.5

Symptoms

Control panel inaccessible after upgrade.

Error 503: Service Temporally Unavailable

If you try to restart httpdcp service the following error is shown:

# service httpdcp restart
Stopping tomcat ... Using CATALINA_BASE:   /hsphere/local/home/cpanel/jakarta
Using CATALINA_HOME:   /hsphere/local/home/cpanel/jakarta
Using CATALINA_TMPDIR: /hsphere/local/home/cpanel/jakarta/temp
Using JRE_HOME:        /usr/java/jdk
Using CLASSPATH:       /hsphere/local/home/cpanel/jakarta/bin/bootstrap.jar
Aug 2, 2014 6:23:12 PM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:180)
        at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:422)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:338)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:416)
Stopping tomcat . OK

 OK
Shutting down http:                                        [  OK  ]
Starting tomcat ... Using CATALINA_BASE:   /hsphere/local/home/cpanel/jakarta
Using CATALINA_HOME:   /hsphere/local/home/cpanel/jakarta
Using CATALINA_TMPDIR: /hsphere/local/home/cpanel/jakarta/temp
Using JRE_HOME:        /usr/java/jdk
Using CLASSPATH:       /hsphere/local/home/cpanel/jakarta/bin/bootstrap.jar
 OK
Starting httpd:                                            [  OK  ]

Cause

H-sphere update script rewrote /etc/hosts file.

Resolution

Check that the following string is present in the /etc/hosts file:

# cat /etc/hosts
127.0.0.1               localhost.localdomain localhost

To add this string use the following command:

#echo "127.0.0.1               localhost.localdomain localhost" >> /etc/hosts

Search Words

java.net.ConnectException: Connection refused

Connection refused

Catalina stopServer

Error 503: Service Temporally Unavailable

f51a27b0a406fdfb3fcda8033c7f914d 6311ae17c1ee52b36e68aaf4ad066387 f213b9fa8759d57bee5d547445806fe7 2e39a5e5b1423cc126cf735bac076008

Email subscription for changes to this article
Save as PDF