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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 00:55:04
Script start
Timing: Jan 19 2025 00:55:04
Module start 'layout'
Timing: Jan 19 2025 00:55:04
Module start 'content'
Timing: Jan 19 2025 00:55:05
Module end 'content'
Timing: Jan 19 2025 00:55:05
Script end

Main resources:

Total runtime0.9093 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.2891152.6406
Module start 'layout' 0.00690.0036 741.929739.4766
Module start 'content' 0.01040.8969 781.4063456.7813
Module end 'content' 0.90730.0019 1,238.187512.1250
Script end 0.9092  1,250.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3958160.0002
Check MTime0.00140.1558160.0001
Mysql Total
Database connection0.00090.100110.0009
Mysqli_queries0.856694.2074520.0165
Looping result0.00050.0529500.0000
Template Total0.847293.220.4236
Template load0.00230.247820.0011
Template processing0.844992.920120.4224
Template load and register function0.00010.015610.0001
states
state_id_array0.00310.345910.0031
state_identifier_array0.00170.187620.0009
Override
Cache load0.00180.1952100.0002
Sytem overhead
Fetch class attribute can translate value0.00050.057110.0005
Fetch class attribute name0.00140.150020.0007
XML
Image XML parsing0.00010.009310.0001
class_abstraction
Instantiating content class attribute0.00000.001020.0000
General
dbfile0.01211.3325100.0012
String conversion0.00000.001240.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs