PostgreSQL error

Author Message

Ken Nguyen

Tuesday 23 November 2010 3:30:06 am

Hi,

When I try to edit or create something in my site, I have this bug :

Fatal error: A database transaction in eZ Publish failed.
The current execution was stopped to prevent further problems.

And my error.log:

[ Nov 23 2010 11:55:12 ] [192.168.1.156] eZPostgreSQLDB:
Error: error executing query: INSERT INTO ezcontentobject_attribute (contentobject_id, version, language_code, language_id, contentclassattribute_id, attribute_original_id, sort_key_int, sort_key_string, data_type_string, data_text, data_int, data_float) VALUES(15, 1, 'fre-FR', 2, 378, 0, 0, '', 'ezstring', '', NULL, 0.000000) ERREUR: la valeur d'une clé dupliquée rompt la contrainte unique « ezcontentobject_attribute_pkey »
[ Nov 23 2010 11:55:12 ] [192.168.1.156] eZDBInterface::commit TRANSID-380312e0f06d9a3d0513e1207c6814d5:
Transaction in progress failed due to DB error, transaction was rollbacked. Transaction ID is TRANSID-380312e0f06d9a3d0513e1207c6814d5.

I had a MySQL database which runs correctly but when I migrate to PostgreSQL I have problems with transaction.

If you can help me please.

Thanks.

Gaetano Giunta

Tuesday 23 November 2010 4:53:46 am

use the seytup / upgrade check / db consistency page. looks like your autoincrement sequences are not ok

Principal Consultant International Business
Member of the Community Project Board

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 18 2025 05:09:23
Script start
Timing: Jan 18 2025 05:09:23
Module start 'layout'
Timing: Jan 18 2025 05:09:23
Module start 'content'
Timing: Jan 18 2025 05:09:23
Module end 'content'
Timing: Jan 18 2025 05:09:23
Script end

Main resources:

Total runtime0.6393 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 588.9141152.6094
Module start 'layout' 0.00650.0030 741.523439.4219
Module start 'content' 0.00950.6286 780.9453524.6250
Module end 'content' 0.63800.0012 1,305.57038.1875
Script end 0.6392  1,313.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5515160.0002
Check MTime0.00150.2286160.0001
Mysql Total
Database connection0.00100.152210.0010
Mysqli_queries0.596493.2939540.0110
Looping result0.00050.0787520.0000
Template Total0.605494.720.3027
Template load0.00190.291620.0009
Template processing0.603594.412520.3018
Template load and register function0.00010.017210.0001
states
state_id_array0.00130.196610.0013
state_identifier_array0.00090.136820.0004
Override
Cache load0.00150.2423190.0001
Sytem overhead
Fetch class attribute can translate value0.00040.069320.0002
Fetch class attribute name0.00090.137530.0003
XML
Image XML parsing0.00060.091320.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00120.1839160.0001
String conversion0.00000.001140.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
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs