Skip to content

Migration not working with cockroachdb #3561

@mingfang

Description

@mingfang

The migrate command below fails

cloudquery migrate src-aws.yaml dest-cockroachdb.yaml 
Loading spec(s) from legionx/src-aws.yaml, dest-cockroachdb.yaml
Starting migration for: aws -> [postgresql]
Error: failed to migrate source aws: failed to migrate source aws on destination postgresql : failed to call Migrate: rpc error: code = Unknown desc = failed to commit transaction to recreate primary keys: ERROR: transaction committed but schema change aborted with error: (23505): failed to ingest index entries during backfill: duplicate key value violates unique constraint "aws_elasticache_engine_versions_cqpk" (SQLSTATE XXA00)

I'm using the latest version of everything, postgresql dest v1.6.0, aws source v4.1.0

cloudquery --version
cloudquery version 1.5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions