diff --git a/content/posts/2020-04.md b/content/posts/2020-04.md index 0e00399e3..6de857b40 100644 --- a/content/posts/2020-04.md +++ b/content/posts/2020-04.md @@ -240,4 +240,33 @@ dc.contributor.author,cg.creator.id - I set it explicitly for Maven and Ant just now (and cleared all XMLUI caches) but the issue is still there - I asked them if they are building on macOS or Linux, and which Node.js version (I'm using 10.20.1, which is the current LTS branch). +## 2020-04-25 + +- I researched a bit more about the  issue with glypicons and realized it's due to [a bug in libsass](https://github.com/twbs/bootstrap-sass/issues/919) + - I have Ruby sass version 3.4.25 installed in my local environment, but DSpace Mirage 2 is supposed to build with 3.3.14 + - Downgrading the version fixes it, though I wonder: why did I not have this issue on the `6.x-dev` branch before Atmire's pull request, and also on `5_x-prod` where I've been building for a few months here... +- I deployed the latest `5_x-prod` branch on CGSpace (linode18), ran all updates, and rebooted the server + - This includes the "COVID19" ILRI subject, the new CCAFS Phase II project tags, and the changes to an ILRI author name + - After restarting the server I had to restart Tomcat three times before all Solr statistics cores loaded properly. + - After that I started a full Discovery reindexing to pick up some author changes I made last week: + +``` +$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m" +$ time chrt -i 0 ionice -c2 -n7 nice -n19 dspace index-discovery -b +``` + +- I ran the `dspace cleanup -v` process on CGSpace and got an error: + +``` +Error: ERROR: update or delete on table "bitstream" violates foreign key constraint "bundle_primary_bitstream_id_fkey" on table "bundle" + Detail: Key (bitstream_id)=(184980) is still referenced from table "bundle". +``` + +- The solution is, as always: + +``` +$ psql -d dspace -U dspace -c 'update bundle set primary_bitstream_id=NULL where primary_bitstream_id in (183996);' +UPDATE 1 +``` + diff --git a/docs/2020-04/index.html b/docs/2020-04/index.html index 3ec5653ac..2fe2971d6 100644 --- a/docs/2020-04/index.html +++ b/docs/2020-04/index.html @@ -25,7 +25,7 @@ On the same note, the one item Abenet pointed out last week now has a donut with - + @@ -55,9 +55,9 @@ On the same note, the one item Abenet pointed out last week now has a donut with "@type": "BlogPosting", "headline": "April, 2020", "url": "https://alanorth.github.io/cgspace-notes/2020-04/", - "wordCount": "1742", + "wordCount": "1970", "datePublished": "2020-04-02T10:53:24+03:00", - "dateModified": "2020-04-20T12:41:21+03:00", + "dateModified": "2020-04-24T21:36:23+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -368,7 +368,35 @@ Total number of bot hits purged: 8909 - +

2020-04-25

+ +
$ export JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx1024m"
+$ time chrt -i 0 ionice -c2 -n7 nice -n19 dspace index-discovery -b
+
+
Error: ERROR: update or delete on table "bitstream" violates foreign key constraint "bundle_primary_bitstream_id_fkey" on table "bundle"
+  Detail: Key (bitstream_id)=(184980) is still referenced from table "bundle".
+
+
$ psql -d dspace -U dspace -c 'update bundle set primary_bitstream_id=NULL where primary_bitstream_id in (183996);'
+UPDATE 1
+
diff --git a/docs/sitemap.xml b/docs/sitemap.xml index a2d472a0a..3fd1bdded 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,27 +4,27 @@ https://alanorth.github.io/cgspace-notes/2020-04/ - 2020-04-20T12:41:21+03:00 + 2020-04-24T21:36:23+03:00 https://alanorth.github.io/cgspace-notes/categories/ - 2020-04-20T12:41:21+03:00 + 2020-04-24T21:36:23+03:00 https://alanorth.github.io/cgspace-notes/ - 2020-04-20T12:41:21+03:00 + 2020-04-24T21:36:23+03:00 https://alanorth.github.io/cgspace-notes/categories/notes/ - 2020-04-20T12:41:21+03:00 + 2020-04-24T21:36:23+03:00 https://alanorth.github.io/cgspace-notes/posts/ - 2020-04-20T12:41:21+03:00 + 2020-04-24T21:36:23+03:00