Fatal error: A database transaction in eZ Publish failed.

Author Message

Alexander Trotter

Thursday 18 March 2010 12:50:19 am

Hello everybody,
i get the following error, when trying to publish various nodes in my ezpublish installtion:
Fatal error: A database transaction in eZ Publish failed.
The current execution was stopped to prevent further problems.
You should contact the System Administrator of this site with the information on this page.
The current transaction ID is TRANSID-411ebb7e2cc1daadec5f961a8afff413 and has been logged.
Please include the transaction ID and the current URL when contacting the system administrator.
The error message in the error log is:
eZDBInterface::commit TRANSID-45d2af34c8f58513b380b91bd3f1cf17:
Transaction in progress failed due to DB error, transaction was rollbacked. Transaction ID is TRANSID-45d2af34c8f58513b380b91bd3f1cf17.
I'm using ezpublish version 4.0.1 and MySQL 5.
Has anybody come across this error and fixed it successfully?

Steven E. Bailey

Thursday 18 March 2010 2:48:10 am

That's pretty much what you see in your browser when a database transaction fails. What you want to do is look in the eZPublish error log files for that that transaction id and you'll usually get a useful error message from your database server - such as column not found, etc.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Alexander Trotter

Thursday 18 March 2010 3:06:28 am

Hi,

thanks for your reply.

I already looked into the error.log. It says:

The error message in the error log is:
eZDBInterface::commit TRANSID-45d2af34c8f58513b380b91bd3f1cf17:
Transaction in progress failed due to DB error, transaction was rollbacked. Transaction ID is TRANSID-45d2af34c8f58513b380b91bd3f1cf17.

I read that this problem occurs, if the database user doesn't has the right LOCK_TABLES, but I already checked this and it isn't the problem.

Alexander Trotter

Thursday 18 March 2010 3:23:26 am

Just checked with our hosting provider. There isn't an underlying MySQL error in the MySQL error log to this error.

Can anybody point me in the right direction, please?^^

Steven E. Bailey

Thursday 18 March 2010 3:32:05 am

You might want to try DatabaseSettings -> SQLOutput=enabled to see what query is failing.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

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 30 2025 22:21:25
Script start
Timing: Jan 30 2025 22:21:25
Module start 'layout'
Timing: Jan 30 2025 22:21:25
Module start 'content'
Timing: Jan 30 2025 22:21:25
Module end 'content'
Timing: Jan 30 2025 22:21:25
Script end

Main resources:

Total runtime0.0252 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.3516151.2266
Module start 'layout' 0.00490.0031 739.5781220.7188
Module start 'content' 0.00800.0154 960.29691,001.8359
Module end 'content' 0.02340.0018 1,962.132833.9922
Script end 0.0252  1,996.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002710.7047140.0002
Check MTime0.00114.3047140.0001
Mysql Total
Database connection0.00072.742310.0007
Mysqli_queries0.00176.838330.0006
Looping result0.00000.043510.0000
Template Total0.00145.410.0014
Template load0.00114.402010.0011
Template processing0.00020.958810.0002
Override
Cache load0.00083.221210.0008
General
dbfile0.003212.637480.0004
String conversion0.00000.024640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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