diff --git a/content/posts/2020-07.md b/content/posts/2020-07.md index fc9b4ac7b..fb21e6511 100644 --- a/content/posts/2020-07.md +++ b/content/posts/2020-07.md @@ -457,5 +457,22 @@ $ tidy -xml -utf8 -m -iq -w 0 dspace/config/controlled-vocabularies/dc-descripti ## 2020-07-13 - I recommended to Marie–Angelique that we use ROR for CG Core V2 ([#27](https://github.com/AgriculturalSemantics/cg-core/issues/27)) +- Purge 2,700 hits from CodeObia IP addresses in CGSpace statistics... I wonder when they will figure out how to use a bot user agent + +## 2020-07-14 + +- 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)=(189618) 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 (189618, 188837);' +UPDATE 1 +``` diff --git a/docs/2020-07/index.html b/docs/2020-07/index.html index 076eb8545..18aab2b10 100644 --- a/docs/2020-07/index.html +++ b/docs/2020-07/index.html @@ -20,7 +20,7 @@ Since I was restarting Tomcat anyways I decided to redeploy the latest changes f - + @@ -45,9 +45,9 @@ Since I was restarting Tomcat anyways I decided to redeploy the latest changes f "@type": "BlogPosting", "headline": "July, 2020", "url": "https://alanorth.github.io/cgspace-notes/2020-07/", - "wordCount": "2905", + "wordCount": "2991", "datePublished": "2020-07-01T10:53:54+03:00", - "dateModified": "2020-07-12T15:52:26+03:00", + "dateModified": "2020-07-13T12:31:34+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -581,8 +581,20 @@ $ tidy -xml -utf8 -m -iq -w 0 dspace/config/controlled-vocabularies/dc-descripti

2020-07-13

- +

2020-07-14

+ +
Error: ERROR: update or delete on table "bitstream" violates foreign key constraint "bundle_primary_bitstream_id_fkey" on table "bundle"
+  Detail: Key (bitstream_id)=(189618) is still referenced from table "bundle".
+
+
$ psql -d dspace -U dspace -c 'update bundle set primary_bitstream_id=NULL where primary_bitstream_id in (189618, 188837);'
+UPDATE 1
+
diff --git a/docs/categories/index.html b/docs/categories/index.html index e8eb75522..9cb03b2ec 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/index.html b/docs/categories/notes/index.html index 928631578..2d9e681bb 100644 --- a/docs/categories/notes/index.html +++ b/docs/categories/notes/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/page/2/index.html b/docs/categories/notes/page/2/index.html index d72a1b669..1557cbaa4 100644 --- a/docs/categories/notes/page/2/index.html +++ b/docs/categories/notes/page/2/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/page/3/index.html b/docs/categories/notes/page/3/index.html index 28072244c..977a06c46 100644 --- a/docs/categories/notes/page/3/index.html +++ b/docs/categories/notes/page/3/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/categories/notes/page/4/index.html b/docs/categories/notes/page/4/index.html index b55ea9a98..5a472d1c3 100644 --- a/docs/categories/notes/page/4/index.html +++ b/docs/categories/notes/page/4/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/index.html b/docs/index.html index f8bccd52f..fd3b205e7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/2/index.html b/docs/page/2/index.html index 5ec383b71..b0fbf151e 100644 --- a/docs/page/2/index.html +++ b/docs/page/2/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/3/index.html b/docs/page/3/index.html index 6e69eb84d..dc08f4b4a 100644 --- a/docs/page/3/index.html +++ b/docs/page/3/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/4/index.html b/docs/page/4/index.html index 09a9feacb..dc48d261d 100644 --- a/docs/page/4/index.html +++ b/docs/page/4/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/5/index.html b/docs/page/5/index.html index 11220b11d..b8900c34d 100644 --- a/docs/page/5/index.html +++ b/docs/page/5/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/page/6/index.html b/docs/page/6/index.html index 278cebb04..f9acdfdf6 100644 --- a/docs/page/6/index.html +++ b/docs/page/6/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/index.html b/docs/posts/index.html index c999b11e3..bbc3dc5da 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/2/index.html b/docs/posts/page/2/index.html index 1220db5e2..016e9b6f2 100644 --- a/docs/posts/page/2/index.html +++ b/docs/posts/page/2/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/3/index.html b/docs/posts/page/3/index.html index 83cb96708..e2e0d0cd8 100644 --- a/docs/posts/page/3/index.html +++ b/docs/posts/page/3/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/4/index.html b/docs/posts/page/4/index.html index 66ee85862..674254cd7 100644 --- a/docs/posts/page/4/index.html +++ b/docs/posts/page/4/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/5/index.html b/docs/posts/page/5/index.html index c653753d0..65999825e 100644 --- a/docs/posts/page/5/index.html +++ b/docs/posts/page/5/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/posts/page/6/index.html b/docs/posts/page/6/index.html index 17a256f7e..c128ab0ad 100644 --- a/docs/posts/page/6/index.html +++ b/docs/posts/page/6/index.html @@ -9,7 +9,7 @@ - + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 80c7118f6..a75dc4a4a 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,27 +4,27 @@ https://alanorth.github.io/cgspace-notes/categories/ - 2020-07-12T15:52:26+03:00 + 2020-07-13T12:31:34+03:00 https://alanorth.github.io/cgspace-notes/ - 2020-07-12T15:52:26+03:00 + 2020-07-13T12:31:34+03:00 https://alanorth.github.io/cgspace-notes/2020-07/ - 2020-07-12T15:52:26+03:00 + 2020-07-13T12:31:34+03:00 https://alanorth.github.io/cgspace-notes/categories/notes/ - 2020-07-12T15:52:26+03:00 + 2020-07-13T12:31:34+03:00 https://alanorth.github.io/cgspace-notes/posts/ - 2020-07-12T15:52:26+03:00 + 2020-07-13T12:31:34+03:00