mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-25 16:08:19 +01:00
Add notes for 2021-10-10
This commit is contained in:
parent
ab8cb272ea
commit
4ad6f7e3a6
@ -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: -->
|
||||
|
@ -25,7 +25,7 @@ So we have 1879/7100 (26.46%) matching already
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2021-10/" />
|
||||
<meta property="article:published_time" content="2021-10-01T11:14:07+03:00" />
|
||||
<meta property="article:modified_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="article:modified_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
@ -56,9 +56,9 @@ So we have 1879/7100 (26.46%) matching already
|
||||
"@type": "BlogPosting",
|
||||
"headline": "October, 2021",
|
||||
"url": "https://alanorth.github.io/cgspace-notes/2021-10/",
|
||||
"wordCount": "1882",
|
||||
"wordCount": "2199",
|
||||
"datePublished": "2021-10-01T11:14:07+03:00",
|
||||
"dateModified": "2021-10-08T17:15:17+03:00",
|
||||
"dateModified": "2021-10-09T22:00:59+03:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
@ -412,6 +412,55 @@ $ csvjoin -c id /tmp/ilri-deduplicated-items.csv /tmp/ilri-deduplicated-items-cl
|
||||
</code></pre><ul>
|
||||
<li>I did cleanups on about seventy items with invalid and mixed ISSNs/ISBNs</li>
|
||||
</ul>
|
||||
<h2 id="2021-10-10">2021-10-10</h2>
|
||||
<ul>
|
||||
<li>Start testing DSpace 7.1-SNAPSHOT to see if it has the duplicate item bug on <code>metadata-export</code> (DS-4211)</li>
|
||||
<li>First create a new PostgreSQL 13 container:</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code class="language-console" data-lang="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;'
|
||||
</code></pre><ul>
|
||||
<li>Then edit setting in <code>dspace/config/local.cfg</code> and build the backend server with Java 11:</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code class="language-console" data-lang="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
|
||||
</code></pre><ul>
|
||||
<li>Copy Solr configs and start Solr:</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code class="language-console" data-lang="console">$ cp -Rv ~/dspace7/solr/* ~/src/solr-8.8.2/server/solr/configsets
|
||||
$ ~/src/solr-8.8.2/bin/solr start
|
||||
</code></pre><ul>
|
||||
<li>Start my local Tomcat 9 instance:</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code class="language-console" data-lang="console">$ systemctl --user start tomcat9@dspace7
|
||||
</code></pre><ul>
|
||||
<li>This works, so now I will drop the default database and import a dump from CGSpace</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code class="language-console" data-lang="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;'
|
||||
</code></pre><ul>
|
||||
<li>Delete Atmire migrations and some others that were “unresolved”:</li>
|
||||
</ul>
|
||||
<pre tabindex="0"><code class="language-console" data-lang="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');"
|
||||
</code></pre><ul>
|
||||
<li>Now DSpace 7 starts with my CGSpace data… nice</li>
|
||||
<li>I tested the <code>metadata-export</code> on DSpace 7.1-SNAPSHOT and it still has the duplicate items issue introduced by DS-4211
|
||||
<ul>
|
||||
<li>I filed a GitHub issue and notified nwoodward: <a href="https://github.com/DSpace/DSpace/issues/7988">https://github.com/DSpace/DSpace/issues/7988</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Start a full reindex on AReS</li>
|
||||
</ul>
|
||||
<!-- raw HTML omitted -->
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/categories/notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
<meta property="og:description" content="Documenting day-to-day work on the [CGSpace](https://cgspace.cgiar.org) repository." />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/posts/" />
|
||||
<meta property="og:updated_time" content="2021-10-08T17:15:17+03:00" />
|
||||
<meta property="og:updated_time" content="2021-10-09T22:00:59+03:00" />
|
||||
|
||||
|
||||
|
||||
|
@ -3,19 +3,19 @@
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/categories/</loc>
|
||||
<lastmod>2021-10-08T17:15:17+03:00</lastmod>
|
||||
<lastmod>2021-10-09T22:00:59+03:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||
<lastmod>2021-10-08T17:15:17+03:00</lastmod>
|
||||
<lastmod>2021-10-09T22:00:59+03:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/categories/notes/</loc>
|
||||
<lastmod>2021-10-08T17:15:17+03:00</lastmod>
|
||||
<lastmod>2021-10-09T22:00:59+03:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2021-10/</loc>
|
||||
<lastmod>2021-10-08T17:15:17+03:00</lastmod>
|
||||
<lastmod>2021-10-09T22:00:59+03:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/posts/</loc>
|
||||
<lastmod>2021-10-08T17:15:17+03:00</lastmod>
|
||||
<lastmod>2021-10-09T22:00:59+03:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2021-09/</loc>
|
||||
<lastmod>2021-10-04T11:10:54+03:00</lastmod>
|
||||
|
Loading…
Reference in New Issue
Block a user