Hi Tim,

As usual, thank you for your reply. Indeed, there was no statistics-2021 
folder in my "solr/configsets/". Can you tell me if I created 
statistics-2021 in the correct way?

1) I copied /solr/configsets/statistics to /solr/configsets/statistics-2021
2) I made the import with the script: solr-import-statistics -i 
statistics-2021 
Now the import error does not appear.

Is this not a good practice and need to do it differently? E.g. through the 
solr web panel?

Alternatively, is it possible to merge the split statistics by changing all 
exported files from the split year, e.g: 
statistics-2021_export_2021-05_31.csv to statistics_export_2021-05_31.csv 
and import with the master script: 
/dspace/bin/dspace solr-import-statistics -i statistics 
?

Thanks and best regards,

Karol


wtorek, 1 listopada 2022 o 15:08:57 UTC+1 Tim Donohue napisaƂ(a):

> Hi,
>
> That appears to be saying that the Solr service at 
> http://localhost:8983/solr/statistics-2021 is not responding or doesn't 
> exist?  It looks like you are getting a 404 from that URL.  So, you should 
> verify that URL is correct and that it is accessible to you.
>
> Tim
>
> On Sunday, October 30, 2022 at 6:52:19 AM UTC-5 [email protected] wrote:
>
>> Hi,
>>
>> I am trying to migrate solr stats from dspace 6.3 to 7.4. Importing 2022 
>> - current stats works without any problem, the problem occurs when I try to 
>> import 2019,2020,2021(sharded stats):
>> /dspace/bin/dspace solr-import-statistics -i statistics-2021
>>   
>> Exception: Error from server at 
>> http://localhost:8983/solr/statistics-2021: Expected mime type 
>> application/octet-stream but got text/html. <html>
>> <head>
>> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
>> <title>Error 404 Not Found</title>
>> </head>
>> <body><h2>HTTP ERROR 404 Not Found</h2>
>> <table>
>> <tr><th>URI:</th><td>/solr/statistics-2021/admin/luke</td></tr>
>> <tr><th>STATUS:</th><td>404</td></tr>
>> <tr><th>MESSAGE:</th><td>Not Found</td></tr>
>> <tr><th>SERVLET:</th><td>default</td></tr>
>> </table>
>>
>> </body>
>> </html>
>>
>> org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: 
>> Error from server at http://localhost:8983/solr/statistics-2021: 
>> Expected mime type application/octet-stream but got text/html. <html>
>> <head>
>> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
>> <title>Error 404 Not Found</title>
>> </head>
>> <body><h2>HTTP ERROR 404 Not Found</h2>
>> <table>
>> <tr><th>URI:</th><td>/solr/statistics-2021/admin/luke</td></tr>
>> <tr><th>STATUS:</th><td>404</td></tr>
>> <tr><th>MESSAGE:</th><td>Not Found</td></tr>
>> <tr><th>SERVLET:</th><td>default</td></tr>
>> </table>
>>
>> </body>
>> </html>
>>
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.executeMethod(HttpSolrClient.java:635)
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:266)
>>         at 
>> org.apache.solr.client.solrj.impl.HttpSolrClient.request(HttpSolrClient.java:248)
>>         at 
>> org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:214)
>>         at 
>> org.apache.solr.client.solrj.SolrRequest.process(SolrRequest.java:231)
>>         at 
>> org.dspace.util.SolrImportExport.getMultiValuedFields(SolrImportExport.java:482)
>>         at 
>> org.dspace.util.SolrImportExport.importIndex(SolrImportExport.java:433)
>>         at 
>> org.dspace.util.SolrImportExport.main(SolrImportExport.java:148)
>>         at 
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
>> Method)
>>         at 
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>         at 
>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>         at java.base/java.lang.reflect.Method.invoke(Method.java:566)
>>         at 
>> org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:277)
>>         at 
>> org.dspace.app.launcher.ScriptLauncher.handleScript(ScriptLauncher.java:133)
>>         at 
>> org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:98)
>>
>>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/51f5af1f-95d1-496f-86be-76e95910dc04n%40googlegroups.com.

Reply via email to