mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-12-22 21:22:19 +01:00
Update notes for 2019-10-11
This commit is contained in:
parent
e24fe3f1e3
commit
5e5a188796
@ -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: -->
|
||||
|
@ -27,7 +27,7 @@
|
||||
"@type": "BlogPosting",
|
||||
"headline": "October, 2019",
|
||||
"url": "https:\/\/alanorth.github.io\/cgspace-notes\/2019-10\/",
|
||||
"wordCount": "650",
|
||||
"wordCount": "723",
|
||||
"datePublished": "2019-10-01T13:20:51+03:00",
|
||||
"dateModified": "2019-10-10T17:07:06+03:00",
|
||||
"author": {
|
||||
@ -216,6 +216,25 @@
|
||||
</ul></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2019-10-11">2019-10-11</h2>
|
||||
|
||||
<ul>
|
||||
<li><p>I ran the DSpace cleanup function on CGSpace and it found some errors:</p>
|
||||
|
||||
<pre><code>$ 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".
|
||||
</code></pre></li>
|
||||
|
||||
<li><p>The solution, as always, is (repeat as many times as needed):</p>
|
||||
|
||||
<pre><code># su - postgres
|
||||
$ psql dspace -c 'update bundle set primary_bitstream_id=NULL where primary_bitstream_id in (171221);'
|
||||
UPDATE 1
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user