Home > Uncategorized > How to quickly find error messages within icinga-web

How to quickly find error messages within icinga-web

I frequently recieved “The server encountered an error: Internal Exception, check your logs!” while rolling out icinga-web and the various cronks.

I located the testing wiki page which details a lot of information about checking logs, etc.

Some valuable logs are:
/var/log/httpd/*
/usr/local/icinga-web/log/icinga-web-
/usr/local/icinga-web/log/debug-

Sometimes, simply checking the httpd logs revealed errors. However, I just loaded the EventDB cronk, and saw no errors logged in any log files.

So I began to dive deeper into the testing wiki page and came across the problem.

1) Receive annoying non descript pop up with “The server encountered an error: Internal Exception, check your logs!”

2) Look at the java script console (ctrl-shift-j in chrome).

I see an error logged “POST https://SERVER/icinga-web/modules/eventdb/events 500 (Internal Server Error)”

3) Clicking on the URL will bring upo the Network tab. While on the Network tab, click on the Name/Path (file) that is causing the error.

This should reveal the exception that is the response sent by the server, in my case:

“A critical exception occured!
Uncaught Doctrine_Connection_Exception thrown:
PDO Connection Error: SQLSTATE[42000] [1044] Access denied for user ‘eventdb’@’localhost’ to database ‘eventdb'”

So, I went into the agavi config file used by the eventdb cronk (/usr/local/icinga-web/app/modules/EventDB/config/databases.xml) and verified the credentials.
It turned out to be a problem with my GRANT statement where the case of the database was incorrect.

Advertisements
  1. Marwan Tanager
    September 27, 2014 at 12:58 pm

    Your are a life saver. Thank you very much!

    • September 27, 2014 at 1:11 pm

      Happy to be of assistance!

  2. Jan
    September 11, 2015 at 7:39 am

    Thanks a million! Helped a lot!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: