diff --git a/content/post/2017-07.md b/content/post/2017-07.md index 91e2c7e84..c4ce2f401 100644 --- a/content/post/2017-07.md +++ b/content/post/2017-07.md @@ -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 (.*) \]-+$:\n\ncg:;s:([^ ]*) +\| (.*): <\1>\2:;s:^$::;1s:\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` diff --git a/public/2017-07/index.html b/public/2017-07/index.html index fe029246c..c2f38d5b9 100644 --- a/public/2017-07/index.html +++ b/public/2017-07/index.html @@ -27,7 +27,7 @@ We can use PostgreSQL’s extended output format (-x) plus sed to format the - + @@ -73,9 +73,9 @@ We can use PostgreSQL’s extended output format (-x) plus sed to format the "@type": "BlogPosting", "headline": "July, 2017", "url": "https://alanorth.github.io/cgspace-notes/2017-07/", - "wordCount": "323", + "wordCount": "438", "datePublished": "2017-07-01T18:03:52+03:00", - "dateModified": "2017-07-04T23:39:47+03:00", + "dateModified": "2017-07-05T14:33:20+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -183,6 +183,28 @@ We can use PostgreSQL’s extended output format (-x) plus sed to format the
$ 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
 
+ + +
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
+
+ + + +
2017-07-05 13:50:07,196 ERROR org.dspace.statistics.SolrLogger @ COUNTRY ERROR: EU
+
+ + + diff --git a/public/sitemap.xml b/public/sitemap.xml index 9cea286df..2d304b4d9 100644 --- a/public/sitemap.xml +++ b/public/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2017-07/ - 2017-07-04T23:39:47+03:00 + 2017-07-05T14:33:20+03:00 @@ -109,7 +109,7 @@ https://alanorth.github.io/cgspace-notes/ - 2017-07-04T23:39:47+03:00 + 2017-07-05T14:33:20+03:00 0 @@ -120,19 +120,19 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2017-07-04T23:39:47+03:00 + 2017-07-05T14:33:20+03:00 0 https://alanorth.github.io/cgspace-notes/post/ - 2017-07-04T23:39:47+03:00 + 2017-07-05T14:33:20+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2017-07-04T23:39:47+03:00 + 2017-07-05T14:33:20+03:00 0