Update notes for 2019-10-11

This commit is contained in:
2019-10-11 12:06:40 +03:00
parent e24fe3f1e3
commit 5e5a188796
2 changed files with 39 additions and 1 deletions

View File

@ -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: -->