diff --git a/content/posts/2021-09.md b/content/posts/2021-09.md index ef3da9099..511f00e5c 100644 --- a/content/posts/2021-09.md +++ b/content/posts/2021-09.md @@ -176,4 +176,39 @@ $ docker images | grep -v ^REPO | sed 's/ \+/:/g' | cut -d: -f1,2 | xargs -L1 do $ docker-compose build ``` +## 2021-09-20 + +- I synchronized the production CGSpace PostreSQL, Solr, and Assetstore data with DSpace Test +- Over the weekend a few users reported that they could not log into CGSpace + - I checked LDAP and it seems there is something wrong: + +```console +$ ldapsearch -x -H ldaps://AZCGNEROOT2.CGIARAD.ORG:636/ -b "dc=cgiarad,dc=org" -D "cgspace-ldap-account@cgiarad.org" -W "(sAMAccountName=someaccountnametocheck)" +Enter LDAP Password: +ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) +``` + +- I sent a message to CGNET to ask about the server settings and see if our IP is still whitelisted + - It turns out that CGNET created a new Active Directory server (AZCGNEROOT3.cgiarad.org) and decomissioned the old one last week + - I updated the configuration on CGSpace and confirmed that it is working +- Create another test account for Rafael from Bioversity-CIAT to submit some items to DSpace Test: + +```console +$ dspace user -a -m tip-submit@cgiar.org -g CIAT -s Submit -p 'fuuuuuuuu' +``` + +- I added the account to the Alliance Admins account, which is should allow him to submit to any Alliance collection + - According to my notes from [2020-10]({{< relref "2020-10.md" >}}) the account must be in the admin group in order to submit via the REST API +- Run `dspace cleanup -v` process on CGSpace to clean up old bitstreams +- Export lists of authors, donors, and affiliations for Peter Ballantyne to clean up: + +```console +localhost/dspace63= > \COPY (SELECT DISTINCT text_value as "dc.contributor.author", count(*) FROM metadatavalue WHERE dspace_object_id IN (SELECT uuid FROM item) AND metadata_field_id = 3 GROUP BY text_value ORDER BY count DESC) to /tmp/2021-09-20-authors.csv WITH CSV HEADER; +COPY 80901 +localhost/dspace63= > \COPY (SELECT DISTINCT text_value as "cg.contributor.donor", count(*) FROM metadatavalue WHERE dspace_object_id IN (SELECT uuid FROM item) AND metadata_field_id = 248 GROUP BY text_value ORDER BY count DESC) to /tmp/2021-09-20-donors.csv WITH CSV HEADER; +COPY 1274 +localhost/dspace63= > \COPY (SELECT DISTINCT text_value as "cg.contributor.affiliation", count(*) FROM metadatavalue WHERE dspace_object_id IN (SELECT uuid FROM item) AND metadata_field_id = 211 GROUP BY text_value ORDER BY count DESC) to /tmp/2021-09-20-affiliations.csv WITH CSV HEADER; +COPY 8091 +``` + diff --git a/docs/2020-01/index.html b/docs/2020-01/index.html index 56361b7e3..763e464c7 100644 --- a/docs/2020-01/index.html +++ b/docs/2020-01/index.html @@ -30,7 +30,7 @@ I tweeted the CGSpace repository link - + @@ -68,7 +68,7 @@ I tweeted the CGSpace repository link "url": "https://alanorth.github.io/cgspace-notes/2020-01/", "wordCount": "3523", "datePublished": "2020-01-06T10:48:30+02:00", - "dateModified": "2020-03-12T12:58:21+02:00", + "dateModified": "2021-09-20T15:47:34+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -148,7 +148,7 @@ I tweeted the CGSpace repository link
  • Last week Altmetric responded about the item that had a lower score than than its DOI
  • diff --git a/docs/2021-09/index.html b/docs/2021-09/index.html index 6614fbe34..d3b125264 100644 --- a/docs/2021-09/index.html +++ b/docs/2021-09/index.html @@ -26,7 +26,7 @@ The syntax Moayad showed me last month doesn’t seem to honor the search qu - + @@ -58,9 +58,9 @@ The syntax Moayad showed me last month doesn’t seem to honor the search qu "@type": "BlogPosting", "headline": "September, 2021", "url": "https://alanorth.github.io/cgspace-notes/2021-09/", - "wordCount": "1221", + "wordCount": "1532", "datePublished": "2021-09-01T09:14:07+03:00", - "dateModified": "2021-09-17T15:03:28+03:00", + "dateModified": "2021-09-19T15:42:23+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -340,6 +340,43 @@ dspace.log.2021-09-17:15235
    $ docker images | grep -v ^REPO | sed 's/ \+/:/g' | cut -d: -f1,2 | xargs -L1 docker pull
     $ docker-compose build
    +

    2021-09-20

    + +
    $ ldapsearch -x -H ldaps://AZCGNEROOT2.CGIARAD.ORG:636/ -b "dc=cgiarad,dc=org" -D "cgspace-ldap-account@cgiarad.org" -W "(sAMAccountName=someaccountnametocheck)"
    +Enter LDAP Password: 
    +ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
    +
    +
    $ dspace user -a -m tip-submit@cgiar.org -g CIAT -s Submit -p 'fuuuuuuuu'
    +
    +
    localhost/dspace63= > \COPY (SELECT DISTINCT text_value as "dc.contributor.author", count(*) FROM metadatavalue WHERE dspace_object_id IN (SELECT uuid FROM item) AND metadata_field_id = 3 GROUP BY text_value ORDER BY count DESC) to /tmp/2021-09-20-authors.csv WITH CSV HEADER;
    +COPY 80901
    +localhost/dspace63= > \COPY (SELECT DISTINCT text_value as "cg.contributor.donor", count(*) FROM metadatavalue WHERE dspace_object_id IN (SELECT uuid FROM item) AND metadata_field_id = 248 GROUP BY text_value ORDER BY count DESC) to /tmp/2021-09-20-donors.csv WITH CSV HEADER;
    +COPY 1274
    +localhost/dspace63= > \COPY (SELECT DISTINCT text_value as "cg.contributor.affiliation", count(*) FROM metadatavalue WHERE dspace_object_id IN (SELECT uuid FROM item) AND metadata_field_id = 211 GROUP BY text_value ORDER BY count DESC) to /tmp/2021-09-20-affiliations.csv WITH CSV HEADER;
    +COPY 8091
     
    diff --git a/docs/categories/index.html b/docs/categories/index.html index 338b2b6e4..07e2bcdd7 100644 --- a/docs/categories/index.html +++ b/docs/categories/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/index.html b/docs/categories/notes/index.html index c4e37b8ac..47596029e 100644 --- a/docs/categories/notes/index.html +++ b/docs/categories/notes/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/index.xml b/docs/categories/notes/index.xml index de2d1329a..690f0e7e5 100644 --- a/docs/categories/notes/index.xml +++ b/docs/categories/notes/index.xml @@ -439,7 +439,7 @@ COPY 20994 <li>Last week Altmetric responded about the <a href="https://hdl.handle.net/10568/97087">item</a> that had a lower score than than its DOI <ul> <li>The score is now linked to the DOI</li> -<li>Another <a href="https://handle.hdl.net/10568/91278">item</a> that had the same problem in 2019 has now also linked to the score for its DOI</li> +<li>Another <a href="https://hdl.handle.net/10568/91278">item</a> that had the same problem in 2019 has now also linked to the score for its DOI</li> <li>Another <a href="https://hdl.handle.net/10568/81236">item</a> that had the same problem in 2019 has also been fixed</li> </ul> </li> diff --git a/docs/categories/notes/page/2/index.html b/docs/categories/notes/page/2/index.html index 51c845a3b..aa89c2abb 100644 --- a/docs/categories/notes/page/2/index.html +++ b/docs/categories/notes/page/2/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/3/index.html b/docs/categories/notes/page/3/index.html index 57ebfbcd7..393ba1c53 100644 --- a/docs/categories/notes/page/3/index.html +++ b/docs/categories/notes/page/3/index.html @@ -10,7 +10,7 @@ - + @@ -154,7 +154,7 @@
  • Last week Altmetric responded about the item that had a lower score than than its DOI
  • diff --git a/docs/categories/notes/page/4/index.html b/docs/categories/notes/page/4/index.html index c7a4fd4ca..c82051fa7 100644 --- a/docs/categories/notes/page/4/index.html +++ b/docs/categories/notes/page/4/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/5/index.html b/docs/categories/notes/page/5/index.html index 2079a0c65..6bef101df 100644 --- a/docs/categories/notes/page/5/index.html +++ b/docs/categories/notes/page/5/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/categories/notes/page/6/index.html b/docs/categories/notes/page/6/index.html index 2e0526390..6b369375e 100644 --- a/docs/categories/notes/page/6/index.html +++ b/docs/categories/notes/page/6/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/index.html b/docs/index.html index 19e7203eb..30966d44a 100644 --- a/docs/index.html +++ b/docs/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/index.xml b/docs/index.xml index f7863eb4f..1f613fcb3 100644 --- a/docs/index.xml +++ b/docs/index.xml @@ -439,7 +439,7 @@ COPY 20994 <li>Last week Altmetric responded about the <a href="https://hdl.handle.net/10568/97087">item</a> that had a lower score than than its DOI <ul> <li>The score is now linked to the DOI</li> -<li>Another <a href="https://handle.hdl.net/10568/91278">item</a> that had the same problem in 2019 has now also linked to the score for its DOI</li> +<li>Another <a href="https://hdl.handle.net/10568/91278">item</a> that had the same problem in 2019 has now also linked to the score for its DOI</li> <li>Another <a href="https://hdl.handle.net/10568/81236">item</a> that had the same problem in 2019 has also been fixed</li> </ul> </li> diff --git a/docs/page/2/index.html b/docs/page/2/index.html index 36f652d35..83ea2f6d6 100644 --- a/docs/page/2/index.html +++ b/docs/page/2/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/3/index.html b/docs/page/3/index.html index 377f12382..e555130a6 100644 --- a/docs/page/3/index.html +++ b/docs/page/3/index.html @@ -10,7 +10,7 @@ - + @@ -169,7 +169,7 @@
  • Last week Altmetric responded about the item that had a lower score than than its DOI
  • diff --git a/docs/page/4/index.html b/docs/page/4/index.html index bdd2d0e61..dbfaef97e 100644 --- a/docs/page/4/index.html +++ b/docs/page/4/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/5/index.html b/docs/page/5/index.html index 7efbb9311..f3dfae0d2 100644 --- a/docs/page/5/index.html +++ b/docs/page/5/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/6/index.html b/docs/page/6/index.html index 6d49fb08a..e29c7186f 100644 --- a/docs/page/6/index.html +++ b/docs/page/6/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/7/index.html b/docs/page/7/index.html index 501da6567..006701eb7 100644 --- a/docs/page/7/index.html +++ b/docs/page/7/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/page/8/index.html b/docs/page/8/index.html index 54ef4d668..badf8ac09 100644 --- a/docs/page/8/index.html +++ b/docs/page/8/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/index.html b/docs/posts/index.html index aca538b72..55a59139a 100644 --- a/docs/posts/index.html +++ b/docs/posts/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/index.xml b/docs/posts/index.xml index 8fcfa5201..d41e5d205 100644 --- a/docs/posts/index.xml +++ b/docs/posts/index.xml @@ -439,7 +439,7 @@ COPY 20994 <li>Last week Altmetric responded about the <a href="https://hdl.handle.net/10568/97087">item</a> that had a lower score than than its DOI <ul> <li>The score is now linked to the DOI</li> -<li>Another <a href="https://handle.hdl.net/10568/91278">item</a> that had the same problem in 2019 has now also linked to the score for its DOI</li> +<li>Another <a href="https://hdl.handle.net/10568/91278">item</a> that had the same problem in 2019 has now also linked to the score for its DOI</li> <li>Another <a href="https://hdl.handle.net/10568/81236">item</a> that had the same problem in 2019 has also been fixed</li> </ul> </li> diff --git a/docs/posts/page/2/index.html b/docs/posts/page/2/index.html index 71f614eac..9af308ab0 100644 --- a/docs/posts/page/2/index.html +++ b/docs/posts/page/2/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/3/index.html b/docs/posts/page/3/index.html index 0eb177fbc..c164731f4 100644 --- a/docs/posts/page/3/index.html +++ b/docs/posts/page/3/index.html @@ -10,7 +10,7 @@ - + @@ -169,7 +169,7 @@
  • Last week Altmetric responded about the item that had a lower score than than its DOI
  • diff --git a/docs/posts/page/4/index.html b/docs/posts/page/4/index.html index e4eeec4fa..d7a1b12d9 100644 --- a/docs/posts/page/4/index.html +++ b/docs/posts/page/4/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/5/index.html b/docs/posts/page/5/index.html index 8a7961876..a7e4bc137 100644 --- a/docs/posts/page/5/index.html +++ b/docs/posts/page/5/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/6/index.html b/docs/posts/page/6/index.html index 9e404a263..0ff579442 100644 --- a/docs/posts/page/6/index.html +++ b/docs/posts/page/6/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/7/index.html b/docs/posts/page/7/index.html index 8c1478419..561d5d497 100644 --- a/docs/posts/page/7/index.html +++ b/docs/posts/page/7/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/posts/page/8/index.html b/docs/posts/page/8/index.html index 277e09527..edfe8357c 100644 --- a/docs/posts/page/8/index.html +++ b/docs/posts/page/8/index.html @@ -10,7 +10,7 @@ - + diff --git a/docs/sitemap.xml b/docs/sitemap.xml index dca707ed2..0577451fc 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -3,19 +3,19 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"> https://alanorth.github.io/cgspace-notes/categories/ - 2021-09-17T15:03:28+03:00 + 2021-09-20T15:47:34+03:00 https://alanorth.github.io/cgspace-notes/ - 2021-09-17T15:03:28+03:00 + 2021-09-20T15:47:34+03:00 https://alanorth.github.io/cgspace-notes/categories/notes/ - 2021-09-17T15:03:28+03:00 + 2021-09-20T15:47:34+03:00 https://alanorth.github.io/cgspace-notes/posts/ - 2021-09-17T15:03:28+03:00 + 2021-09-20T15:47:34+03:00 https://alanorth.github.io/cgspace-notes/2021-09/ - 2021-09-17T15:03:28+03:00 + 2021-09-19T15:42:23+03:00 https://alanorth.github.io/cgspace-notes/2021-08/ 2021-09-02T17:06:28+03:00 @@ -87,7 +87,7 @@ 2020-03-04T18:02:54+02:00 https://alanorth.github.io/cgspace-notes/2020-01/ - 2020-03-12T12:58:21+02:00 + 2021-09-20T15:47:34+03:00 https://alanorth.github.io/cgspace-notes/2019-12/ 2019-12-30T14:28:15+02:00