mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2019-10-11
This commit is contained in:
@ -80,4 +80,23 @@ $ dspace user -a -m blah@mail.it -g Francesco -s Vernocchi -p 'fffff'
|
||||
$ dspace user -a -m wow@me.com -g Felix -s Shaw -p 'fuananaaa'
|
||||
```
|
||||
|
||||
## 2019-10-11
|
||||
|
||||
- I ran the DSpace cleanup function on CGSpace and it found some errors:
|
||||
|
||||
```
|
||||
$ dspace cleanup -v
|
||||
...
|
||||
Error: ERROR: update or delete on table "bitstream" violates foreign key constraint "bundle_primary_bitstream_id_fkey" on table "bundle"
|
||||
Detail: Key (bitstream_id)=(171221) is still referenced from table "bundle".
|
||||
```
|
||||
|
||||
- The solution, as always, is (repeat as many times as needed):
|
||||
|
||||
```
|
||||
# su - postgres
|
||||
$ psql dspace -c 'update bundle set primary_bitstream_id=NULL where primary_bitstream_id in (171221);'
|
||||
UPDATE 1
|
||||
```
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user