Update notes for 2017-12-07

This commit is contained in:
2017-12-07 21:43:49 +03:00
parent 2b020fe31c
commit 211764543f
3 changed files with 38 additions and 8 deletions

View File

@ -23,7 +23,7 @@ The list of connections to XMLUI and REST API for today:
<meta property="article:published_time" content="2017-12-01T13:53:54&#43;03:00"/>
<meta property="article:modified_time" content="2017-12-06T09:51:05&#43;03:00"/>
<meta property="article:modified_time" content="2017-12-07T17:20:45&#43;03:00"/>
@ -56,9 +56,9 @@ The list of connections to XMLUI and REST API for today:
"@type": "BlogPosting",
"headline": "December, 2017",
"url": "https://alanorth.github.io/cgspace-notes/2017-12/",
"wordCount": "823",
"wordCount": "891",
"datePublished": "2017-12-01T13:53:54&#43;03:00",
"dateModified": "2017-12-06T09:51:05&#43;03:00",
"dateModified": "2017-12-07T17:20:45&#43;03:00",
"author": {
"@type": "Person",
"name": "Alan Orth"
@ -301,8 +301,23 @@ The list of connections to XMLUI and REST API for today:
<ul>
<li>I&rsquo;ve adjusted the nginx IP mapping that I set up last month to account for 124.17.34.60 and 124.17.34.59 using a regex, as it&rsquo;s the same bot on the same subnet</li>
<li>I was running the DSpace cleanup task manually and it hit an error:</li>
</ul>
<pre><code>$ /home/cgspace.cgiar.org/bin/dspace cleanup -v
...
Error: ERROR: update or delete on table &quot;bitstream&quot; violates foreign key constraint &quot;bundle_primary_bitstream_id_fkey&quot; on table &quot;bundle&quot;
Detail: Key (bitstream_id)=(144666) is still referenced from table &quot;bundle&quot;.
</code></pre>
<ul>
<li>The solution is like I discovered in <a href="/cgspace-notes/2017-04">2017-04</a>, to set the <code>primary_bitstream_id</code> to null:</li>
</ul>
<pre><code>dspace=# update bundle set primary_bitstream_id=NULL where primary_bitstream_id in (144666);
UPDATE 1
</code></pre>