From d6c27e101f48b5eb312d91f4464a46eed68a3ef5 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 30 Apr 2020 11:21:42 +0300 Subject: [PATCH] Add notes for 2020-04-30 --- content/posts/2020-04.md | 17 +++++++++++++++++ docs/2020-04/index.html | 24 +++++++++++++++++++++--- docs/sitemap.xml | 10 +++++----- 3 files changed, 43 insertions(+), 8 deletions(-) diff --git a/content/posts/2020-04.md b/content/posts/2020-04.md index 7af45c15c..2a3a2720d 100644 --- a/content/posts/2020-04.md +++ b/content/posts/2020-04.md @@ -457,4 +457,21 @@ $ curl -s "http://localhost:8081/solr/statistics/update?softCommit=true" -H "Con - Quoting them works for now until I can look into it and handle it properly in the script - This was about 400,000 hits in total purged from the Solr statistics +## 2020-04-30 + +- The TLS certificates on DSpace Test (linode26) have not been renewing correctly + - The log shows the message "No renewals were attempted" + - The `certbot-auto certificates` command doesn't list the certificate I have installed + - I guess this is because I copied it from the previous server... + - I moved the Let's Encrypt directory, got a new cert, then revoked the old one: + +``` +# mv /etc/letsencrypt /etc/letsencrypt.bak +# /opt/certbot-auto certonly --standalone --email fu@m.com -d dspacetest.cgiar.org --standalone --pre-hook "/bin/systemctl stop nginx" --post-hook "/bin/systemctl start nginx" +# /opt/certbot-auto revoke --cert-path /etc/letsencrypt.bak/live/dspacetest.cgiar.org/cert.pem +# rm -rf /etc/letsencrypt.bak +``` + +- Run all system updates on DSpace Test and reboot it + diff --git a/docs/2020-04/index.html b/docs/2020-04/index.html index 4fa093478..31af16ebe 100644 --- a/docs/2020-04/index.html +++ b/docs/2020-04/index.html @@ -25,7 +25,7 @@ On the same note, the one item Abenet pointed out last week now has a donut with - + @@ -55,9 +55,9 @@ On the same note, the one item Abenet pointed out last week now has a donut with "@type": "BlogPosting", "headline": "April, 2020", "url": "https://alanorth.github.io/cgspace-notes/2020-04/", - "wordCount": "3186", + "wordCount": "3286", "datePublished": "2020-04-02T10:53:24+03:00", - "dateModified": "2020-04-29T17:33:34+03:00", + "dateModified": "2020-04-30T10:44:23+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -592,6 +592,24 @@ $ curl -s "http://localhost:8081/solr/statistics/update?softCommit=true&quo
  • Quoting them works for now until I can look into it and handle it properly in the script
  • This was about 400,000 hits in total purged from the Solr statistics
  • +

    2020-04-30

    + +
    # mv /etc/letsencrypt /etc/letsencrypt.bak
    +# /opt/certbot-auto certonly --standalone --email fu@m.com -d dspacetest.cgiar.org --standalone --pre-hook "/bin/systemctl stop nginx" --post-hook "/bin/systemctl start nginx"
    +# /opt/certbot-auto revoke --cert-path /etc/letsencrypt.bak/live/dspacetest.cgiar.org/cert.pem
    +# rm -rf /etc/letsencrypt.bak
    +
    diff --git a/docs/sitemap.xml b/docs/sitemap.xml index 2eeb468f5..136ba5aa4 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,27 +4,27 @@ https://alanorth.github.io/cgspace-notes/2020-04/ - 2020-04-29T17:33:34+03:00 + 2020-04-30T10:44:23+03:00 https://alanorth.github.io/cgspace-notes/categories/ - 2020-04-29T17:33:34+03:00 + 2020-04-30T10:44:23+03:00 https://alanorth.github.io/cgspace-notes/ - 2020-04-29T17:33:34+03:00 + 2020-04-30T10:44:23+03:00 https://alanorth.github.io/cgspace-notes/categories/notes/ - 2020-04-29T17:33:34+03:00 + 2020-04-30T10:44:23+03:00 https://alanorth.github.io/cgspace-notes/posts/ - 2020-04-29T17:33:34+03:00 + 2020-04-30T10:44:23+03:00