Environment
Novell ZENworks Configuration Management Linux Server
Situation
ZENworks server will not reboot and hangs with the following message:
Stopping casa_atsd...
When stopping or restarting the services with novell-zenworks-configure -c Start, the process hangs after the loader service stops with the following in the console:
INFO: Novell ZENworks Service Monitor Stopped
INFO: Novell ZENworks Management Agent Stopped
INFO: Novell ZENworks Server Stopped
INFO: Novell ZENworks Loader Stopped
^CSEVERE: There was an error stopping CASA Authentication Token Service.
Stopping casa_atsd...
One of the following messages can be found in /srv/www/casaats/logs/stop.log:
PID file (/var/lib/CASA/authtoken/svc/casaatsd.pid) found but no matching process was found. Stop aborted.
$CATALINA_PID was set (/var/lib/CASA/authtoken/svc/casaatsd.pid) but the specified file does not exist. Is Tomcat running? Stop aborted.
The following may be seen in /srv/www/casaats/logs/catalina.out:
ERROR:
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
Stopping casa_atsd...
Also, found that this issue could prevent a system update from occurring and the following error is recorded to the system-update.log:
DEBUG;;;Unable to stop daemon /etc/init.d/casa_atsd. -1
ERROR;ERROR_STOPPING_SERVICE;/etc/init.d/casa_atsd,-1;null
When stopping or restarting the services with novell-zenworks-configure -c Start, the process hangs after the loader service stops with the following in the console:
INFO: Novell ZENworks Service Monitor Stopped
INFO: Novell ZENworks Management Agent Stopped
INFO: Novell ZENworks Server Stopped
INFO: Novell ZENworks Loader Stopped
^CSEVERE: There was an error stopping CASA Authentication Token Service.
Stopping casa_atsd...
One of the following messages can be found in /srv/www/casaats/logs/stop.log:
PID file (/var/lib/CASA/authtoken/svc/casaatsd.pid) found but no matching process was found. Stop aborted.
$CATALINA_PID was set (/var/lib/CASA/authtoken/svc/casaatsd.pid) but the specified file does not exist. Is Tomcat running? Stop aborted.
The following may be seen in /srv/www/casaats/logs/catalina.out:
ERROR:
java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
Resolution
- If the above ClassNotFoundException is seen, verify that the common.loader line is proper in /srv/www/cataats/conf/catalina.properties and /opt/novell/zenworks/share/tomcat/conf/catalina.properties
NOTE: To verify, compare the files to those from a working Primary Server of the same version, or contact ZENworks Technical Support for help. - Verify that the casa_atsd service is running with the following command:
ps aux | grep casaatsd | grep -v grep - If the service is still running, kill it with this command:
ps aux | grep casaatsd | grep -v grep | awk '{print $2}' | xargs kill -9 - Verify that the casa_atsd service will now stop with this command:
/etc/init.d/casa_atsd stop
Additional Information
The following is a command helpful for comparing CASA install files
between Primary Servers. The rpm -V command by itself isn't sufficient
since ZENworks changes the package files after they are installed by rpm.
NOTE: The envvars, server-sun.xml, and CasaAuthTokenSvc.war files are expected to be different between Primary Servers.
rpm -V CASA_auth_token_svc | cut -d" " -f4,5 | sed 's/ //g' | xargs -I replace md5sum replace 2> /dev/null
NOTE: The envvars, server-sun.xml, and CasaAuthTokenSvc.war files are expected to be different between Primary Servers.
rpm -V CASA_auth_token_svc | cut -d" " -f4,5 | sed 's/ //g' | xargs -I replace md5sum replace 2> /dev/null