Sorry for the repeat-post, please see http://forums.alfresco.com/en/viewtopic.php?f=8&t=35327#p102607The search functionality of the forums didn't show me the related message.I just tried to upgrade my community edition from 3.3.0 to 3.4a and had the following error: org.postgresql.util.PSQLException: ERROR: relation "avm_stores_seq" already existsCan anyone tell me how to work around this? I looked at the database, and indeed that table already exists, and is in use. In fact, the SQL that is trying to update the avm_sequences has multiple problems. All the sequences it is trying to create already exist. Any idea?/local/alfresco-3.4a/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-7149948438016598234.sql:
CREATE SEQUENCE avm_stores_seq START WITH ${hibernate_seq_next_value} INCREMENT BY 1;
CREATE SEQUENCE avm_store_properties_seq START WITH ${hibernate_seq_next_value} INCREMENT BY 1;
CREATE SEQUENCE avm_nodes_seq START WITH ${hibernate_seq_next_value} INCREMENT BY 1;
CREATE SEQUENCE avm_version_roots_seq START WITH ${hibernate_seq_next_value} INCREMENT BY 1;
From alfresco.log
18:43:00,581 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
18:43:14,157 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /local/alfresco-3.4a/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-4810176798913650692
.sql (Copied from classpath:alfresco/dbscripts/upgrade/3.3/org.hibernate.dialect.PostgreSQLDialect/modify-index-permission_id.sql).
18:43:16,472 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /local/alfresco-3.4a/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-1604796588253281744
.sql (Copied from classpath:alfresco/dbscripts/upgrade/2.2/org.hibernate.dialect.PostgreSQLDialect/AddFKIndexes.sql).
18:43:25,064 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /local/alfresco-3.4a/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-9068363595966233054
.sql (Copied from classpath:alfresco/dbscripts/upgrade/3.3/org.hibernate.dialect.PostgreSQLDialect/fix-Repo-seqs.sql).
18:43:25,951 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /local/alfresco-3.4a/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-7149948438016598234
.sql (Copied from classpath:alfresco/dbscripts/upgrade/3.3/org.hibernate.dialect.PostgreSQLDialect/fix-AVM-seqs.sql).
18:43:25,953 ERROR [org.alfresco.repo.domain.schema.SchemaBootstrap] Statement execution failed:
SQL: CREATE SEQUENCE avm_stores_seq START WITH 83627 INCREMENT BY 1
Error: ERROR: relation "avm_stores_seq" already exists
File: /local/alfresco-3.4a/tomcat/temp/Alfresco/AlfrescoSchema-PostgreSQLDialect-Update-7149948438016598234.sql
Line: 15
18:43:25,955 ERROR [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema auto-update failed
org.postgresql.util.PSQLException: ERROR: relation "avm_stores_seq" already exists
…
Thanks for any help.