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.

eZ debug

Timing: Jan 18 2025 20:58:33
Script start
Timing: Jan 18 2025 20:58:33
Module start 'content'
Timing: Jan 18 2025 20:58:34
Module end 'content'
Timing: Jan 18 2025 20:58:34
Script end

Main resources:

Total runtime1.3374 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.7109180.8438
Module start 'content' 0.00591.1757 768.5547533.7188
Module end 'content' 1.18150.1558 1,302.2734338.1016
Script end 1.3373  1,640.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.2983210.0002
Check MTime0.00140.1010210.0001
Mysql Total
Database connection0.00080.057110.0008
Mysqli_queries1.250593.49802030.0062
Looping result0.00270.20102010.0000
Template Total1.304797.620.6523
Template load0.00200.150320.0010
Template processing1.302797.399220.6513
Template load and register function0.00070.052310.0007
states
state_id_array0.00140.103510.0014
state_identifier_array0.00180.133120.0009
Override
Cache load0.00180.1319410.0000
Sytem overhead
Fetch class attribute can translate value0.00160.118330.0005
Fetch class attribute name0.00130.095360.0002
XML
Image XML parsing0.00190.142530.0006
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.01300.9683210.0006
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs