Forums / Developer / Help needed with database transaction errors

Help needed with database transaction errors

Author Message

Brendan Pike

Friday 26 August 2005 9:57:06 pm

I want to enable database transactions on a site but I am receiving fatal transaction errors but strangely only on the user siteacess. I have logged in with the admin user account on both the administrative and user siteaccess. But I only ever receive transaction errors on the user side. This happens about 50% of the time when performing edits. I guess that points to something wrong in my templates or ini settings but I can not for the life of me find it yet. I would appreciate some tips on how to track this problem down. I seem to get two different specific errors which are as follows:

Notice: eZMySQLDB::query(0.000 ms) query number per page:0  	Aug 27 2005 14:07:04

SET NAMES 'latin1'

Timing: 	Aug 27 2005 14:07:04

Module start 'content'

Error: eZMySQLDB 	Aug 27 2005 14:07:04

Query error: Deadlock found when trying to get lock; try restarting transaction. Query: INSERT INTO ezcontentobject_attribute (id, contentobject_id, version, language_code, contentclassattribute_id, attribute_original_id, sort_key_int, sort_key_string, data_type_string, data_text, data_int, data_float) VALUES('13025', '1359', '3', 'eng-GB', '209', '0', '0', '', 'ezstring', '', NULL, '0.000000')
	
Error: eZDBInterface::commit TRANSID-6d77cb515918c2c6a1b5ab283a940a2a 	Aug 27 2005 14:07:04

Transaction in progress failed due to DB error, transaction was rollbacked. Transaction ID is TRANSID-6d77cb515918c2c6a1b5ab283a940a2a.

and

Module start 'content'

Error: eZMySQLDB 	Aug 27 2005 12:35:09

Query error: Duplicate entry '13003-6' for key 1. Query: INSERT INTO ezcontentobject_attribute (id, contentobject_id, version, language_code, contentclassattribute_id, attribute_original_id, sort_key_int, sort_key_string, data_type_string, data_text, data_int, data_float) VALUES('13003', '1357', '6', 'eng-GB', '209', '0', '0', 'test 2', 'ezstring', 'test 2', NULL, '0.000000')

Error: eZDBInterface::commit TRANSID-0e7cda51b6b1f809a3138fba5e425e20 	Aug 27 2005 12:35:09

Transaction in progress failed due to DB error, transaction was rollbacked. Transaction ID is TRANSID-0e7cda51b6b1f809a3138fba5e425e20.

When I see a get a fatal db transaction like this if I click reload it then successfully loads 100% of the time. Can any suggest how I can find the reason?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

Brendan Pike

Tuesday 30 August 2005 6:40:37 pm

No body has any ideas at all?

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

eZ debug

Timing: Jan 31 2025 06:23:23
Script start
Timing: Jan 31 2025 06:23:23
Module start 'content'
Timing: Jan 31 2025 06:23:23
Module end 'content'
Timing: Jan 31 2025 06:23:23
Script end

Main resources:

Total runtime0.1667 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.0625180.8125
Module start 'content' 0.00530.0054 768.875093.8516
Module end 'content' 0.01080.1558 862.7266524.3750
Script end 0.1666  1,387.1016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.0557200.0002
Check MTime0.00140.8489200.0001
Mysql Total
Database connection0.00070.390710.0007
Mysqli_queries0.124274.50041410.0009
Looping result0.00110.65701390.0000
Template Total0.155593.310.1555
Template load0.00090.513610.0009
Template processing0.154692.775210.1546
Override
Cache load0.00060.364810.0006
Sytem overhead
Fetch class attribute can translate value0.00070.424710.0007
XML
Image XML parsing0.00020.144610.0002
General
dbfile0.00553.3247200.0003
String conversion0.00000.003330.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs