mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2021-10-10
This commit is contained in:
@ -276,4 +276,62 @@ $ csvcut -c 'id,cg.issn[en_US],dc.identifier.issn[en_US],cg.isbn[en_US],dc.ident
|
||||
|
||||
- I did cleanups on about seventy items with invalid and mixed ISSNs/ISBNs
|
||||
|
||||
## 2021-10-10
|
||||
|
||||
- Start testing DSpace 7.1-SNAPSHOT to see if it has the duplicate item bug on `metadata-export` (DS-4211)
|
||||
- First create a new PostgreSQL 13 container:
|
||||
|
||||
```console
|
||||
$ podman run --name dspacedb13 -v dspacedb13_data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=postgres -p 5433:5432 -d postgres:13-alpine
|
||||
$ createuser -h localhost -p 5433 -U postgres --pwprompt dspacetest
|
||||
$ createdb -h localhost -p 5433 -U postgres -O dspacetest --encoding=UNICODE dspace7
|
||||
$ psql -h localhost -p 5433 -U postgres dspace7 -c 'CREATE EXTENSION pgcrypto;'
|
||||
```
|
||||
|
||||
- Then edit setting in `dspace/config/local.cfg` and build the backend server with Java 11:
|
||||
|
||||
```console
|
||||
$ mvn package
|
||||
$ cd dspace/target/dspace-installer
|
||||
$ ant fresh_install
|
||||
# fix database not being fully ready, causing Tomcat to fail to start the server application
|
||||
$ ~/dspace7/bin/dspace database migrate
|
||||
```
|
||||
|
||||
- Copy Solr configs and start Solr:
|
||||
|
||||
```console
|
||||
$ cp -Rv ~/dspace7/solr/* ~/src/solr-8.8.2/server/solr/configsets
|
||||
$ ~/src/solr-8.8.2/bin/solr start
|
||||
```
|
||||
|
||||
- Start my local Tomcat 9 instance:
|
||||
|
||||
```console
|
||||
$ systemctl --user start tomcat9@dspace7
|
||||
```
|
||||
|
||||
- This works, so now I will drop the default database and import a dump from CGSpace
|
||||
|
||||
```console
|
||||
$ systemctl --user stop tomcat9@dspace7
|
||||
$ dropdb -h localhost -p 5433 -U postgres dspace7
|
||||
$ createdb -h localhost -p 5433 -U postgres -O dspacetest --encoding=UNICODE dspace7
|
||||
$ psql -h localhost -p 5433 -U postgres -c 'alter user dspacetest superuser;'
|
||||
$ pg_restore -h localhost -p 5433 -U postgres -d dspace7 -O --role=dspacetest -h localhost dspace-2021-10-09.backup
|
||||
$ psql -h localhost -p 5433 -U postgres -c 'alter user dspacetest nosuperuser;'
|
||||
```
|
||||
|
||||
- Delete Atmire migrations and some others that were "unresolved":
|
||||
|
||||
```console
|
||||
$ psql -h localhost -p 5433 -U postgres dspace7 -c "DELETE FROM schema_version WHERE description LIKE '%Atmire%' OR description LIKE '%CUA%' OR description LIKE '%cua%';"
|
||||
$ psql -h localhost -p 5433 -U postgres dspace7 -c "DELETE FROM schema_version WHERE version IN ('5.0.2017.09.25', '6.0.2017.01.30', '6.0.2017.09.25');"
|
||||
```
|
||||
|
||||
- Now DSpace 7 starts with my CGSpace data... nice
|
||||
- I tested the `metadata-export` on DSpace 7.1-SNAPSHOT and it still has the duplicate items issue introduced by DS-4211
|
||||
- I filed a GitHub issue and notified nwoodward: https://github.com/DSpace/DSpace/issues/7988
|
||||
- Start a full reindex on AReS
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
Reference in New Issue
Block a user