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
cg.subject.wle
: #322ERROR: duplicate key value violates unique constraint "handle_pkey" Detail: Key (handle_id)=(84834) already exists.
+
+
+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
+
+
+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)
+
+
+handle_seq
to that value