I restored an entire site from an AIP backup, and now, when I attempt to submit an item, I get this error:
Caused by: java.sql.BatchUpdateException: Batch entry 0 update public.handle set resource_id='26a7cedb-76e7-4acc-a515-37708a3e1c7b'::uuid, handle='123456789/9', resource_type_id=2 where handle_id=264 was aborted: ERROR: duplicate key value violates unique constraint "handle_handle_key"
Detail: Key (handle)=(123456789/9) already exists. Call getNextException to see other errors in the batch.
I think this is because I haven't run the update-sequences.sql that the documentation suggests I should, but I can't find that script; there isn't even a /dspace/etc/ directory:
ls /dspace/
assetstore exports log solr upload
bin handle-server reports temp var
config lib sitemaps triplestore webapps
This is the documentation I've been using:
DSpace version: 7.3-SNAPSHOT
SCM revision: e5f316c9adf78e59d8277a271a0fc2a2d21da0f8
SCM branch: main
OS: Linux(amd64) version 5.4.0-120-generic
Applications:
Discovery: enabled.
JRE: Private Build version 11.0.15
Ant version: Apache Ant(TM) version 1.10.7 compiled on October 24 2019
Maven version: 3.6.3
DSpace home: /dspace
Sean