mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2025-01-27 05:49:12 +01:00
Add notes for 2019-05-05
This commit is contained in:
@ -14,12 +14,13 @@ Play with upgrading Mirage 2 dependencies in bower.json because most are several
|
||||
Bootstrap is at 3.3.0 but upstream is at 3.3.7, and upgrading to anything beyond 3.3.1 breaks glyphicons and probably more
|
||||
bower stuff is a dead end, waste of time, too many issues
|
||||
Anything after Bootstrap 3.3.1 makes glyphicons disappear (HTTP 404 trying to access from incorrect path of fonts)
|
||||
Start working on DSpace 5.1 → 5.5 port:
|
||||
|
||||
Start working on DSpace 5.1 → 5.5 port:
|
||||
|
||||
$ git checkout -b 55new 5_x-prod
|
||||
$ git reset --hard ilri/5_x-prod
|
||||
$ git rebase -i dspace-5.5
|
||||
|
||||
" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2016-08/" />
|
||||
@ -36,14 +37,15 @@ Play with upgrading Mirage 2 dependencies in bower.json because most are several
|
||||
Bootstrap is at 3.3.0 but upstream is at 3.3.7, and upgrading to anything beyond 3.3.1 breaks glyphicons and probably more
|
||||
bower stuff is a dead end, waste of time, too many issues
|
||||
Anything after Bootstrap 3.3.1 makes glyphicons disappear (HTTP 404 trying to access from incorrect path of fonts)
|
||||
Start working on DSpace 5.1 → 5.5 port:
|
||||
|
||||
Start working on DSpace 5.1 → 5.5 port:
|
||||
|
||||
$ git checkout -b 55new 5_x-prod
|
||||
$ git reset --hard ilri/5_x-prod
|
||||
$ git rebase -i dspace-5.5
|
||||
|
||||
"/>
|
||||
<meta name="generator" content="Hugo 0.55.3" />
|
||||
<meta name="generator" content="Hugo 0.55.5" />
|
||||
|
||||
|
||||
|
||||
@ -130,13 +132,14 @@ $ git rebase -i dspace-5.5
|
||||
<li>Bootstrap is at 3.3.0 but upstream is at 3.3.7, and upgrading to anything beyond 3.3.1 breaks glyphicons and probably more</li>
|
||||
<li>bower stuff is a dead end, waste of time, too many issues</li>
|
||||
<li>Anything after Bootstrap 3.3.1 makes glyphicons disappear (HTTP 404 trying to access from incorrect path of <code>fonts</code>)</li>
|
||||
<li>Start working on DSpace 5.1 → 5.5 port:</li>
|
||||
</ul>
|
||||
|
||||
<li><p>Start working on DSpace 5.1 → 5.5 port:</p>
|
||||
|
||||
<pre><code>$ git checkout -b 55new 5_x-prod
|
||||
$ git reset --hard ilri/5_x-prod
|
||||
$ git rebase -i dspace-5.5
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
<li>Lots of conflicts that don’t make sense (ie, shouldn’t conflict!)</li>
|
||||
@ -168,11 +171,12 @@ $ git rebase -i dspace-5.5
|
||||
|
||||
<ul>
|
||||
<li>Fix item display incorrectly displaying Species when Breeds were present (<a href="https://github.com/ilri/DSpace/pull/260">#260</a>)</li>
|
||||
<li>Experiment with fixing more authors, like Delia Grace:</li>
|
||||
</ul>
|
||||
|
||||
<li><p>Experiment with fixing more authors, like Delia Grace:</p>
|
||||
|
||||
<pre><code>dspacetest=# update metadatavalue set authority='0b4fcbc1-d930-4319-9b4d-ea1553cca70b', confidence=600 where metadata_field_id=3 and text_value='Grace, D.';
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-08-06">2016-08-06</h2>
|
||||
|
||||
@ -194,20 +198,18 @@ $ git rebase -i dspace-5.5
|
||||
<li>Ooh, and vanilla DSpace 5.5 works on Tomcat 8 with Java 8!</li>
|
||||
<li>Some notes about setting up Tomcat 8, since it’s new on this machine…</li>
|
||||
<li>Install latest Oracle Java 8 JDK</li>
|
||||
<li>Create <code>setenv.sh</code> in Tomcat 8 <code>libexec/bin</code> directory:
|
||||
<br /></li>
|
||||
</ul>
|
||||
|
||||
<li><p>Create <code>setenv.sh</code> in Tomcat 8 <code>libexec/bin</code> directory:</p>
|
||||
|
||||
<pre><code>CATALINA_OPTS="-Djava.awt.headless=true -Xms3072m -Xmx3072m -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -Dfile.encoding=UTF-8"
|
||||
CATALINA_OPTS="$CATALINA_OPTS -Djava.library.path=/opt/brew/Cellar/tomcat-native/1.2.8/lib"
|
||||
|
||||
JRE_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_102.jdk/Contents/Home
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
|
||||
<ul>
|
||||
<li>Edit Tomcat 8 <code>server.xml</code> to add regular HTTP listener for solr</li>
|
||||
<li>Symlink webapps:</li>
|
||||
</ul>
|
||||
<li><p>Edit Tomcat 8 <code>server.xml</code> to add regular HTTP listener for solr</p></li>
|
||||
|
||||
<li><p>Symlink webapps:</p>
|
||||
|
||||
<pre><code>$ rm -rf /opt/brew/Cellar/tomcat/8.5.4/libexec/webapps/ROOT
|
||||
$ ln -sv ~/dspace/webapps/xmlui /opt/brew/Cellar/tomcat/8.5.4/libexec/webapps/ROOT
|
||||
@ -215,7 +217,8 @@ $ ln -sv ~/dspace/webapps/oai /opt/brew/Cellar/tomcat/8.5.4/libexec/webapps/oai
|
||||
$ ln -sv ~/dspace/webapps/jspui /opt/brew/Cellar/tomcat/8.5.4/libexec/webapps/jspui
|
||||
$ ln -sv ~/dspace/webapps/rest /opt/brew/Cellar/tomcat/8.5.4/libexec/webapps/rest
|
||||
$ ln -sv ~/dspace/webapps/solr /opt/brew/Cellar/tomcat/8.5.4/libexec/webapps/solr
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-08-09">2016-08-09</h2>
|
||||
|
||||
@ -280,14 +283,13 @@ $ ln -sv ~/dspace/webapps/solr /opt/brew/Cellar/tomcat/8.5.4/libexec/webapps/sol
|
||||
|
||||
<ul>
|
||||
<li>Fix “CONGO,DR” country name in <code>input-forms.xml</code> (<a href="https://github.com/ilri/DSpace/pull/264">#264</a>)</li>
|
||||
<li>Also need to fix existing records using the incorrect form in the database:</li>
|
||||
</ul>
|
||||
|
||||
<li><p>Also need to fix existing records using the incorrect form in the database:</p>
|
||||
|
||||
<pre><code>dspace=# update metadatavalue set text_value='CONGO, DR' where resource_type_id=2 and metadata_field_id=228 and text_value='CONGO,DR';
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
|
||||
<ul>
|
||||
<li>I asked a question on the DSpace mailing list about updating “preferred” forms of author names from ORCID</li>
|
||||
<li><p>I asked a question on the DSpace mailing list about updating “preferred” forms of author names from ORCID</p></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-08-21">2016-08-21</h2>
|
||||
@ -303,8 +305,7 @@ $ ln -sv ~/dspace/webapps/solr /opt/brew/Cellar/tomcat/8.5.4/libexec/webapps/sol
|
||||
<h2 id="2016-08-22">2016-08-22</h2>
|
||||
|
||||
<ul>
|
||||
<li>Database migrations are fine on DSpace 5.1:</li>
|
||||
</ul>
|
||||
<li><p>Database migrations are fine on DSpace 5.1:</p>
|
||||
|
||||
<pre><code>$ ~/dspace/bin/dspace database info
|
||||
|
||||
@ -335,10 +336,9 @@ Database Driver: PostgreSQL Native Driver version PostgreSQL 9.1 JDBC4 (build 90
|
||||
| 5.1.2015.12.03 | Atmire CUA 4 migration | 2016-03-21 17:10:41 | Success |
|
||||
| 5.1.2015.12.03 | Atmire MQM migration | 2016-03-21 17:10:42 | Success |
|
||||
+----------------+----------------------------+---------------------+---------+
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
|
||||
<ul>
|
||||
<li>So I’m not sure why they have problems when we move to DSpace 5.5 (even the 5.1 migrations themselves show as “Missing”)</li>
|
||||
<li><p>So I’m not sure why they have problems when we move to DSpace 5.5 (even the 5.1 migrations themselves show as “Missing”)</p></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-08-23">2016-08-23</h2>
|
||||
@ -346,98 +346,92 @@ Database Driver: PostgreSQL Native Driver version PostgreSQL 9.1 JDBC4 (build 90
|
||||
<ul>
|
||||
<li>Help Paola from CCAFS with her thumbnails again</li>
|
||||
<li>Talk to Atmire about the DSpace 5.5 issue, and it seems to be caused by a bug in FlywayDB</li>
|
||||
<li>They said I should delete the Atmire migrations
|
||||
<br /></li>
|
||||
</ul>
|
||||
|
||||
<li><p>They said I should delete the Atmire migrations</p>
|
||||
|
||||
<pre><code>dspacetest=# delete from schema_version where description = 'Atmire CUA 4 migration' and version='5.1.2015.12.03.2';
|
||||
dspacetest=# delete from schema_version where description = 'Atmire MQM migration' and version='5.1.2015.12.03.3';
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
|
||||
<ul>
|
||||
<li>After that DSpace starts up by XMLUI now has unrelated issues that I need to solve!</li>
|
||||
</ul>
|
||||
<li><p>After that DSpace starts up by XMLUI now has unrelated issues that I need to solve!</p>
|
||||
|
||||
<pre><code>org.apache.avalon.framework.configuration.ConfigurationException: Type 'ThemeResourceReader' does not exist for 'map:read' at jndi:/localhost/themes/0_CGIAR/sitemap.xmap:136:77
|
||||
context:/jndi:/localhost/themes/0_CGIAR/sitemap.xmap - 136:77
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
|
||||
<ul>
|
||||
<li>Looks like we’re missing some stuff in the XMLUI module’s <code>sitemap.xmap</code>, as well as in each of our XMLUI themes</li>
|
||||
<li>Diff them with these to get the <code>ThemeResourceReader</code> changes:
|
||||
<li><p>Looks like we’re missing some stuff in the XMLUI module’s <code>sitemap.xmap</code>, as well as in each of our XMLUI themes</p></li>
|
||||
|
||||
<li><p>Diff them with these to get the <code>ThemeResourceReader</code> changes:</p>
|
||||
|
||||
<ul>
|
||||
<li><code>dspace-xmlui/src/main/webapp/sitemap.xmap</code></li>
|
||||
<li><code>dspace-xmlui-mirage2/src/main/webapp/sitemap.xmap</code></li>
|
||||
</ul></li>
|
||||
<li>Then we had some NullPointerException from the SolrLogger class, which is apparently part of Atmire’s CUA module</li>
|
||||
<li>I tried with a small version bump to CUA but it didn’t work (version <code>5.5-4.1.1-0</code>)</li>
|
||||
<li>Also, I started looking into huge pages to prepare for PostgreSQL 9.5, but it seems Linode’s kernels don’t enable them</li>
|
||||
|
||||
<li><p>Then we had some NullPointerException from the SolrLogger class, which is apparently part of Atmire’s CUA module</p></li>
|
||||
|
||||
<li><p>I tried with a small version bump to CUA but it didn’t work (version <code>5.5-4.1.1-0</code>)</p></li>
|
||||
|
||||
<li><p>Also, I started looking into huge pages to prepare for PostgreSQL 9.5, but it seems Linode’s kernels don’t enable them</p></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-08-24">2016-08-24</h2>
|
||||
|
||||
<ul>
|
||||
<li>Clean up and import 48 CCAFS records into DSpace Test</li>
|
||||
<li>SQL to get all journal titles from dc.source (55), since it’s apparently used for internal DSpace filename shit, but we moved all our journal titles there a few months ago:</li>
|
||||
</ul>
|
||||
|
||||
<li><p>SQL to get all journal titles from dc.source (55), since it’s apparently used for internal DSpace filename shit, but we moved all our journal titles there a few months ago:</p>
|
||||
|
||||
<pre><code>dspacetest=# select distinct text_value from metadatavalue where metadata_field_id=55 and text_value !~ '.*(\.pdf|\.png|\.PDF|\.Pdf|\.JPEG|\.jpg|\.JPG|\.jpeg|\.xls|\.rtf|\.docx?|\.potx|\.dotx|\.eqa|\.tiff|\.mp4|\.mp3|\.gif|\.zip|\.txt|\.pptx|\.indd|\.PNG|\.bmp|\.exe|org\.dspace\.app\.mediafilter).*';
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-08-25">2016-08-25</h2>
|
||||
|
||||
<ul>
|
||||
<li>Atmire suggested adding a missing bean to <code>dspace/config/spring/api/atmire-cua.xml</code> but it doesn’t help:</li>
|
||||
</ul>
|
||||
<li><p>Atmire suggested adding a missing bean to <code>dspace/config/spring/api/atmire-cua.xml</code> but it doesn’t help:</p>
|
||||
|
||||
<pre><code>...
|
||||
Error creating bean with name 'MetadataStorageInfoService'
|
||||
...
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
|
||||
<ul>
|
||||
<li>Atmire sent an updated version of <code>dspace/config/spring/api/atmire-cua.xml</code> and now XMLUI starts but gives a null pointer exception:</li>
|
||||
</ul>
|
||||
<li><p>Atmire sent an updated version of <code>dspace/config/spring/api/atmire-cua.xml</code> and now XMLUI starts but gives a null pointer exception:</p>
|
||||
|
||||
<pre><code>Java stacktrace: java.lang.NullPointerException
|
||||
at org.dspace.app.xmlui.aspect.statistics.Navigation.addOptions(Navigation.java:129)
|
||||
at org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:228)
|
||||
at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:606)
|
||||
at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
|
||||
at com.sun.proxy.$Proxy103.startElement(Unknown Source)
|
||||
at org.apache.cocoon.environment.internal.EnvironmentChanger.startElement(EnvironmentStack.java:140)
|
||||
at org.apache.cocoon.environment.internal.EnvironmentChanger.startElement(EnvironmentStack.java:140)
|
||||
at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94)
|
||||
at org.dspace.app.xmlui.aspect.statistics.Navigation.addOptions(Navigation.java:129)
|
||||
at org.dspace.app.xmlui.wing.AbstractWingTransformer.startElement(AbstractWingTransformer.java:228)
|
||||
at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:606)
|
||||
at org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:71)
|
||||
at com.sun.proxy.$Proxy103.startElement(Unknown Source)
|
||||
at org.apache.cocoon.environment.internal.EnvironmentChanger.startElement(EnvironmentStack.java:140)
|
||||
at org.apache.cocoon.environment.internal.EnvironmentChanger.startElement(EnvironmentStack.java:140)
|
||||
at org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:94)
|
||||
...
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
|
||||
<ul>
|
||||
<li>Import the 47 CCAFS records to CGSpace, creating the SimpleArchiveFormat bundles and importing like:</li>
|
||||
</ul>
|
||||
<li><p>Import the 47 CCAFS records to CGSpace, creating the SimpleArchiveFormat bundles and importing like:</p>
|
||||
|
||||
<pre><code>$ ./safbuilder.sh -c /tmp/Thumbnails\ to\ Upload\ to\ CGSpace/3546.csv
|
||||
$ JAVA_OPTS="-Dfile.encoding=UTF-8 -Xmx512m" /home/cgspace.cgiar.org/bin/dspace import -a -e aorth@mjanja.ch -c 10568/3546 -s /tmp/Thumbnails\ to\ Upload\ to\ CGSpace/SimpleArchiveFormat -m 3546.map
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
|
||||
<ul>
|
||||
<li>Finally got DSpace 5.5 working with the Atmire modules after a few rounds of back and forth with Atmire devs</li>
|
||||
<li><p>Finally got DSpace 5.5 working with the Atmire modules after a few rounds of back and forth with Atmire devs</p></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-08-26">2016-08-26</h2>
|
||||
|
||||
<ul>
|
||||
<li>CGSpace had issues tonight, not entirely crashing, but becoming unresponsive</li>
|
||||
<li>The dspace log had this:</li>
|
||||
</ul>
|
||||
|
||||
<li><p>The dspace log had this:</p>
|
||||
|
||||
<pre><code>2016-08-26 20:48:05,040 ERROR org.dspace.storage.rdbms.DatabaseManager @ SQL connection Error - org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool error Timeout waiting for idle object
|
||||
</code></pre>
|
||||
</code></pre></li>
|
||||
|
||||
<ul>
|
||||
<li>Related to /rest no doubt</li>
|
||||
<li><p>Related to /rest no doubt</p></li>
|
||||
</ul>
|
||||
|
||||
<h2 id="2016-08-27">2016-08-27</h2>
|
||||
|
Reference in New Issue
Block a user