Update notes for 2017-12-07

This commit is contained in:
Alan Orth 2017-12-07 21:43:49 +03:00
parent 2b020fe31c
commit 211764543f
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
3 changed files with 38 additions and 8 deletions

View File

@ -164,3 +164,18 @@ $ grep 124.17.34.60 /home/cgspace.cgiar.org/log/dspace.log.2017-12-07 | grep -o
```
- I'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's the same bot on the same subnet
- I was running the DSpace cleanup task manually and it hit an error:
```
$ /home/cgspace.cgiar.org/bin/dspace cleanup -v
...
Error: ERROR: update or delete on table "bitstream" violates foreign key constraint "bundle_primary_bitstream_id_fkey" on table "bundle"
Detail: Key (bitstream_id)=(144666) is still referenced from table "bundle".
```
- The solution is like I discovered in [2017-04](/cgspace-notes/2017-04), to set the `primary_bitstream_id` to null:
```
dspace=# update bundle set primary_bitstream_id=NULL where primary_bitstream_id in (144666);
UPDATE 1
```

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>

View File

@ -4,7 +4,7 @@
<url>
<loc>https://alanorth.github.io/cgspace-notes/2017-12/</loc>
<lastmod>2017-12-06T09:51:05+03:00</lastmod>
<lastmod>2017-12-07T17:20:45+03:00</lastmod>
</url>
<url>
@ -139,7 +139,7 @@
<url>
<loc>https://alanorth.github.io/cgspace-notes/</loc>
<lastmod>2017-12-06T09:51:05+03:00</lastmod>
<lastmod>2017-12-07T17:20:45+03:00</lastmod>
<priority>0</priority>
</url>
@ -156,19 +156,19 @@
<url>
<loc>https://alanorth.github.io/cgspace-notes/tags/notes/</loc>
<lastmod>2017-12-06T09:51:05+03:00</lastmod>
<lastmod>2017-12-07T17:20:45+03:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>https://alanorth.github.io/cgspace-notes/post/</loc>
<lastmod>2017-12-06T09:51:05+03:00</lastmod>
<lastmod>2017-12-07T17:20:45+03:00</lastmod>
<priority>0</priority>
</url>
<url>
<loc>https://alanorth.github.io/cgspace-notes/tags/</loc>
<lastmod>2017-12-06T09:51:05+03:00</lastmod>
<lastmod>2017-12-07T17:20:45+03:00</lastmod>
<priority>0</priority>
</url>