mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Update notes for 2018-08-26
This commit is contained in:
@ -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
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user