2024-01-05 13:45:46 +01:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1, shrink-to-fit=no" >
< meta property = "og:title" content = "January, 2024" / >
< meta property = "og:description" content = "2024-01-02
Work on preparation of new server for DSpace 7 migration
I’ m not quite sure what we need to do for the Handle server
For now I just ran the dspace make-handle-config script and diffed it with the one from DSpace 6
I sent the bundle to the Handle admins to make sure it’ s OK before we do the migration
Continue testing and debugging the cgspace-java-helpers on DSpace 7
Work on IFPRI ISNAR archive cleanup
" />
< meta property = "og:type" content = "article" / >
< meta property = "og:url" content = "https://alanorth.github.io/cgspace-notes/2024-01/" / >
< meta property = "article:published_time" content = "2024-01-02T10:08:00+03:00" / >
2024-01-07 20:18:43 +01:00
< meta property = "article:modified_time" content = "2024-01-07T20:43:02+03:00" / >
2024-01-05 13:45:46 +01:00
< meta name = "twitter:card" content = "summary" / >
< meta name = "twitter:title" content = "January, 2024" / >
< meta name = "twitter:description" content = "2024-01-02
Work on preparation of new server for DSpace 7 migration
I’ m not quite sure what we need to do for the Handle server
For now I just ran the dspace make-handle-config script and diffed it with the one from DSpace 6
I sent the bundle to the Handle admins to make sure it’ s OK before we do the migration
Continue testing and debugging the cgspace-java-helpers on DSpace 7
Work on IFPRI ISNAR archive cleanup
"/>
2024-01-07 18:43:02 +01:00
< meta name = "generator" content = "Hugo 0.121.2" >
2024-01-05 13:45:46 +01:00
< script type = "application/ld+json" >
{
"@context": "http://schema.org",
"@type": "BlogPosting",
"headline": "January, 2024",
"url": "https://alanorth.github.io/cgspace-notes/2024-01/",
2024-01-07 20:18:43 +01:00
"wordCount": "571",
2024-01-05 13:45:46 +01:00
"datePublished": "2024-01-02T10:08:00+03:00",
2024-01-07 20:18:43 +01:00
"dateModified": "2024-01-07T20:43:02+03:00",
2024-01-05 13:45:46 +01:00
"author": {
"@type": "Person",
"name": "Alan Orth"
},
"keywords": "Notes"
}
< / script >
< link rel = "canonical" href = "https://alanorth.github.io/cgspace-notes/2024-01/" >
< title > January, 2024 | CGSpace Notes< / title >
<!-- combined, minified CSS -->
< link href = "https://alanorth.github.io/cgspace-notes/css/style.c6ba80bc50669557645abe05f86b73cc5af84408ed20f1551a267bc19ece8228.css" rel = "stylesheet" integrity = "sha256-xrqAvFBmlVdkWr4F+GtzzFr4RAjtIPFVGiZ7wZ7Ogig=" crossorigin = "anonymous" >
<!-- minified Font Awesome for SVG icons -->
< script defer src = "https://alanorth.github.io/cgspace-notes/js/fontawesome.min.f5072c55a0721857184db93a50561d7dc13975b4de2e19db7f81eb5f3fa57270.js" integrity = "sha256-9QcsVaByGFcYTbk6UFYdfcE5dbTeLhnbf4HrXz+lcnA=" crossorigin = "anonymous" > < / script >
<!-- RSS 2.0 feed -->
< / head >
< body >
< div class = "blog-masthead" >
< div class = "container" >
< nav class = "nav blog-nav" >
< a class = "nav-link " href = "https://alanorth.github.io/cgspace-notes/" > Home< / a >
< / nav >
< / div >
< / div >
< header class = "blog-header" >
< div class = "container" >
< h1 class = "blog-title" dir = "auto" > < a href = "https://alanorth.github.io/cgspace-notes/" rel = "home" > CGSpace Notes< / a > < / h1 >
< p class = "lead blog-description" dir = "auto" > Documenting day-to-day work on the < a href = "https://cgspace.cgiar.org" > CGSpace< / a > repository.< / p >
< / div >
< / header >
< div class = "container" >
< div class = "row" >
< div class = "col-sm-8 blog-main" >
< article class = "blog-post" >
< header >
< h2 class = "blog-post-title" dir = "auto" > < a href = "https://alanorth.github.io/cgspace-notes/2024-01/" > January, 2024< / a > < / h2 >
< p class = "blog-post-meta" >
< time datetime = "2024-01-02T10:08:00+03:00" > Tue Jan 02, 2024< / time >
in
< span class = "fas fa-folder" aria-hidden = "true" > < / span > < a href = "/categories/notes/" rel = "category tag" > Notes< / a >
< / p >
< / header >
< h2 id = "2024-01-02" > 2024-01-02< / h2 >
< ul >
< li > Work on preparation of new server for DSpace 7 migration
< ul >
< li > I’ m not quite sure what we need to do for the Handle server< / li >
< li > For now I just ran the < code > dspace make-handle-config< / code > script and diffed it with the one from DSpace 6< / li >
< li > I sent the bundle to the Handle admins to make sure it’ s OK before we do the migration< / li >
< / ul >
< / li >
< li > Continue testing and debugging the cgspace-java-helpers on DSpace 7< / li >
< li > Work on IFPRI ISNAR archive cleanup< / li >
< / ul >
< h2 id = "2024-01-03" > 2024-01-03< / h2 >
< ul >
< li > I haven’ t heard from the Handle admins so I’ m preparing a backup solution using nginx streams< / li >
< li > This seems to work in my simple tests (this must be outside the < code > http {}< / code > block):< / li >
< / ul >
< pre tabindex = "0" > < code > stream {
upstream handle_tcp_9000 {
server 188.34.177.10:9000;
}
server {
listen 9000;
proxy_connect_timeout 1s;
proxy_timeout 3s;
proxy_pass handle_tcp_9000;
}
}
< / code > < / pre > < ul >
< li > Here I forwarded a test TCP port 9000 from one server to another and was able to retrieve a test HTML that was running on the target
< ul >
< li > I will have to do TCP and UDP on port 2641, and TCP/HTTP on port 8000.< / li >
< / ul >
< / li >
< li > I did some more minor work on the IFPRI ISNAR archive
< ul >
< li > I got some PDFs from the UMN AgEcon search and fixed some metadata< / li >
< li > Then I did some duplicate checking and found five items already on CGSpace< / li >
< / ul >
< / li >
< / ul >
< h2 id = "2024-01-04" > 2024-01-04< / h2 >
< ul >
< li > Upload 692 items for the ISNAR archive to CGSpace: < a href = "https://cgspace.cgiar.org/handle/10568/136192" > https://cgspace.cgiar.org/handle/10568/136192< / a > < / li >
< li > Help Peter proof and upload 252 items from the 2023 Gender conference to CGSpace< / li >
< li > Meeting with IFPRI to discuss their migration to CGSpace
< ul >
< li > We agreed to add two new fields, one for IFPRI project and one for IFPRI publication ranking< / li >
< li > Most likely we will use < code > cg.identifier.project< / code > as a general field and consolidate other project fields there< / li >
< li > Not sure which field to use for the publication rank… < / li >
< / ul >
< / li >
< / ul >
< h2 id = "2024-01-05" > 2024-01-05< / h2 >
< ul >
< li > Proof and upload 51 items in bulk for IFPRI< / li >
2024-01-06 15:46:07 +01:00
< li > I did a big cleanup of user groups in anticipation of complaints about slow workflow tasks etc in DSpace 7
< ul >
< li > I removed ILRI editors from all the dozens of CCAFS community and collection groups, and I should do the same for other CRPs since they are closed for two years now< / li >
< / ul >
< / li >
< / ul >
< h2 id = "2024-01-06" > 2024-01-06< / h2 >
< ul >
< li > Migrate CGSpace to DSpace 7< / li >
2024-01-05 13:45:46 +01:00
< / ul >
2024-01-07 18:43:02 +01:00
< h2 id = "2024-01-07" > 2024-01-07< / h2 >
< ul >
< li > High load on the server and UptimeRobot saying the frontend is flapping
< ul >
< li > I noticed tons of logs from pm2 in the systemd journal, so I disabled those in the systemd unit because they are available from pm2’ s log directory anyway< / li >
< li > I also noticed the same for Solr, so I disabled stdout for that systemd unit as well< / li >
< / ul >
< / li >
< li > I spent a lot of time bringing back the nginx rate limits we used in DSpace 6 and it seems to have helped< / li >
2024-01-07 20:18:43 +01:00
< li > I see some client doing weird HEAD requests to search pages:< / li >
2024-01-07 18:43:02 +01:00
< / ul >
2024-01-07 20:18:43 +01:00
< pre tabindex = "0" > < code > 47.76.35.19 - - [07/Jan/2024:00:00:02 +0100] " HEAD /search/?f.accessRights=Open+Access%2Cequals& f.actionArea=Resilient+Agrifood+Systems%2Cequals& f.author=Burkart%2C+Stefan%2Cequals& f.country=Kenya%2Cequals& f.impactArea=Climate+adaptation+and+mitigation%2Cequals& f.itemtype=Brief%2Cequals& f.publisher=CGIAR+System+Organization%2Cequals& f.region=Asia%2Cequals& f.sdg=SDG+12+-+Responsible+consumption+and+production%2Cequals& f.sponsorship=CGIAR+Trust+Fund%2Cequals& f.subject=environmental+factors%2Cequals& spc.page=1 HTTP/1.1" 499 0 " -" " Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.2504.63 Safari/537.36"
< / code > < / pre > < ul >
< li > I will add their network blocks (AS45102) and regenerate my list of bot networks:< / 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 > $ wget https://asn.ipinfo.app/api/text/list/AS16276 < span style = "color:#ae81ff" > \
< / span > < / span > < / span > < span style = "display:flex;" > < span > < span style = "color:#ae81ff" > < / span > https://asn.ipinfo.app/api/text/list/AS23576 \
< / span > < / span > < span style = "display:flex;" > < span > https://asn.ipinfo.app/api/text/list/AS24940 \
< / span > < / span > < span style = "display:flex;" > < span > https://asn.ipinfo.app/api/text/list/AS13238 \
< / span > < / span > < span style = "display:flex;" > < span > https://asn.ipinfo.app/api/text/list/AS14061 \
< / span > < / span > < span style = "display:flex;" > < span > https://asn.ipinfo.app/api/text/list/AS12876 \
< / span > < / span > < span style = "display:flex;" > < span > https://asn.ipinfo.app/api/text/list/AS55286 \
< / span > < / span > < span style = "display:flex;" > < span > https://asn.ipinfo.app/api/text/list/AS203020 \
< / span > < / span > < span style = "display:flex;" > < span > https://asn.ipinfo.app/api/text/list/AS204287 \
< / span > < / span > < span style = "display:flex;" > < span > https://asn.ipinfo.app/api/text/list/AS50245 \
< / span > < / span > < span style = "display:flex;" > < span > https://asn.ipinfo.app/api/text/list/AS6939 \
< / span > < / span > < span style = "display:flex;" > < span > https://asn.ipinfo.app/api/text/list/AS45102 \
< / span > < / span > < span style = "display:flex;" > < span > https://asn.ipinfo.app/api/text/list/AS21859
< / span > < / span > < span style = "display:flex;" > < span > $ cat AS* | sort | uniq | wc -l
< / span > < / span > < span style = "display:flex;" > < span > 4897
< / span > < / span > < span style = "display:flex;" > < span > $ cat AS* | ~/go/bin/mapcidr -a > /tmp/networks.txt
< / span > < / span > < span style = "display:flex;" > < span > $ wc -l /tmp/networks.txt
< / span > < / span > < span style = "display:flex;" > < span > 2017 /tmp/networks.txt
< / span > < / span > < / code > < / pre > < / div > < ul >
< li > I’ m surprised to see the number of networks reduced from my current ones… hmmm.< / li >
< li > I will also update my list of Bing networks:< / 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 > $ ./ilri/bing-networks-to-ips.sh
< / span > < / span > < span style = "display:flex;" > < span > $ ~/go/bin/mapcidr -a < /tmp/bing-ips.txt > /tmp/bing-networks.txt
< / span > < / span > < span style = "display:flex;" > < span > $ wc -l /tmp/bing-networks.txt
< / span > < / span > < span style = "display:flex;" > < span > 250 /tmp/bing-networks.txt
< / span > < / span > < / code > < / pre > < / div > <!-- raw HTML omitted -->
2024-01-05 13:45:46 +01:00
< / article >
< / div > <!-- /.blog - main -->
< aside class = "col-sm-3 ml-auto blog-sidebar" >
< section class = "sidebar-module" >
< h4 > Recent Posts< / h4 >
< ol class = "list-unstyled" >
< li > < a href = "/cgspace-notes/2024-01/" > January, 2024< / a > < / li >
< li > < a href = "/cgspace-notes/2023-12/" > December, 2023< / a > < / li >
< li > < a href = "/cgspace-notes/2023-11/" > November, 2023< / a > < / li >
< li > < a href = "/cgspace-notes/2023-10/" > October, 2023< / a > < / li >
< li > < a href = "/cgspace-notes/2023-09/" > September, 2023< / a > < / li >
< / ol >
< / section >
< section class = "sidebar-module" >
< h4 > Links< / h4 >
< ol class = "list-unstyled" >
< li > < a href = "https://cgspace.cgiar.org" > CGSpace< / a > < / li >
< li > < a href = "https://dspacetest.cgiar.org" > DSpace Test< / a > < / li >
< li > < a href = "https://github.com/ilri/DSpace" > CGSpace @ GitHub< / a > < / li >
< / ol >
< / section >
< / aside >
< / div > <!-- /.row -->
< / div > <!-- /.container -->
< footer class = "blog-footer" >
< p dir = "auto" >
Blog template created by < a href = "https://twitter.com/mdo" > @mdo< / a > , ported to Hugo by < a href = 'https://twitter.com/mralanorth' > @mralanorth< / a > .
< / p >
< p >
< a href = "#" > Back to top< / a >
< / p >
< / footer >
< / body >
< / html >