From be4df4f64f68f881b4992d9f0af4d53253f65402 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 25 Apr 2018 13:15:38 +0300 Subject: [PATCH] Add notes for 2018-04-25 --- content/posts/2018-04.md | 12 ++++++++++++ docs/2018-04/index.html | 17 +++++++++++++++-- docs/sitemap.xml | 10 +++++----- 3 files changed, 32 insertions(+), 7 deletions(-) diff --git a/content/posts/2018-04.md b/content/posts/2018-04.md index 72c780680..784983db6 100644 --- a/content/posts/2018-04.md +++ b/content/posts/2018-04.md @@ -492,5 +492,17 @@ org.apache.tomcat.jdbc.pool.PoolExhaustedException: [localhost-startStop-2] Time - So it must be one of Maven's dependencies... - I will watch it for a few days because it could be an issue that will be resolved before Ubuntu 18.04's release - Otherwise I will post a bug to the ubuntu-release mailing list +- Looks like the only way to fix this is to install `openjdk-8-jdk-headless` before (so it pulls in the JRE) in a separate transaction, or to manually install `openjdk-8-jre-headless` in the same apt transaction as `maven` - Also, I started porting PostgreSQL 9.6 into the Ansible infrastructure scripts - This should be a drop in I believe, though I will definitely test it more locally as well as on DSpace Test once we move to DSpace 5.8 and Ubuntu 18.04 in the coming months + +## 2018-04-25 + +- Still testing the [Ansible infrastructure playbooks](https://github.com/ilri/rmg-ansible-public) for Ubuntu 18.04, Tomcat 8.5, and PostgreSQL 9.6 +- One other new thing I notice is that PostgreSQL 9.6 no longer uses `createuser` and `nocreateuser`, as those have actually meant `superuser` and `nosuperuser` and have been deprecated for *ten years* +- So for my notes, when I'm importing a CGSpace database dump I need to amend my notes to give super user permission to a user, rather than create user: + +``` +$ psql dspacetest -c 'alter user dspacetest superuser;' +$ pg_restore -O -U dspacetest -d dspacetest -W -h localhost /tmp/dspace_2018-04-18.backup +``` diff --git a/docs/2018-04/index.html b/docs/2018-04/index.html index 6c0f79e4e..819109705 100644 --- a/docs/2018-04/index.html +++ b/docs/2018-04/index.html @@ -21,7 +21,7 @@ Catalina logs at least show some memory errors yesterday: - + @@ -55,7 +55,7 @@ Catalina logs at least show some memory errors yesterday: "url": "https://alanorth.github.io/cgspace-notes/2018-04/", "wordCount": "0", "datePublished": "2018-04-01T16:13:54+02:00", - "dateModified": "2018-04-24T16:38:05+03:00", + "dateModified": "2018-04-24T16:53:28+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -669,10 +669,23 @@ org.apache.tomcat.jdbc.pool.PoolExhaustedException: [localhost-startStop-2] Time
  • So it must be one of Maven’s dependencies…
  • I will watch it for a few days because it could be an issue that will be resolved before Ubuntu 18.04’s release
  • Otherwise I will post a bug to the ubuntu-release mailing list
  • +
  • Looks like the only way to fix this is to install openjdk-8-jdk-headless before (so it pulls in the JRE) in a separate transaction, or to manually install openjdk-8-jre-headless in the same apt transaction as maven
  • Also, I started porting PostgreSQL 9.6 into the Ansible infrastructure scripts
  • This should be a drop in I believe, though I will definitely test it more locally as well as on DSpace Test once we move to DSpace 5.8 and Ubuntu 18.04 in the coming months
  • +

    2018-04-25

    + + + +
    $ psql dspacetest -c 'alter user dspacetest superuser;'
    +$ pg_restore -O -U dspacetest -d dspacetest -W -h localhost /tmp/dspace_2018-04-18.backup
    +
    + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index aa2bfe461..3eb6a3927 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-04/ - 2018-04-24T16:38:05+03:00 + 2018-04-24T16:53:28+03:00 @@ -159,7 +159,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-04-24T16:38:05+03:00 + 2018-04-24T16:53:28+03:00 0 @@ -170,7 +170,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-04-24T16:38:05+03:00 + 2018-04-24T16:53:28+03:00 0 @@ -182,13 +182,13 @@ https://alanorth.github.io/cgspace-notes/posts/ - 2018-04-24T16:38:05+03:00 + 2018-04-24T16:53:28+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-04-24T16:38:05+03:00 + 2018-04-24T16:53:28+03:00 0