diff --git a/content/posts/2019-10.md b/content/posts/2019-10.md index e4d729a79..81dcd4719 100644 --- a/content/posts/2019-10.md +++ b/content/posts/2019-10.md @@ -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 +``` + diff --git a/docs/2019-10/index.html b/docs/2019-10/index.html index 2b67a1de4..8ed6a8b7a 100644 --- a/docs/2019-10/index.html +++ b/docs/2019-10/index.html @@ -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 @@ +

2019-10-11

+ + +