RE: [VuFind-General] Error importing

104 views
Skip to first unread message

Demian Katz

unread,
Feb 6, 2012, 8:45:26 AM2/6/12
to Asier Etxeondo, VuFind-...@lists.sourceforge.net, solrma...@googlegroups.com
I'm copying this to solrmarc-tech in case anyone there has additional input.

What version of VuFind are you using?

When you get the "Solr index is offline" error, does running ./vufind.sh restart from the VUFIND_HOME directory fix things, or is truly necessary to rebuild the index?

Does this happen with a particular file, or does it seem to be at random?

- Demian
________________________________________
From: Asier Etxeondo [vendoyco...@gmail.com]
Sent: Monday, February 06, 2012 4:43 AM
To: VuFind-...@lists.sourceforge.net
Subject: [VuFind-General] Error importing

Hello everybody,

Sometimes I have to delete the solr/biblio/index directory and start importing again because I have this error.

An error has occurred

Solr index is offline.

This is the output that I have for the import shell.

Do you know which could be the cause of this?

Thanks a lot.


Now Importing /usr/local/vufind/digital.mrc ...
/usr/lib/jvm/java/bin/java -Xms512m -Xmx512m -Dsolrmarc.solr.war.path=/usr/local/vufind//solr/jetty/webapps/solr.war -Dsolr.c
ore.name<http://ore.name>=biblio -Dsolrmarc.path=/usr/local/vufind//import -Dsolr.path=/usr/local/vufind//solr -Dsolr.solr.home=/usr/local/vuf
ind//solr -jar /usr/local/vufind//import/SolrMarc.jar /usr/local/vufind//import/import_digitalizados.properties /usr/local/vu
find/digital.mrc
INFO [main] (MarcImporter.java:841) - Starting SolrMarc indexing.
INFO [main] (Utils.java:189) - Opening file: /usr/local/vufind/import/import_digitalizados.properties
INFO [main] (MarcImporter.java:690) - Updating to Solr index at /usr/local/vufind/solr
INFO [main] (MarcImporter.java:706) - Using Solr core biblio
INFO [main] (SolrCoreLoader.java:102) - Using the data directory of: /usr/local/vufind/solr/biblio
INFO [main] (SolrCoreLoader.java:104) - Using the multicore schema file at : /usr/local/vufind/solr/solr.xml
INFO [main] (SolrCoreLoader.java:105) - Using the biblio core
INFO [main] (MarcHandler.java:348) - Attempting to open data file: /usr/local/vufind/digital.mrc
ERROR [main] (MarcImporter.java:369) - Error indexing record: 000000000344 -- Error: Problem creating updateHandler in SolrCoreProxy
org.solrmarc.solr.SolrRuntimeException: Error: Problem creating updateHandler in SolrCoreProxy
at org.solrmarc.solr.SolrCoreProxy.initializeUpdateHandler(SolrCoreProxy.java:415)
at org.solrmarc.solr.SolrCoreProxy.initializeAddDocObjects(SolrCoreProxy.java:320)
at org.solrmarc.solr.SolrCoreProxy.addDoc(SolrCoreProxy.java:93)
at org.solrmarc.marc.MarcImporter.addToIndex(MarcImporter.java:445)
at org.solrmarc.marc.MarcImporter.addToIndex(MarcImporter.java:389)
at org.solrmarc.marc.MarcImporter.importRecords(MarcImporter.java:304)
at org.solrmarc.marc.MarcImporter.handleAll(MarcImporter.java:578)
at org.solrmarc.marc.MarcImporter.main(MarcImporter.java:857)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.simontuffs.onejar.Boot.run(Boot.java:334)
at com.simontuffs.onejar.Boot.main(Boot.java:170)
Caused by: java.lang.NullPointerException
at org.solrmarc.solr.SolrCoreProxy.initializeUpdateHandler(SolrCoreProxy.java:407)
... 13 more
INFO [main] (MarcImporter.java:583) - Exception occurred while Indexing: Error: Problem creating updateHandler in SolrCorePr
oxy
INFO [main] (MarcImporter.java:584) - Setting Solr closed flag
INFO [main] (MarcImporter.java:588) - Adding 0 of 1 documents to index
INFO [main] (MarcImporter.java:589) - Deleting 0 documents from index
INFO [main] (MarcImporter.java:503) - Connecting to solr server at URL: http://localhost:8080/solr/biblio/update
WARN [main] (MarcImporter.java:514) - Unable to establish connection to solr server at URL: http://localhost:8080/solr/bibli
o/update
INFO [main] (MarcImporter.java:598) - Finished indexing in 0:00.00

Demian Katz

unread,
Feb 6, 2012, 10:30:15 AM2/6/12
to Asier Etxeondo, VuFind-...@lists.sourceforge.net, solrma...@googlegroups.com
When you are seeing the connection error in VuFind, have you tried going directly to the Solr admin URL? (something like http://localhost:8080/solr/) It's possible there may be some more detailed error message available there explaining the problem.

Is it possible you have a hardware problem? A bad disk could physically corrupt the index periodically...

Does the problem always happen during/after indexing, or does it sometimes happen all by itself?

It might be worth considering an upgrade to 1.3 -- if the problem is somehow related to a bug in Solr or SolrMarc, upgrading will get you to much more current versions of the software... but of course I understand that upgrading is a lot of work! I'll be happy to keep trying to find clues for your current situation.

- Demian
________________________________________
From: Asier Etxeondo [vendoyco...@gmail.com]

Sent: Monday, February 06, 2012 9:09 AM
To: Demian Katz
Cc: VuFind-...@lists.sourceforge.net; solrma...@googlegroups.com
Subject: Re: [VuFind-General] Error importing

Hello Damian,

We are using Vufind 1.1.

First of all, I run "vufind.sh restart" but without effect then I decided to drop the index directory and import all the data again.

It seems to be random. 2 times per month more or less. But I can not find any condition to know why.

Thanks a lot,

2012/2/6 Demian Katz <demia...@villanova.edu<mailto:demia...@villanova.edu>>


I'm copying this to solrmarc-tech in case anyone there has additional input.

What version of VuFind are you using?

When you get the "Solr index is offline" error, does running ./vufind.sh restart from the VUFIND_HOME directory fix things, or is truly necessary to rebuild the index?

Does this happen with a particular file, or does it seem to be at random?

- Demian
________________________________________
From: Asier Etxeondo [vendoyco...@gmail.com<mailto:vendoyco...@gmail.com>]


Sent: Monday, February 06, 2012 4:43 AM

To: VuFind-...@lists.sourceforge.net<mailto:VuFind-...@lists.sourceforge.net>
Subject: [VuFind-General] Error importing

Hello everybody,

Sometimes I have to delete the solr/biblio/index directory and start importing again because I have this error.

An error has occurred

Solr index is offline.

This is the output that I have for the import shell.

Do you know which could be the cause of this?

Thanks a lot.


Now Importing /usr/local/vufind/digital.mrc ...
/usr/lib/jvm/java/bin/java -Xms512m -Xmx512m -Dsolrmarc.solr.war.path=/usr/local/vufind//solr/jetty/webapps/solr.war -Dsolr.c

ore.name<http://ore.name><http://ore.name>=biblio -Dsolrmarc.path=/usr/local/vufind//import -Dsolr.path=/usr/local/vufind//solr -Dsolr.solr.home=/usr/local/vuf

o/update<http://localhost:8080/solr/bibli

Reply all
Reply to author
Forward
0 new messages