From 1d95989c1c7a88197992ed16e5351014f2273bab Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 26 Aug 2018 09:38:15 +0300 Subject: [PATCH] Update notes for 2018-08-26 --- content/posts/2018-08.md | 42 +++++++++++++++++++++++++++++++ docs/2018-08/index.html | 54 +++++++++++++++++++++++++++++++++++++--- docs/sitemap.xml | 10 ++++---- 3 files changed, 98 insertions(+), 8 deletions(-) diff --git a/content/posts/2018-08.md b/content/posts/2018-08.md index c6e1118ec..ab9feedfd 100644 --- a/content/posts/2018-08.md +++ b/content/posts/2018-08.md @@ -261,4 +261,46 @@ Mozilla/5.0 (compatible; MegaIndex.ru/2.0; +http://megaindex.com/crawler) $ dspace import -a -e s.webshet@cgiar.org -s /home/swebshet/ictupdates_uploads_August_21 -m /tmp/2018-08-23-cta-ictupdates.map ``` +## 2018-08-26 + +- Doing the DSpace 5.8 upgrade on CGSpace (linode18) +- I already finished the Maven build, now I'll take a backup of the PostgreSQL database and do a database cleanup just in case: + +``` +$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-08-26-before-dspace-58.backup dspace +$ dspace cleanup -v +``` + +- Now I can stop Tomcat and do the install: + +``` +$ cd dspace/target/dspace-installer +$ ant update clean_backups update_geolite +``` + +- After the successful Ant update I can run the database migrations: + +``` +$ psql dspace dspace + +dspace=> \i /tmp/Atmire-DSpace-5.8-Schema-Migration.sql +DELETE 0 +UPDATE 1 +DELETE 1 +dspace=> \q + +$ dspace database migrate ignored +``` + +- Then I'll run all system updates and reboot the server: + +``` +$ sudo su - +# apt update && apt full-upgrade +# apt clean && apt autoclean && apt autoremove +# reboot +``` + +- After reboot I logged in and cleared all the XMLUI caches and everything looked to be working fine + diff --git a/docs/2018-08/index.html b/docs/2018-08/index.html index 327189671..bacfa3598 100644 --- a/docs/2018-08/index.html +++ b/docs/2018-08/index.html @@ -34,7 +34,7 @@ I ran all system updates on DSpace Test and rebooted it - + @@ -79,9 +79,9 @@ I ran all system updates on DSpace Test and rebooted it "@type": "BlogPosting", "headline": "August, 2018", "url": "https://alanorth.github.io/cgspace-notes/2018-08/", - "wordCount": "2101", + "wordCount": "2245", "datePublished": "2018-08-01T11:52:54+03:00", - "dateModified": "2018-08-23T10:49:23+03:00", + "dateModified": "2018-08-23T16:34:16+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -435,6 +435,54 @@ sys 2m20.248s
$ dspace import -a -e s.webshet@cgiar.org -s /home/swebshet/ictupdates_uploads_August_21 -m /tmp/2018-08-23-cta-ictupdates.map
 
+

2018-08-26

+ + + +
$ pg_dump -b -v -o --format=custom -U dspace -f dspace-2018-08-26-before-dspace-58.backup dspace
+$ dspace cleanup -v
+
+ + + +
$ cd dspace/target/dspace-installer
+$ ant update clean_backups update_geolite
+
+ + + +
$ psql dspace dspace
+
+dspace=> \i /tmp/Atmire-DSpace-5.8-Schema-Migration.sql 
+DELETE 0
+UPDATE 1
+DELETE 1
+dspace=> \q
+
+$ dspace database migrate ignored
+
+ + + +
$ sudo su -
+# apt update && apt full-upgrade
+# apt clean && apt autoclean && apt autoremove
+# reboot
+
+ + + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index ca7d52997..b07a1ac35 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -4,7 +4,7 @@ https://alanorth.github.io/cgspace-notes/2018-08/ - 2018-08-23T10:49:23+03:00 + 2018-08-23T16:34:16+03:00 @@ -179,7 +179,7 @@ https://alanorth.github.io/cgspace-notes/ - 2018-08-23T10:49:23+03:00 + 2018-08-23T16:34:16+03:00 0 @@ -190,7 +190,7 @@ https://alanorth.github.io/cgspace-notes/tags/notes/ - 2018-08-23T10:49:23+03:00 + 2018-08-23T16:34:16+03:00 0 @@ -202,13 +202,13 @@ https://alanorth.github.io/cgspace-notes/posts/ - 2018-08-23T10:49:23+03:00 + 2018-08-23T16:34:16+03:00 0 https://alanorth.github.io/cgspace-notes/tags/ - 2018-08-23T10:49:23+03:00 + 2018-08-23T16:34:16+03:00 0