diff --git a/content/post/2017-04.md b/content/post/2017-04.md index 377d8992f..59b563c66 100644 --- a/content/post/2017-04.md +++ b/content/post/2017-04.md @@ -323,3 +323,13 @@ $ wc -l /tmp/ciat $ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m" $ time schedtool -D -e ionice -c2 -n7 nice -n19 [dspace]/bin/dspace filter-media -f -v -i 10568/71249 -p "ImageMagick PDF Thumbnail" -v >& /tmp/filter-media-cmyk.txt ``` + +## 2017-04-22 + +- Someone on the dspace-tech mailing list responded with a suggestion about the foreign key violation in the `cleanup` task +- The solution is to remove the ID (ie set to NULL) from the `primary_bitstream_id` column in the `bundle` table +- After doing that and running the `cleanup` task again I find more bitstreams that are affected and end up with a long list of IDs that need to be fixed: + +``` +dspace=# update bundle set primary_bitstream_id=NULL where primary_bitstream_id in (435, 1136, 1132, 1220, 1236, 3002, 3255, 5322); +``` diff --git a/public/2017-04/index.html b/public/2017-04/index.html index 1a3fe812c..06f792c34 100644 --- a/public/2017-04/index.html +++ b/public/2017-04/index.html @@ -30,7 +30,7 @@ $ [dspace]/bin/dspace filter-media -f -i 10568/16498 -p "ImageMagick PDF Th - + @@ -79,9 +79,9 @@ $ [dspace]/bin/dspace filter-media -f -i 10568/16498 -p "ImageMagick PDF Th "@type": "BlogPosting", "headline": "April, 2017", "url": "https://alanorth.github.io/cgspace-notes/2017-04/", - "wordCount": "2182", + "wordCount": "2267", "datePublished": "2017-04-02T17:08:52+02:00", - "dateModified": "2017-04-20T18:11:11+03:00", + "dateModified": "2017-04-20T18:40:42+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -532,6 +532,17 @@ $ wc -l /tmp/ciat $ time schedtool -D -e ionice -c2 -n7 nice -n19 [dspace]/bin/dspace filter-media -f -v -i 10568/71249 -p "ImageMagick PDF Thumbnail" -v >& /tmp/filter-media-cmyk.txt +

2017-04-22

+ + + +
dspace=# update bundle set primary_bitstream_id=NULL where primary_bitstream_id in (435, 1136, 1132, 1220, 1236, 3002, 3255, 5322);
+
+ diff --git a/public/sitemap.xml b/public/sitemap.xml index b89b4603a..a9b030a6a 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -3,7 +3,7 @@ https://alanorth.github.io/cgspace-notes/2017-04/ - 2017-04-20T18:11:11+03:00 + 2017-04-20T18:40:42+03:00 @@ -93,7 +93,7 @@ https://alanorth.github.io/cgspace-notes/ - 2017-04-20T18:11:11+03:00 + 2017-04-20T18:40:42+03:00 0 @@ -104,19 +104,19 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2017-04-20T18:11:11+03:00 + 2017-04-20T18:40:42+03:00 0 https://alanorth.github.io/cgspace-notes/post/ - 2017-04-20T18:11:11+03:00 + 2017-04-20T18:40:42+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2017-04-20T18:11:11+03:00 + 2017-04-20T18:40:42+03:00 0