Forums / Developer / suppress kernel error log

suppress kernel error log

Author Message

lukas p.

Wednesday 20 October 2010 9:23:52 am

Hi Guys,

could somebody tell me who i can surpress kernel error logs?

Ive got some issues with mysql that i even cant explain. (please dont ask bout debug mysql I`ve done my best recompiling with debug mode straced the whole binary etc...)

but if there something sucks i only see the error message from ez. ( home/error/kernel (1)) with the error message.

who can i show the mysql_error() output?

thanks.

Christian Rößler

Wednesday 20 October 2010 12:55:29 pm

Hy,

all errors eZPublish encounters go into

 <ezpublish_dir>/var/log/error.log

or the other logfiles there ie. warning.log.

Take a look there what is going on.

If there are no files in the directory var/... you may have wrong directory permissions and you whole installation screwed up ;-) In that case fix directory permission so that it is writeable by the webserver-user and you will have logs.

Cheers,

Chris

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

Christian Rößler

Wednesday 20 October 2010 12:57:32 pm

On the other hand you may enable mysql's errorlogging in /etc/mysql/my.cnf and/or /etc/mysql/conf.d/my.cnf. All sql-errors will then be logged in /var/log/mysql.err or so.

If you are using windows as server i cannot help you...

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

lukas p.

Thursday 21 October 2010 5:26:14 am

hi Chris,

thanks a lot.

now i`ve enabled logging via 

[DebugSettings]

DebugOutput=enabled

so that gave me the info i needed. there is something wrong with my mysql but there is of course nothing in the error.log of mysql also no debug... damn..

... investigating.

Christian Rößler

Thursday 21 October 2010 6:36:15 am

Hmm, perhaps it's a braindead easy mysql-connection error which involves a wrong username and/or password for mysql. Have you tried checking that?

Or.. if i remember correctly, error (1) is an error which has nothing to do with mysql or something of eZPublish's backend-systems. It says, that you do not have the permissions to access this site/module/object whatsoever.

Can you please post the correct message you encounter?

Hannover, Germany
eZ-Certified http://auth.ez.no/certification/verify/395613

lukas p.

Thursday 21 October 2010 7:04:54 am

well no, ez said that it really cant connect to the server on socket ... bla bla.

im testing with ApacheBenchmark (ab) with 500 concurrency connections and after it starts a few seconds later

the site occours that error and in the debug output i see that there was no way to connect to the mysqlserver.

in the error log of mysql is nothing neither too many connections or something else.

there is also no debug output from the mysqlside.

well i have to say that the page is in an virtual container from openvz... - and yes of course i`ve checked /proc/userbeancounters ;) -

well still investigating... :( damn it.