CASA service fails to load after reinstall of ZCM server

  • 7000873
  • 08-Jul-2008
  • 01-Jun-2012

Environment

Novell ZENworks 10 Configuration Management Authentication

Situation

After uninstalling ZENworks from a server without removing the CASA components and then reinstalling ZENworks to the same server, the CASA service fails to load.
 
/etc/init.d/casa-atsd status shows casa is running, but netstat -na |grep 2645 shows no hits, meaning CASA service is not listening.
 
Managed agent workstations cannot login.

Resolution

If the error in catalina.out matches the one listed in Additional Information in this TID:
 
  1. Backup the following file to a new name (not xml extension) or new location to preserve:
    /srv/www/casaats/conf/server.xml
  2.  Look at (read only) the file /opt/novell/zenworks/share/tomcat/conf/server.xml for the value of keystorePass.  For example:
    keystorePass="c213613d8dea39a7a12269fd0d8dc167"
  3.  Compare this value to the value of keystorePass in the /srv/www/casaats/conf/server.xml file.
  4.  If both files have set keystoreFile to the same keystore location on the file system, but the keystorePass values are different, this is because the reinstall of ZENworks server updated the password at /opt/novell/zenworks/share/tomcat/conf/server.xml but did not update the password in /srv/www/casaats/conf/server.xml because CASA was not reinstalled .
  5.  Try copying just the keystorePass value from the good (updated) server.xml /opt/novell/zenworks/share/tomcat/conf/server.xml into the /srv/www/casaats/conf/server.xml after having made a backup.  Restart the casa daemon to check that it is now listening on the port with no errors in catalina.out.

Additional Information

From catalina.out :
 
SEVERE: Error starting endpoint
java.io.IOException: Keystore was tampered with, or password was incorrect
 at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:768)
 at java.security.KeyStore.load(KeyStore.java:1150)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:287)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:227)
 at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:142)
 at org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:110)
 at org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:89)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:293)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:313)
 at org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol.java:151)
 at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:76)
 at org.apache.catalina.connector.Connector.start(Connector.java:1090)
 at org.apache.catalina.core.StandardService.start(StandardService.java:457)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
 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:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Jul 7, 2008 3:29:44 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.io.IOException: Keystore was tampered with, or password was incorrect
 at org.apache.catalina.connector.Connector.start(Connector.java:1097)
 at org.apache.catalina.core.StandardService.start(StandardService.java:457)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
 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:585)
 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)