I'm trying to migrate a PostgreSQL database to AlloyDB using GCP Database Migration Service. All the setup/test steps on Google Cloud Console works but the job failed with "initialization failed during nonrecoverable step (d), please try the setup again".
The document suggests checking the destination's log (it's for CloudSQL but I think it should be similar for AlloyDB right?) so I did it and here's what I found:
`DETAIL: destination connection reported: ERROR: duplicate key value violates unique constraint "pk_us_lex" DETAIL: Key (id)=(1) already exists. CONTEXT: COPY us_lex, line 1`
The table in the source database doesn't have any duplicated ID so I'm not sure why this happen. One clue I have is that table was created/managed by the extension `postgis`. Is this some specific error with postgis + AlloyDB? Is there any workaround for this?
Can you please create enough disk space upfront and retry migration. Thanks.
Hello, we ran into the same issue. Can you clarify what disk space you are refering to when asking to "create enough disk space upfront" ? Because it seems we can't choose disk space for Alloy databases (the storage seems to be fully autoscaling).
Thanks in advance
Durand Maël