mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2017-12-07
This commit is contained in:
@ -164,3 +164,18 @@ $ grep 124.17.34.60 /home/cgspace.cgiar.org/log/dspace.log.2017-12-07 | grep -o
|
||||
```
|
||||
|
||||
- I've adjusted the nginx IP mapping that I set up last month to account for 124.17.34.60 and 124.17.34.59 using a regex, as it's the same bot on the same subnet
|
||||
- I was running the DSpace cleanup task manually and it hit an error:
|
||||
|
||||
```
|
||||
$ /home/cgspace.cgiar.org/bin/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)=(144666) is still referenced from table "bundle".
|
||||
```
|
||||
|
||||
- The solution is like I discovered in [2017-04](/cgspace-notes/2017-04), to set the `primary_bitstream_id` to null:
|
||||
|
||||
```
|
||||
dspace=# update bundle set primary_bitstream_id=NULL where primary_bitstream_id in (144666);
|
||||
UPDATE 1
|
||||
```
|
||||
|
Reference in New Issue
Block a user