When Zenoss is having an issue, it will write stack traces into its log files. These log files are important for deciphering exactly what went wrong with the application. This section demonstrates how to generate a stack trace. This will generate a stack trace where you can see errors in the log.
-
While logged in as the zenoss user, stop all zenoss processes.
-
Shut Down MySQL.
$ sudo service mysqld stop
-
Start the Zope Object Database.
$ zeoctl start
-
Run zenperfsnmp in the foreground in debug mode.
$ zenperfsnmp run
-
Notice there are stack traces saying that the daemon can’t connect to zenoss.
-
Start Zope.
$ zopectl start
-
Go to dashboard and see the error message “Lost connection to Zenoss”. This error on the dashboard can appear for many reasons related to the loss of connectivity or some back end failure of the system.
-
Look for a more useful error in the zope log file $ZENHOME/log/event.log.
-
Restart mysqld.
$ sudo service mysqld start
-
Restart Zenoss.
$ zenoss start
-
Look at the end of all zenoss log files for any errors.
$ tail $ZENHOME/log/*.log | less