rivka pints (c) created HHQ-5758:
-
Summary: Migration failed- Import DB is thrown exception, the migration cannot continue.
Key: HHQ-5758
URL: https://jira.hyperic.com/browse/HHQ-5758
Project: Hyperic HQ
Issue Type: Bug
Components: Installation / Upgrade
Affects Versions: 5.7
Environment: daily/HQEE-HQ51EEDAILY-JOB1/49/
Reporter: rivka pints (c)
Assignee: Mayan Weiss
Priority: Blocker
Migration failed- Import DB is thrown exception and the migration cannot continue.
Steps:
Do export DB of 4.6.6 hyperic server.by migration script
Install new hyperic server 5.7 with external db and start it.
Do import DB by migration script.
Excepted result:
The old DB imported in to the new-postgres db.
Actual result:
Import is failed and throw en error and the migration broken.
example command:
./hq-migrate.sh hq-import -Dhqserver.install.path=/opt/hyperic/server-5.1.0-EE/ -Dexport.archive.path=/opt/hyperic/hq-migration-export-4.6.6.tgz -Dtarget.database.username=hqadmin -Dtarget.database.password=hqadmin
exception:
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue.>>>>> Inserting into EAM_ENCRYPTION_KEYS insert into eam_encryption_keys (encryption_key) select ? where not exists ( select * from eam_encryption_keys where encryption_key = ? and creation_date = (select max(creation_date) from eam_encryption_keys))
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. Upgrading 3.215 -> 3.216
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. Upgraded 3.216 -> 3.216 OK
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. dbType=11, targetDB='postgresql'
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue.>>>>> Processing statement desc=[null] SQL=[
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. CREATE TABLE if not exists EAM_UUIDTable (
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. ID int4 NOT NULL PRIMARY KEY,
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. version_col bigint DEFAULT 0 NOT NULL,
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. MAC_ADDRESS VARCHAR(64) NOT NULL UNIQUE,
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. MOREF VARCHAR(64) NOT NULL,
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. VCUUID VARCHAR(128) NOT NULL
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. )
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. ]
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. dbType=11, targetDB='postgresql'
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue.>>>>> Processing statement desc=[null] SQL=[
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. create sequence EAM_VM_ID_SEQ start 1 increment 1
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue. ]
[JIRA] (HHQ-5758) Migration failed- Import DB is thrown exception, the migration cannot continue.>>>>> SQL failed (aborting): org.postgresql.util.PSQLException: ERROR: relation "eam_vm_id_seq" already exists
-
An ERROR occurred, the installation cannot continue.
FATAL EXCEPTION at /opt/hyperic/hyperic-hqee-installer-5.1.0/installer/data/hq-migrate.xml:382: : The following error occurred while executing this line:
/opt/hyperic/hyperic-hqee-installer-5.1.0/installer/data/setup-db-common.xml:83: The following error occurred while executing this line:
/opt/hyperic/hyperic-hqee-installer-5.1.0/installer/data/db-upgrade.xml:43: DBUpgrader: Error running SchemaSpec: 3.217: Error running SchemaSpecTask: org.hyperic.tools.ant.dbupgrade.SST_DirectSQL: Error executing statement desc=[null] SQL=[
create sequence EAM_VM_ID_SEQ start 1 increment 1
] org.postgresql.util.PSQLException: ERROR: relation "eam_vm_id_seq" already exists
-
BUILD FAILED
/opt/hyperic/hyperic-hqee-installer-5.1.0/installer/data/hq-migrate.xml:382: The following error occurred while executing this line:
/opt/hyperic/hyperic-hqee-installer-5.1.0/installer/data/setup-db-common.xml:83: The following error occurred while executing this line:
/opt/hyperic/hyperic-hqee-installer-5.1.0/installer/data/db-upgrade.xml:43: DBUpgrader: Error running SchemaSpec: 3.217: Error running SchemaSpecTask: org.hyperic.tools.ant.dbupgrade.SST_DirectSQL: Error executing statement desc=[null] SQL=[
create sequence EAM_VM_ID_SEQ start 1 increment 1
] org.postgresql.util.PSQLException: ERROR: relation "eam_vm_id_seq" already exists
Total time: 1 minute 5 seconds
BUILD FAILED
/opt/hyperic/hyperic-hqee-installer-5.1.0/installer/data/hq-migrate.xml:382: The following error occurred while executing this line:
/opt/hyperic/hyperic-hqee-installer-5.1.0/installer/data/setup-db-common.xml:83: The following error occurred while executing this line:
/opt/hyperic/hyperic-hqee-installer-5.1.0/installer/data/db-upgrade.xml:43: DBUpgrader: Error running SchemaSpec: 3.217: Error running SchemaSpecTask: org.hyperic.tools.ant.dbupgrade.SST_DirectSQL: Error executing statement desc=[null] SQL=[
create sequence EAM_VM_ID_SEQ start 1 increment 1
] org.postgresql.util.PSQLException: ERROR: relation "eam_vm_id_seq" already exists
Total time: 1 minute 4 seconds
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.hyperic.com/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira