From 13d0b48c8b90dbac89d3f9d4777aafd0de96da8c Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 18 May 2017 01:27:13 +0300 Subject: [PATCH] Add notes for 2017-05-17 --- content/post/2017-05.md | 30 ++++++++++++++++++++++++++++ public/2017-05/index.html | 41 ++++++++++++++++++++++++++++++++++++--- public/sitemap.xml | 10 +++++----- 3 files changed, 73 insertions(+), 8 deletions(-) diff --git a/content/post/2017-05.md b/content/post/2017-05.md index 8711d4a2d..f1be65bcc 100644 --- a/content/post/2017-05.md +++ b/content/post/2017-05.md @@ -157,3 +157,33 @@ $ ./fix-metadata-values.py -i /tmp/ccafs-flagships-may7.csv -f cg.subject.ccafs - Discuss updates to WLE themes for their Phase II - Make an issue to track the changes to `cg.subject.wle`: [#322](https://github.com/ilri/DSpace/issues/322) + +## 2017-05-17 + +- Looking into the error I get when trying to create a new collection on DSpace Test: + +``` +ERROR: duplicate key value violates unique constraint "handle_pkey" Detail: Key (handle_id)=(84834) already exists. +``` + +- I tried updating the sequences a few times, with Tomcat running and stopped, but it hasn't helped +- It appears item with `handle_id` 84834 is one of the imported CGIAR Library items: + +``` +dspace=# select * from handle where handle_id=84834; + handle_id | handle | resource_type_id | resource_id +-----------+------------+------------------+------------- + 84834 | 10947/1332 | 2 | 87113 +``` + +- Looks like the max `handle_id` is actually much higher: + +``` +dspace=# select * from handle where handle_id=(select max(handle_id) from handle); + handle_id | handle | resource_type_id | resource_id +-----------+----------+------------------+------------- + 86873 | 10947/99 | 2 | 89153 +(1 row) +``` + +- I've posted on the dspace-test mailing list to see if I can just manually set the `handle_seq` to that value diff --git a/public/2017-05/index.html b/public/2017-05/index.html index 9e1adbad1..fc5eb65e5 100644 --- a/public/2017-05/index.html +++ b/public/2017-05/index.html @@ -13,7 +13,7 @@ - + @@ -45,9 +45,9 @@ "@type": "BlogPosting", "headline": "May, 2017", "url": "https://alanorth.github.io/cgspace-notes/2017-05/", - "wordCount": "1308", + "wordCount": "1447", "datePublished": "2017-05-01T16:21:52+02:00", - "dateModified": "2017-05-15T20:04:56+03:00", + "dateModified": "2017-05-16T10:21:34+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -306,6 +306,41 @@ $ for item in /home/aorth/10947-1/ITEM@10947-*; do [dspace]/bin/dspace packager
  • Make an issue to track the changes to cg.subject.wle: #322
  • +

    2017-05-17

    + + + +
    ERROR: duplicate key value violates unique constraint "handle_pkey" Detail: Key (handle_id)=(84834) already exists.
    +
    + + + +
    dspace=# select * from handle where handle_id=84834;
    + handle_id |   handle   | resource_type_id | resource_id
    +-----------+------------+------------------+-------------
    +     84834 | 10947/1332 |                2 |       87113
    +
    + + + +
    dspace=# select * from handle where handle_id=(select max(handle_id) from handle);
    + handle_id |  handle  | resource_type_id | resource_id
    +-----------+----------+------------------+-------------
    +     86873 | 10947/99 |                2 |       89153
    +(1 row)
    +
    + + + diff --git a/public/sitemap.xml b/public/sitemap.xml index 67c21bb82..6cd969720 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2017-05/ - 2017-05-15T20:04:56+03:00 + 2017-05-16T10:21:34+03:00 @@ -99,7 +99,7 @@ https://alanorth.github.io/cgspace-notes/ - 2017-05-15T20:04:56+03:00 + 2017-05-16T10:21:34+03:00 0 @@ -110,19 +110,19 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2017-05-15T20:04:56+03:00 + 2017-05-16T10:21:34+03:00 0 https://alanorth.github.io/cgspace-notes/post/ - 2017-05-15T20:04:56+03:00 + 2017-05-16T10:21:34+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2017-05-15T20:04:56+03:00 + 2017-05-16T10:21:34+03:00 0