mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-12-22 05:02:19 +01:00
Add notes for 2022-11-30
This commit is contained in:
parent
0599df9bed
commit
651148cf0a
@ -502,5 +502,28 @@ $ sort -k4,1 /tmp/duplicates.txt | \
|
||||
|
||||
- This worked very well, but there were some metadata values that were tripled or quadrupled, so it only deleted the first duplicate
|
||||
- I just ran it again two more times to find the last duplicates, now we have none!
|
||||
- I also generated another SQL file with commands to update the last modified timestamps of these items:
|
||||
|
||||
```console
|
||||
$ awk -F'\t' '{print $4}' /tmp/duplicates.txt | sort -u | sed "s/^\(.*\)$/UPDATE item SET last_modified=NOW() WHERE uuid='\1';/" > /tmp/update-timestamp.sql
|
||||
```
|
||||
|
||||
- Tezira said she was having trouble archiving submissions
|
||||
- In the afternoon I looked and found a high number of locks:
|
||||
|
||||
```console
|
||||
$ psql -c 'SELECT * FROM pg_locks pl LEFT JOIN pg_stat_activity psa ON pl.pid = psa.pid;' | grep -o -E '(dspaceWeb|dspaceApi|dspaceCli)' | sort | uniq -c | sort -n
|
||||
60 dspaceCli
|
||||
176 dspaceApi
|
||||
1194 dspaceWeb
|
||||
```
|
||||
|
||||
[!PostgreSQL database locks](/cgspace-notes/2022/11/postgres_locks_cgspace-day.png)
|
||||
|
||||
- The timing looks suspiciously close to when I was running the batch updates on the ILRI community this morning.
|
||||
- I restarted Tomcat and PostgreSQL and everything was back to normal
|
||||
- I found some items on CGSpace in Dinka, Ndogo, and Bari languages, but the `dcterms.language` field was "other"
|
||||
- That's so unfortunate! These languages are not in ISO 639-1, but they are in ISO 639-3, which uses Alpha 3 and has more space for languages
|
||||
- I changed them from other to use the three-letter codes, and I will suggest to the CG Core group that we use ISO 639-3 in the future
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
@ -24,7 +24,7 @@ I reverted the Cocoon autosave change because it was more of a nuissance that Pe
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2022-11/" />
|
||||
<meta property="article:published_time" content="2022-11-01T09:11:36+03:00" />
|
||||
<meta property="article:modified_time" content="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="article:modified_time" content="2022-11-30T12:35:31+03:00" />
|
||||
|
||||
|
||||
|
||||
@ -54,9 +54,9 @@ I reverted the Cocoon autosave change because it was more of a nuissance that Pe
|
||||
"@type": "BlogPosting",
|
||||
"headline": "November, 2022",
|
||||
"url": "https://alanorth.github.io/cgspace-notes/2022-11/",
|
||||
"wordCount": "3206",
|
||||
"wordCount": "3401",
|
||||
"datePublished": "2022-11-01T09:11:36+03:00",
|
||||
"dateModified": "2022-11-28T23:19:19+03:00",
|
||||
"dateModified": "2022-11-30T12:35:31+03:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
@ -707,6 +707,33 @@ I reverted the Cocoon autosave change because it was more of a nuissance that Pe
|
||||
<li>I just ran it again two more times to find the last duplicates, now we have none!</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>I also generated another SQL file with commands to update the last modified timestamps of these items:</li>
|
||||
</ul>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>$ awk -F<span style="color:#e6db74">'\t'</span> <span style="color:#e6db74">'{print $4}'</span> /tmp/duplicates.txt | sort -u | sed <span style="color:#e6db74">"s/^\(.*\)</span>$<span style="color:#e6db74">/UPDATE item SET last_modified=NOW() WHERE uuid='\1';/"</span> > /tmp/update-timestamp.sql
|
||||
</span></span></code></pre></div><ul>
|
||||
<li>Tezira said she was having trouble archiving submissions
|
||||
<ul>
|
||||
<li>In the afternoon I looked and found a high number of locks:</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-console" data-lang="console"><span style="display:flex;"><span>$ psql -c <span style="color:#e6db74">'SELECT * FROM pg_locks pl LEFT JOIN pg_stat_activity psa ON pl.pid = psa.pid;'</span> | grep -o -E <span style="color:#e6db74">'(dspaceWeb|dspaceApi|dspaceCli)'</span> | sort | uniq -c | sort -n
|
||||
</span></span><span style="display:flex;"><span> 60 dspaceCli
|
||||
</span></span><span style="display:flex;"><span> 176 dspaceApi
|
||||
</span></span><span style="display:flex;"><span> 1194 dspaceWeb
|
||||
</span></span></code></pre></div><p><a href="/cgspace-notes/2022/11/postgres_locks_cgspace-day.png">!PostgreSQL database locks</a></p>
|
||||
<ul>
|
||||
<li>The timing looks suspiciously close to when I was running the batch updates on the ILRI community this morning.
|
||||
<ul>
|
||||
<li>I restarted Tomcat and PostgreSQL and everything was back to normal</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>I found some items on CGSpace in Dinka, Ndogo, and Bari languages, but the <code>dcterms.language</code> field was “other”
|
||||
<ul>
|
||||
<li>That’s so unfortunate! These languages are not in ISO 639-1, but they are in ISO 639-3, which uses Alpha 3 and has more space for languages</li>
|
||||
<li>I changed them from other to use the three-letter codes, and I will suggest to the CG Core group that we use ISO 639-3 in the future</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<!-- raw HTML omitted -->
|
||||
|
||||
|
BIN
docs/2022/11/postgres_locks_cgspace-day.png
Normal file
BIN
docs/2022/11/postgres_locks_cgspace-day.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.7 KiB |
@ -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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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="2022-11-28T23:19:19+03:00" />
|
||||
<meta property="og:updated_time" content="2022-11-30T12:35:31+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>2022-11-28T23:19:19+03:00</lastmod>
|
||||
<lastmod>2022-11-30T12:35:31+03:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||
<lastmod>2022-11-28T23:19:19+03:00</lastmod>
|
||||
<lastmod>2022-11-30T12:35:31+03:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/categories/notes/</loc>
|
||||
<lastmod>2022-11-28T23:19:19+03:00</lastmod>
|
||||
<lastmod>2022-11-30T12:35:31+03:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2022-11/</loc>
|
||||
<lastmod>2022-11-28T23:19:19+03:00</lastmod>
|
||||
<lastmod>2022-11-30T12:35:31+03:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/posts/</loc>
|
||||
<lastmod>2022-11-28T23:19:19+03:00</lastmod>
|
||||
<lastmod>2022-11-30T12:35:31+03:00</lastmod>
|
||||
</url><url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2022-10/</loc>
|
||||
<lastmod>2022-10-31T16:59:47+03:00</lastmod>
|
||||
|
BIN
static/2022/11/postgres_locks_cgspace-day.png
Normal file
BIN
static/2022/11/postgres_locks_cgspace-day.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.7 KiB |
Loading…
Reference in New Issue
Block a user