java.lang.IllegalStateException: Index has been shut down

156 views
Skip to first unread message

Peter Ehrlich

unread,
Apr 5, 2012, 10:39:14 AM4/5/12
to ne...@googlegroups.com
After redploying to trinidad/tomcat, I got the following index illegal state error, which crashed the entire application and required a hard reboot to remedy (now its working without error).  Can anyone tell what could cause this, or how to fix/prevent?  I'm running 1.7M01.

Seems identical to this issue here:
https://github.com/sim51/logisima-play-neo4j/issues/1


(ActionView::Template::Error) "java.lang.IllegalStateException: Index has been shut down"

org/neo4j/index/impl/lucene/LuceneDataSource.java:620:in `getIndexWriter'

org/neo4j/index/impl/lucene/LuceneDataSource.java:535:in `getIndexSearcher' org/neo4j/index/impl/lucene/LuceneIndex.java:268:in `query' org/neo4j/index/impl/lucene/LuceneIndex.java:227:in `query' org/neo4j/index/impl/lucene/LuceneIndex.java:238:in `query' /data/zendestinyStaging/current/vendor/gems/neo4j/lib/neo4j/index/lucene_query.rb:251:in `perform_query' /data/zendestinyStaging/current/vendor/gems/neo4j/lib/neo4j/index/lucene_query.rb:93:in `hits' /data/zendestinyStaging/current/vendor/gems/neo4j/lib/neo4j/index/lucene_query.rb:56:in `each'
org/jruby/RubyEnumerable.java:326:in `first' /data/zendestinyStaging/current/vendor/gems/neo4j/lib/neo4j/rails/finders.rb:143:in `first' /data/zendestinyStaging/current/vendor/gems/neo4j/lib/neo4j/rails/finders.rb:82:in `find'

Thanks!

Peter Neubauer

unread,
Apr 10, 2012, 3:06:10 PM4/10/12
to ne...@googlegroups.com
Peter,
this looks like if Lucene has been shut down somehow. Got a
messages.log on this?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo

Peter Ehrlich

unread,
Apr 10, 2012, 3:29:24 PM4/10/12
to ne...@googlegroups.com
Ah, thanks for asking! I'll watch this file in the future.

Here's logs from that issue:

This is about as interesting as it gets:
2012-04-05 01:32:29.426+0000: WARNING! Deprecated configuration options used. See manual for details
2012-04-05 01:32:29.426+0000: enable_online_backup has been replaced with online_backup_enabled and online_backup_port
2012-04-05 01:32:30.675+0000: /db/neo4j-app-production/neostore.relationshiptypestore.db.names non clean shutdown detected
2012-04-05 01:32:30.715+0000: /db/neo4j-app-production/neostore.relationshiptypestore.db non clean shutdown detected
20

and so on..

Peter Neubauer

unread,
Apr 10, 2012, 3:32:34 PM4/10/12
to ne...@googlegroups.com
Ok,
let us know if there is anything popping up again.

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo

On Tue, Apr 10, 2012 at 9:29 PM, Peter Ehrlich

Mattias Persson

unread,
Apr 11, 2012, 6:36:13 AM4/11/12
to ne...@googlegroups.com
It may be that your application or library is holding on to an Index reference and tries to use it after the database has been restarted.

2012/4/10 Peter Neubauer <peter.n...@neotechnology.com>



--
Mattias Persson, [mat...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com

Peter Ehrlich

unread,
Apr 11, 2012, 11:22:41 AM4/11/12
to ne...@googlegroups.com
Interesting.  Would that be a bug?

It would seem strange, as it appears that the app and db get restarted as one.

Sent from my iPhone

Cyprian Kowalczyk

unread,
Apr 17, 2012, 6:54:04 AM4/17/12
to ne...@googlegroups.com
Hi all,

Same here.

I'm using Neo4j in HA mode with Rails. I'm connected to master from app and to one of the slaves from console. After updating a record I got exactly the same error. The property I updated had an index on itself. It seems that Lucene doesn't play nice when in HA mode, or something. Is it a bug?

~ Cyprian

Reply all
Reply to author
Forward
0 new messages