mirror of
https://github.com/alanorth/cgspace-notes.git
synced 2024-11-25 16:08:19 +01:00
Add notes for 2020-10-06
This commit is contained in:
parent
bda0324ed9
commit
0a68ed0066
@ -9,7 +9,127 @@ categories: ["Notes"]
|
||||
|
||||
- Add tests for the new `/items` POST handlers to the DSpace 6.x branch of my [dspace-statistics-api](https://github.com/ilri/dspace-statistics-api/tree/v6_x)
|
||||
- It took a bit of extra work because I had to learn how to mock the responses for when Solr is not available
|
||||
- Tag and release version 1.3.0 on GitHub: https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0
|
||||
- Trying to test the changes Atmire sent last week but I had to re-create my local database from a recent CGSpace dump
|
||||
- During the FlywayDB migration I got an error:
|
||||
|
||||
<!--more-->
|
||||
|
||||
```
|
||||
2020-10-06 21:36:04,138 ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper @ Batch entry 0 update public.bitstreamformatregistry set description='Electronic publishing', internal='FALSE', mimetype='application/epub+zip', short_description='EPUB', support_level=1 where bitstream_format_id=78 was aborted: ERROR: duplicate key value violates unique constraint "bitstreamformatregistry_short_description_key"
|
||||
Detail: Key (short_description)=(EPUB) already exists. Call getNextException to see other errors in the batch.
|
||||
2020-10-06 21:36:04,138 WARN org.hibernate.engine.jdbc.spi.SqlExceptionHelper @ SQL Error: 0, SQLState: 23505
|
||||
2020-10-06 21:36:04,138 ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper @ ERROR: duplicate key value violates unique constraint "bitstreamformatregistry_short_description_key"
|
||||
Detail: Key (short_description)=(EPUB) already exists.
|
||||
2020-10-06 21:36:04,142 ERROR org.hibernate.engine.jdbc.batch.internal.BatchingBatch @ HHH000315: Exception executing batch [could not execute batch]
|
||||
2020-10-06 21:36:04,143 ERROR org.dspace.storage.rdbms.DatabaseRegistryUpdater @ Error attempting to update Bitstream Format and/or Metadata Registries
|
||||
org.hibernate.exception.ConstraintViolationException: could not execute batch
|
||||
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:129)
|
||||
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
|
||||
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:124)
|
||||
at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:122)
|
||||
at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:101)
|
||||
at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:161)
|
||||
at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.executeBatch(JdbcCoordinatorImpl.java:207)
|
||||
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:390)
|
||||
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:304)
|
||||
at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:349)
|
||||
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)
|
||||
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1195)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:352)
|
||||
at com.sun.proxy.$Proxy162.flush(Unknown Source)
|
||||
at org.dspace.core.HibernateDBConnection.commit(HibernateDBConnection.java:83)
|
||||
at org.dspace.core.Context.commit(Context.java:435)
|
||||
at org.dspace.core.Context.complete(Context.java:380)
|
||||
at org.dspace.administer.MetadataImporter.loadRegistry(MetadataImporter.java:164)
|
||||
at org.dspace.storage.rdbms.DatabaseRegistryUpdater.updateRegistries(DatabaseRegistryUpdater.java:72)
|
||||
at org.dspace.storage.rdbms.DatabaseRegistryUpdater.afterMigrate(DatabaseRegistryUpdater.java:121)
|
||||
at org.flywaydb.core.internal.command.DbMigrate$3.doInTransaction(DbMigrate.java:250)
|
||||
at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72)
|
||||
at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:246)
|
||||
at org.flywaydb.core.Flyway$1.execute(Flyway.java:959)
|
||||
at org.flywaydb.core.Flyway$1.execute(Flyway.java:917)
|
||||
at org.flywaydb.core.Flyway.execute(Flyway.java:1373)
|
||||
at org.flywaydb.core.Flyway.migrate(Flyway.java:917)
|
||||
at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:663)
|
||||
at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:575)
|
||||
at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:551)
|
||||
at org.dspace.core.Context.<clinit>(Context.java:103)
|
||||
at org.dspace.app.util.AbstractDSpaceWebapp.register(AbstractDSpaceWebapp.java:74)
|
||||
at org.dspace.app.util.DSpaceWebappListener.contextInitialized(DSpaceWebappListener.java:31)
|
||||
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5197)
|
||||
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5720)
|
||||
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
|
||||
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1016)
|
||||
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:992)
|
||||
```
|
||||
|
||||
- I checked the database migrations with `dspace database info` and they were all OK
|
||||
- Then I restarted the Tomcat again and it started up OK...
|
||||
- There were two issues I had reported to Atmire last month:
|
||||
- Importing items from the command line throws a `NullPointerException` from `com.atmire.dspace.cua.CUASolrLoggerServiceImpl` for every item, but the item still gets imported
|
||||
- No results for author name in Listing and Reports, despite there being hits in Discovery search
|
||||
- To test the first one I imported a very simple CSV file with one item with minimal data
|
||||
- There is a new error now (but the item does get imported):
|
||||
|
||||
```
|
||||
$ dspace metadata-import -f /tmp/2020-10-06-import-test.csv -e aorth@mjanja.ch
|
||||
Loading @mire database changes for module MQM
|
||||
Changes have been processed
|
||||
-----------------------------------------------------------
|
||||
New item:
|
||||
+ New owning collection (10568/3): ILRI articles in journals
|
||||
+ Add (dc.contributor.author): Orth, Alan
|
||||
+ Add (dc.date.issued): 2020-09-01
|
||||
+ Add (dc.title): Testing CUA import NPE
|
||||
|
||||
1 item(s) will be changed
|
||||
|
||||
Do you want to make these changes? [y/n] y
|
||||
-----------------------------------------------------------
|
||||
New item: aff5e78d-87c9-438d-94f8-1050b649961c (10568/108548)
|
||||
+ New owning collection (10568/3): ILRI articles in journals
|
||||
+ Added (dc.contributor.author): Orth, Alan
|
||||
+ Added (dc.date.issued): 2020-09-01
|
||||
+ Added (dc.title): Testing CUA import NPE
|
||||
Tue Oct 06 22:06:14 CEST 2020 | Query:containerItem:aff5e78d-87c9-438d-94f8-1050b649961c
|
||||
Error while updating
|
||||
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected mime type application/octet-stream but got text/html. <!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> The requested resource [/solr/update] is not available</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Apache Tomcat/7.0.104</h3></body></html>
|
||||
at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:512)
|
||||
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
|
||||
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
|
||||
at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
|
||||
at org.apache.solr.client.solrj.SolrServer.commit(SolrServer.java:168)
|
||||
at com.atmire.dspace.cua.CUASolrLoggerServiceImpl$5.visit(SourceFile:1131)
|
||||
at com.atmire.dspace.cua.CUASolrLoggerServiceImpl.visitEachStatisticShard(SourceFile:212)
|
||||
at com.atmire.dspace.cua.CUASolrLoggerServiceImpl.update(SourceFile:1104)
|
||||
at com.atmire.dspace.cua.CUASolrLoggerServiceImpl.update(SourceFile:1093)
|
||||
at org.dspace.statistics.StatisticsLoggingConsumer.consume(SourceFile:104)
|
||||
at org.dspace.event.BasicDispatcher.consume(BasicDispatcher.java:177)
|
||||
at org.dspace.event.BasicDispatcher.dispatch(BasicDispatcher.java:123)
|
||||
at org.dspace.core.Context.dispatchEvents(Context.java:455)
|
||||
at org.dspace.core.Context.commit(Context.java:424)
|
||||
at org.dspace.core.Context.complete(Context.java:380)
|
||||
at org.dspace.app.bulkedit.MetadataImport.main(MetadataImport.java:1399)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
|
||||
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
|
||||
```
|
||||
|
||||
- Also, I tested Listings and Reports and there are still no hits for "Orth, Alan" as a contributor, despite there being dozens of items in the repository and the Solr query generated by Listings and Reports actually returning hits:
|
||||
|
||||
```
|
||||
2020-10-06 22:23:44,116 INFO org.apache.solr.core.SolrCore @ [search] webapp=/solr path=/select params={q=*:*&fl=handle,search.resourcetype,search.resourceid,search.uniqueid&start=0&fq=NOT(withdrawn:true)&fq=NOT(discoverable:false)&fq=search.resourcetype:2&fq=author_keyword:Orth,\+A.+OR+author_keyword:Orth,\+Alan&fq=dateIssued.year:[2013+TO+2021]&rows=500&wt=javabin&version=2} hits=18 status=0 QTime=10
|
||||
```
|
||||
|
||||
- Solr returns `hits=18` for the L&R query, but there are no result shown in the L&R UI
|
||||
- I sent all this feedback to Atmire...
|
||||
|
||||
<!-- vim: set sw=2 ts=2: -->
|
||||
|
@ -11,13 +11,19 @@
|
||||
Add tests for the new /items POST handlers to the DSpace 6.x branch of my dspace-statistics-api
|
||||
|
||||
It took a bit of extra work because I had to learn how to mock the responses for when Solr is not available
|
||||
Tag and release version 1.3.0 on GitHub: https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0
|
||||
|
||||
|
||||
Trying to test the changes Atmire sent last week but I had to re-create my local database from a recent CGSpace dump
|
||||
|
||||
During the FlywayDB migration I got an error:
|
||||
|
||||
|
||||
" />
|
||||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="https://alanorth.github.io/cgspace-notes/2020-10/" />
|
||||
<meta property="article:published_time" content="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="article:modified_time" content="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="article:modified_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="October, 2020"/>
|
||||
@ -26,6 +32,12 @@ It took a bit of extra work because I had to learn how to mock the responses for
|
||||
Add tests for the new /items POST handlers to the DSpace 6.x branch of my dspace-statistics-api
|
||||
|
||||
It took a bit of extra work because I had to learn how to mock the responses for when Solr is not available
|
||||
Tag and release version 1.3.0 on GitHub: https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0
|
||||
|
||||
|
||||
Trying to test the changes Atmire sent last week but I had to re-create my local database from a recent CGSpace dump
|
||||
|
||||
During the FlywayDB migration I got an error:
|
||||
|
||||
|
||||
"/>
|
||||
@ -39,9 +51,9 @@ It took a bit of extra work because I had to learn how to mock the responses for
|
||||
"@type": "BlogPosting",
|
||||
"headline": "October, 2020",
|
||||
"url": "https://alanorth.github.io/cgspace-notes/2020-10/",
|
||||
"wordCount": "40",
|
||||
"wordCount": "666",
|
||||
"datePublished": "2020-10-06T16:55:54+03:00",
|
||||
"dateModified": "2020-10-06T16:55:54+03:00",
|
||||
"dateModified": "2020-10-06T16:59:31+03:00",
|
||||
"author": {
|
||||
"@type": "Person",
|
||||
"name": "Alan Orth"
|
||||
@ -120,8 +132,134 @@ It took a bit of extra work because I had to learn how to mock the responses for
|
||||
<li>Add tests for the new <code>/items</code> POST handlers to the DSpace 6.x branch of my <a href="https://github.com/ilri/dspace-statistics-api/tree/v6_x">dspace-statistics-api</a>
|
||||
<ul>
|
||||
<li>It took a bit of extra work because I had to learn how to mock the responses for when Solr is not available</li>
|
||||
<li>Tag and release version 1.3.0 on GitHub: <a href="https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0">https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Trying to test the changes Atmire sent last week but I had to re-create my local database from a recent CGSpace dump
|
||||
<ul>
|
||||
<li>During the FlywayDB migration I got an error:</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<pre><code>2020-10-06 21:36:04,138 ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper @ Batch entry 0 update public.bitstreamformatregistry set description='Electronic publishing', internal='FALSE', mimetype='application/epub+zip', short_description='EPUB', support_level=1 where bitstream_format_id=78 was aborted: ERROR: duplicate key value violates unique constraint "bitstreamformatregistry_short_description_key"
|
||||
Detail: Key (short_description)=(EPUB) already exists. Call getNextException to see other errors in the batch.
|
||||
2020-10-06 21:36:04,138 WARN org.hibernate.engine.jdbc.spi.SqlExceptionHelper @ SQL Error: 0, SQLState: 23505
|
||||
2020-10-06 21:36:04,138 ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper @ ERROR: duplicate key value violates unique constraint "bitstreamformatregistry_short_description_key"
|
||||
Detail: Key (short_description)=(EPUB) already exists.
|
||||
2020-10-06 21:36:04,142 ERROR org.hibernate.engine.jdbc.batch.internal.BatchingBatch @ HHH000315: Exception executing batch [could not execute batch]
|
||||
2020-10-06 21:36:04,143 ERROR org.dspace.storage.rdbms.DatabaseRegistryUpdater @ Error attempting to update Bitstream Format and/or Metadata Registries
|
||||
org.hibernate.exception.ConstraintViolationException: could not execute batch
|
||||
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:129)
|
||||
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
|
||||
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:124)
|
||||
at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.performExecution(BatchingBatch.java:122)
|
||||
at org.hibernate.engine.jdbc.batch.internal.BatchingBatch.doExecuteBatch(BatchingBatch.java:101)
|
||||
at org.hibernate.engine.jdbc.batch.internal.AbstractBatchImpl.execute(AbstractBatchImpl.java:161)
|
||||
at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.executeBatch(JdbcCoordinatorImpl.java:207)
|
||||
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:390)
|
||||
at org.hibernate.engine.spi.ActionQueue.executeActions(ActionQueue.java:304)
|
||||
at org.hibernate.event.internal.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:349)
|
||||
at org.hibernate.event.internal.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:56)
|
||||
at org.hibernate.internal.SessionImpl.flush(SessionImpl.java:1195)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:352)
|
||||
at com.sun.proxy.$Proxy162.flush(Unknown Source)
|
||||
at org.dspace.core.HibernateDBConnection.commit(HibernateDBConnection.java:83)
|
||||
at org.dspace.core.Context.commit(Context.java:435)
|
||||
at org.dspace.core.Context.complete(Context.java:380)
|
||||
at org.dspace.administer.MetadataImporter.loadRegistry(MetadataImporter.java:164)
|
||||
at org.dspace.storage.rdbms.DatabaseRegistryUpdater.updateRegistries(DatabaseRegistryUpdater.java:72)
|
||||
at org.dspace.storage.rdbms.DatabaseRegistryUpdater.afterMigrate(DatabaseRegistryUpdater.java:121)
|
||||
at org.flywaydb.core.internal.command.DbMigrate$3.doInTransaction(DbMigrate.java:250)
|
||||
at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72)
|
||||
at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:246)
|
||||
at org.flywaydb.core.Flyway$1.execute(Flyway.java:959)
|
||||
at org.flywaydb.core.Flyway$1.execute(Flyway.java:917)
|
||||
at org.flywaydb.core.Flyway.execute(Flyway.java:1373)
|
||||
at org.flywaydb.core.Flyway.migrate(Flyway.java:917)
|
||||
at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:663)
|
||||
at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:575)
|
||||
at org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:551)
|
||||
at org.dspace.core.Context.<clinit>(Context.java:103)
|
||||
at org.dspace.app.util.AbstractDSpaceWebapp.register(AbstractDSpaceWebapp.java:74)
|
||||
at org.dspace.app.util.DSpaceWebappListener.contextInitialized(DSpaceWebappListener.java:31)
|
||||
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5197)
|
||||
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5720)
|
||||
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
|
||||
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1016)
|
||||
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:992)
|
||||
</code></pre><ul>
|
||||
<li>I checked the database migrations with <code>dspace database info</code> and they were all OK
|
||||
<ul>
|
||||
<li>Then I restarted the Tomcat again and it started up OK…</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>There were two issues I had reported to Atmire last month:
|
||||
<ul>
|
||||
<li>Importing items from the command line throws a <code>NullPointerException</code> from <code>com.atmire.dspace.cua.CUASolrLoggerServiceImpl</code> for every item, but the item still gets imported</li>
|
||||
<li>No results for author name in Listing and Reports, despite there being hits in Discovery search</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>To test the first one I imported a very simple CSV file with one item with minimal data
|
||||
<ul>
|
||||
<li>There is a new error now (but the item does get imported):</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<pre><code>$ dspace metadata-import -f /tmp/2020-10-06-import-test.csv -e aorth@mjanja.ch
|
||||
Loading @mire database changes for module MQM
|
||||
Changes have been processed
|
||||
-----------------------------------------------------------
|
||||
New item:
|
||||
+ New owning collection (10568/3): ILRI articles in journals
|
||||
+ Add (dc.contributor.author): Orth, Alan
|
||||
+ Add (dc.date.issued): 2020-09-01
|
||||
+ Add (dc.title): Testing CUA import NPE
|
||||
|
||||
1 item(s) will be changed
|
||||
|
||||
Do you want to make these changes? [y/n] y
|
||||
-----------------------------------------------------------
|
||||
New item: aff5e78d-87c9-438d-94f8-1050b649961c (10568/108548)
|
||||
+ New owning collection (10568/3): ILRI articles in journals
|
||||
+ Added (dc.contributor.author): Orth, Alan
|
||||
+ Added (dc.date.issued): 2020-09-01
|
||||
+ Added (dc.title): Testing CUA import NPE
|
||||
Tue Oct 06 22:06:14 CEST 2020 | Query:containerItem:aff5e78d-87c9-438d-94f8-1050b649961c
|
||||
Error while updating
|
||||
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Expected mime type application/octet-stream but got text/html. <!doctype html><html lang="en"><head><title>HTTP Status 404 – Not Found</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 404 – Not Found</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> The requested resource [/solr/update] is not available</p><p><b>Description</b> The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.</p><hr class="line" /><h3>Apache Tomcat/7.0.104</h3></body></html>
|
||||
at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:512)
|
||||
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
|
||||
at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
|
||||
at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:124)
|
||||
at org.apache.solr.client.solrj.SolrServer.commit(SolrServer.java:168)
|
||||
at com.atmire.dspace.cua.CUASolrLoggerServiceImpl$5.visit(SourceFile:1131)
|
||||
at com.atmire.dspace.cua.CUASolrLoggerServiceImpl.visitEachStatisticShard(SourceFile:212)
|
||||
at com.atmire.dspace.cua.CUASolrLoggerServiceImpl.update(SourceFile:1104)
|
||||
at com.atmire.dspace.cua.CUASolrLoggerServiceImpl.update(SourceFile:1093)
|
||||
at org.dspace.statistics.StatisticsLoggingConsumer.consume(SourceFile:104)
|
||||
at org.dspace.event.BasicDispatcher.consume(BasicDispatcher.java:177)
|
||||
at org.dspace.event.BasicDispatcher.dispatch(BasicDispatcher.java:123)
|
||||
at org.dspace.core.Context.dispatchEvents(Context.java:455)
|
||||
at org.dspace.core.Context.commit(Context.java:424)
|
||||
at org.dspace.core.Context.complete(Context.java:380)
|
||||
at org.dspace.app.bulkedit.MetadataImport.main(MetadataImport.java:1399)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
|
||||
at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
|
||||
</code></pre><ul>
|
||||
<li>Also, I tested Listings and Reports and there are still no hits for “Orth, Alan” as a contributor, despite there being dozens of items in the repository and the Solr query generated by Listings and Reports actually returning hits:</li>
|
||||
</ul>
|
||||
<pre><code>2020-10-06 22:23:44,116 INFO org.apache.solr.core.SolrCore @ [search] webapp=/solr path=/select params={q=*:*&fl=handle,search.resourcetype,search.resourceid,search.uniqueid&start=0&fq=NOT(withdrawn:true)&fq=NOT(discoverable:false)&fq=search.resourcetype:2&fq=author_keyword:Orth,\+A.+OR+author_keyword:Orth,\+Alan&fq=dateIssued.year:[2013+TO+2021]&rows=500&wt=javabin&version=2} hits=18 status=0 QTime=10
|
||||
</code></pre><ul>
|
||||
<li>Solr returns <code>hits=18</code> for the L&R query, but there are no result shown in the L&R UI</li>
|
||||
<li>I sent all this feedback to Atmire…</li>
|
||||
</ul>
|
||||
<!-- raw HTML omitted -->
|
||||
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="Categories"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="Notes"/>
|
||||
@ -94,6 +94,12 @@
|
||||
<li>Add tests for the new <code>/items</code> POST handlers to the DSpace 6.x branch of my <a href="https://github.com/ilri/dspace-statistics-api/tree/v6_x">dspace-statistics-api</a>
|
||||
<ul>
|
||||
<li>It took a bit of extra work because I had to learn how to mock the responses for when Solr is not available</li>
|
||||
<li>Tag and release version 1.3.0 on GitHub: <a href="https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0">https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Trying to test the changes Atmire sent last week but I had to re-create my local database from a recent CGSpace dump
|
||||
<ul>
|
||||
<li>During the FlywayDB migration I got an error:</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -18,6 +18,12 @@
|
||||
<li>Add tests for the new <code>/items</code> POST handlers to the DSpace 6.x branch of my <a href="https://github.com/ilri/dspace-statistics-api/tree/v6_x">dspace-statistics-api</a>
|
||||
<ul>
|
||||
<li>It took a bit of extra work because I had to learn how to mock the responses for when Solr is not available</li>
|
||||
<li>Tag and release version 1.3.0 on GitHub: <a href="https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0">https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Trying to test the changes Atmire sent last week but I had to re-create my local database from a recent CGSpace dump
|
||||
<ul>
|
||||
<li>During the FlywayDB migration I got an error:</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul></description>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="Notes"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="Notes"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="Notes"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="CGSpace Notes"/>
|
||||
@ -109,6 +109,12 @@
|
||||
<li>Add tests for the new <code>/items</code> POST handlers to the DSpace 6.x branch of my <a href="https://github.com/ilri/dspace-statistics-api/tree/v6_x">dspace-statistics-api</a>
|
||||
<ul>
|
||||
<li>It took a bit of extra work because I had to learn how to mock the responses for when Solr is not available</li>
|
||||
<li>Tag and release version 1.3.0 on GitHub: <a href="https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0">https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Trying to test the changes Atmire sent last week but I had to re-create my local database from a recent CGSpace dump
|
||||
<ul>
|
||||
<li>During the FlywayDB migration I got an error:</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -18,6 +18,12 @@
|
||||
<li>Add tests for the new <code>/items</code> POST handlers to the DSpace 6.x branch of my <a href="https://github.com/ilri/dspace-statistics-api/tree/v6_x">dspace-statistics-api</a>
|
||||
<ul>
|
||||
<li>It took a bit of extra work because I had to learn how to mock the responses for when Solr is not available</li>
|
||||
<li>Tag and release version 1.3.0 on GitHub: <a href="https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0">https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Trying to test the changes Atmire sent last week but I had to re-create my local database from a recent CGSpace dump
|
||||
<ul>
|
||||
<li>During the FlywayDB migration I got an error:</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul></description>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="CGSpace Notes"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="CGSpace Notes"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="CGSpace Notes"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="CGSpace Notes"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="CGSpace Notes"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="CGSpace Notes"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="Posts"/>
|
||||
@ -109,6 +109,12 @@
|
||||
<li>Add tests for the new <code>/items</code> POST handlers to the DSpace 6.x branch of my <a href="https://github.com/ilri/dspace-statistics-api/tree/v6_x">dspace-statistics-api</a>
|
||||
<ul>
|
||||
<li>It took a bit of extra work because I had to learn how to mock the responses for when Solr is not available</li>
|
||||
<li>Tag and release version 1.3.0 on GitHub: <a href="https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0">https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Trying to test the changes Atmire sent last week but I had to re-create my local database from a recent CGSpace dump
|
||||
<ul>
|
||||
<li>During the FlywayDB migration I got an error:</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
@ -18,6 +18,12 @@
|
||||
<li>Add tests for the new <code>/items</code> POST handlers to the DSpace 6.x branch of my <a href="https://github.com/ilri/dspace-statistics-api/tree/v6_x">dspace-statistics-api</a>
|
||||
<ul>
|
||||
<li>It took a bit of extra work because I had to learn how to mock the responses for when Solr is not available</li>
|
||||
<li>Tag and release version 1.3.0 on GitHub: <a href="https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0">https://github.com/ilri/dspace-statistics-api/releases/tag/v1.3.0</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Trying to test the changes Atmire sent last week but I had to re-create my local database from a recent CGSpace dump
|
||||
<ul>
|
||||
<li>During the FlywayDB migration I got an error:</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul></description>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="Posts"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="Posts"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="Posts"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="Posts"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="Posts"/>
|
||||
|
@ -9,7 +9,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="2020-10-06T16:55:54+03:00" />
|
||||
<meta property="og:updated_time" content="2020-10-06T16:59:31+03:00" />
|
||||
|
||||
<meta name="twitter:card" content="summary"/>
|
||||
<meta name="twitter:title" content="Posts"/>
|
||||
|
@ -4,27 +4,27 @@
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/categories/</loc>
|
||||
<lastmod>2020-10-06T16:55:54+03:00</lastmod>
|
||||
<lastmod>2020-10-06T16:59:31+03:00</lastmod>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/</loc>
|
||||
<lastmod>2020-10-06T16:55:54+03:00</lastmod>
|
||||
<lastmod>2020-10-06T16:59:31+03:00</lastmod>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/categories/notes/</loc>
|
||||
<lastmod>2020-10-06T16:55:54+03:00</lastmod>
|
||||
<lastmod>2020-10-06T16:59:31+03:00</lastmod>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/2020-10/</loc>
|
||||
<lastmod>2020-10-06T16:55:54+03:00</lastmod>
|
||||
<lastmod>2020-10-06T16:59:31+03:00</lastmod>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>https://alanorth.github.io/cgspace-notes/posts/</loc>
|
||||
<lastmod>2020-10-06T16:55:54+03:00</lastmod>
|
||||
<lastmod>2020-10-06T16:59:31+03:00</lastmod>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
|
Loading…
Reference in New Issue
Block a user