Update notes for 2017-07-05

This commit is contained in:
Alan Orth 2017-07-05 17:27:41 +03:00
parent 3d1e9078b3
commit 997beb9141
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
3 changed files with 48 additions and 8 deletions

View File

@ -41,3 +41,21 @@ $ psql dspacenew -x -c 'select element, qualifier, scope_note from metadatafield
``` ```
$ psql dspace -x -c 'select element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id=2 order by element, qualifier;' | sed -r 's:^-\[ RECORD (.*) \]-+$:</dc-type>\n<dc-type>\n<schema>cg</schema>:;s:([^ ]*) +\| (.*): <\1>\2</\1>:;s:^$:</dc-type>:;1s:</dc-type>\n::' > cg-types.xml $ psql dspace -x -c 'select element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id=2 order by element, qualifier;' | sed -r 's:^-\[ RECORD (.*) \]-+$:</dc-type>\n<dc-type>\n<schema>cg</schema>:;s:([^ ]*) +\| (.*): <\1>\2</\1>:;s:^$:</dc-type>:;1s:</dc-type>\n::' > cg-types.xml
``` ```
- CGSpace was unavailable briefly, and I saw this error in the DSpace log file:
```
2017-07-05 13:05:36,452 ERROR org.dspace.storage.rdbms.DatabaseManager @ SQL connection Error -
org.postgresql.util.PSQLException: FATAL: remaining connection slots are reserved for non-replication superuser connections
```
- Looking at the `pg_stat_activity` table I saw there were indeed 98 active connections to PostgreSQL, and at this time the limit is 100, so that makes sense
- Tsega restarted Tomcat and it's working now
- Abenet said she was generating a report with Atmire's CUA module, so it could be due to that?
- Looking in the logs I see this random error again that I should report to DSpace:
```
2017-07-05 13:50:07,196 ERROR org.dspace.statistics.SolrLogger @ COUNTRY ERROR: EU
```
- Seems to come from `dspace-api/src/main/java/org/dspace/statistics/SolrLogger.java`

View File

@ -27,7 +27,7 @@ We can use PostgreSQL&rsquo;s extended output format (-x) plus sed to format the
<meta property="article:published_time" content="2017-07-01T18:03:52&#43;03:00"/> <meta property="article:published_time" content="2017-07-01T18:03:52&#43;03:00"/>
<meta property="article:modified_time" content="2017-07-04T23:39:47&#43;03:00"/> <meta property="article:modified_time" content="2017-07-05T14:33:20&#43;03:00"/>
@ -73,9 +73,9 @@ We can use PostgreSQL&rsquo;s extended output format (-x) plus sed to format the
"@type": "BlogPosting", "@type": "BlogPosting",
"headline": "July, 2017", "headline": "July, 2017",
"url": "https://alanorth.github.io/cgspace-notes/2017-07/", "url": "https://alanorth.github.io/cgspace-notes/2017-07/",
"wordCount": "323", "wordCount": "438",
"datePublished": "2017-07-01T18:03:52&#43;03:00", "datePublished": "2017-07-01T18:03:52&#43;03:00",
"dateModified": "2017-07-04T23:39:47&#43;03:00", "dateModified": "2017-07-05T14:33:20&#43;03:00",
"author": { "author": {
"@type": "Person", "@type": "Person",
"name": "Alan Orth" "name": "Alan Orth"
@ -183,6 +183,28 @@ We can use PostgreSQL&rsquo;s extended output format (-x) plus sed to format the
<pre><code>$ psql dspace -x -c 'select element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id=2 order by element, qualifier;' | sed -r 's:^-\[ RECORD (.*) \]-+$:&lt;/dc-type&gt;\n&lt;dc-type&gt;\n&lt;schema&gt;cg&lt;/schema&gt;:;s:([^ ]*) +\| (.*): &lt;\1&gt;\2&lt;/\1&gt;:;s:^$:&lt;/dc-type&gt;:;1s:&lt;/dc-type&gt;\n::' &gt; cg-types.xml <pre><code>$ psql dspace -x -c 'select element, qualifier, scope_note from metadatafieldregistry where metadata_schema_id=2 order by element, qualifier;' | sed -r 's:^-\[ RECORD (.*) \]-+$:&lt;/dc-type&gt;\n&lt;dc-type&gt;\n&lt;schema&gt;cg&lt;/schema&gt;:;s:([^ ]*) +\| (.*): &lt;\1&gt;\2&lt;/\1&gt;:;s:^$:&lt;/dc-type&gt;:;1s:&lt;/dc-type&gt;\n::' &gt; cg-types.xml
</code></pre> </code></pre>
<ul>
<li>CGSpace was unavailable briefly, and I saw this error in the DSpace log file:</li>
</ul>
<pre><code>2017-07-05 13:05:36,452 ERROR org.dspace.storage.rdbms.DatabaseManager @ SQL connection Error -
org.postgresql.util.PSQLException: FATAL: remaining connection slots are reserved for non-replication superuser connections
</code></pre>
<ul>
<li>Looking at the <code>pg_stat_activity</code> table I saw there were indeed 98 active connections to PostgreSQL, and at this time the limit is 100, so that makes sense</li>
<li>Tsega restarted Tomcat and it&rsquo;s working now</li>
<li>Abenet said she was generating a report with Atmire&rsquo;s CUA module, so it could be due to that?</li>
<li>Looking in the logs I see this random error again that I should report to DSpace:</li>
</ul>
<pre><code>2017-07-05 13:50:07,196 ERROR org.dspace.statistics.SolrLogger @ COUNTRY ERROR: EU
</code></pre>
<ul>
<li>Seems to come from <code>dspace-api/src/main/java/org/dspace/statistics/SolrLogger.java</code></li>
</ul>

View File

@ -4,7 +4,7 @@
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/2017-07/</loc> <loc>https://alanorth.github.io/cgspace-notes/2017-07/</loc>
<lastmod>2017-07-04T23:39:47+03:00</lastmod> <lastmod>2017-07-05T14:33:20+03:00</lastmod>
</url> </url>
<url> <url>
@ -109,7 +109,7 @@
<url> <url>
<loc>https://alanorth.github.io/cgspace-notes/</loc> <loc>https://alanorth.github.io/cgspace-notes/</loc>
<lastmod>2017-07-04T23:39:47+03:00</lastmod> <lastmod>2017-07-05T14:33:20+03:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>
@ -120,19 +120,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-07-04T23:39:47+03:00</lastmod> <lastmod>2017-07-05T14:33:20+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-07-04T23:39:47+03:00</lastmod> <lastmod>2017-07-05T14:33:20+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-07-04T23:39:47+03:00</lastmod> <lastmod>2017-07-05T14:33:20+03:00</lastmod>
<priority>0</priority> <priority>0</priority>
</url> </url>