Add notes for 2017-05-17

This commit is contained in:
Alan Orth 2017-05-18 01:27:13 +03:00
parent 748b6d8bfa
commit 13d0b48c8b
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
3 changed files with 73 additions and 8 deletions

View File

@ -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 - 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) - 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

View File

@ -13,7 +13,7 @@
<meta property="article:published_time" content="2017-05-01T16:21:52&#43;02:00"/> <meta property="article:published_time" content="2017-05-01T16:21:52&#43;02:00"/>
<meta property="article:modified_time" content="2017-05-15T20:04:56&#43;03:00"/> <meta property="article:modified_time" content="2017-05-16T10:21:34&#43;03:00"/>
@ -45,9 +45,9 @@
"@type": "BlogPosting", "@type": "BlogPosting",
"headline": "May, 2017", "headline": "May, 2017",
"url": "https://alanorth.github.io/cgspace-notes/2017-05/", "url": "https://alanorth.github.io/cgspace-notes/2017-05/",
"wordCount": "1308", "wordCount": "1447",
"datePublished": "2017-05-01T16:21:52&#43;02:00", "datePublished": "2017-05-01T16:21:52&#43;02:00",
"dateModified": "2017-05-15T20:04:56&#43;03:00", "dateModified": "2017-05-16T10:21:34&#43;03:00",
"author": { "author": {
"@type": "Person", "@type": "Person",
"name": "Alan Orth" "name": "Alan Orth"
@ -306,6 +306,41 @@ $ for item in /home/aorth/10947-1/ITEM@10947-*; do [dspace]/bin/dspace packager
<li>Make an issue to track the changes to <code>cg.subject.wle</code>: <a href="https://github.com/ilri/DSpace/issues/322">#322</a></li> <li>Make an issue to track the changes to <code>cg.subject.wle</code>: <a href="https://github.com/ilri/DSpace/issues/322">#322</a></li>
</ul> </ul>
<h2 id="2017-05-17">2017-05-17</h2>
<ul>
<li>Looking into the error I get when trying to create a new collection on DSpace Test:</li>
</ul>
<pre><code>ERROR: duplicate key value violates unique constraint &quot;handle_pkey&quot; Detail: Key (handle_id)=(84834) already exists.
</code></pre>
<ul>
<li>I tried updating the sequences a few times, with Tomcat running and stopped, but it hasn&rsquo;t helped</li>
<li>It appears item with <code>handle_id</code> 84834 is one of the imported CGIAR Library items:</li>
</ul>
<pre><code>dspace=# select * from handle where handle_id=84834;
handle_id | handle | resource_type_id | resource_id
-----------+------------+------------------+-------------
84834 | 10947/1332 | 2 | 87113
</code></pre>
<ul>
<li>Looks like the max <code>handle_id</code> is actually much higher:</li>
</ul>
<pre><code>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)
</code></pre>
<ul>
<li>I&rsquo;ve posted on the dspace-test mailing list to see if I can just manually set the <code>handle_seq</code> to that value</li>
</ul>

View File

@ -4,7 +4,7 @@
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/2017-05/</loc> <loc>https://alanorth.github.io/cgspace-notes/2017-05/</loc>
<lastmod>2017-05-15T20:04:56+03:00</lastmod> <lastmod>2017-05-16T10:21:34+03:00</lastmod>
</url> </url>
<url> <url>
@ -99,7 +99,7 @@
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/</loc> <loc>https://alanorth.github.io/cgspace-notes/</loc>
<lastmod>2017-05-15T20:04:56+03:00</lastmod> <lastmod>2017-05-16T10:21:34+03:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>
@ -110,19 +110,19 @@
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc> <loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
<lastmod>2017-05-15T20:04:56+03:00</lastmod> <lastmod>2017-05-16T10:21:34+03:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/post/</loc> <loc>https://alanorth.github.io/cgspace-notes/post/</loc>
<lastmod>2017-05-15T20:04:56+03:00</lastmod> <lastmod>2017-05-16T10:21:34+03:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc> <loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
<lastmod>2017-05-15T20:04:56+03:00</lastmod> <lastmod>2017-05-16T10:21:34+03:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>