duplicate key value violates unique constraint "REPLICAS_PK"
After deleting a rule, i've run into the dreaded:
phys44131 [gwrucio] gwrucio $ rucio add-rule O2:H-H1_HOFT_C02 1 LIGO-WA
2019-09-24 16:17:16,078 ERROR The creation of the replication rule failed at this time. Please try again later.
Details: (psycopg2.errors.UniqueViolation) duplicate key value violates unique constraint "REPLICAS_PK"
DETAIL: Key (scope, name, rse_id)=(O2, H-H1_HOFT_C02-1164554240-4096.gwf, 592f70ef-8237-4b93-abfb-32a8c7c60512) already exists.
Might this be a solution? https://stackoverflow.com/questions/4448340/postgresql-duplicate-key-violates-unique-constraint