andreasronge/neo4j — Issue #155: Adding indexes causing blowup
Author: pehrlich
Created: 2012-02-10 17:29:42+00:00
State: open

I'm afraid I don't have a lot to go on here, but hopefully I'll be able to figure out more on why this is happening.

If I take a column that has existed for a while, and try to begin indexing it, I usually get errors. I'll just run through what I recently did:

> Goal.migrate!
Enable remote shell at port port=9332
Starting Neo4j in readonly mode since the /Users/peter/Rails/zendestiny/db/neo4j-development is locked
Running upgrade: Migration version: 1, name: index_photo
RuntimeError: The type NilClass is unknown. Use one of Symbol, Time, String, Boolean, Date, Serialize, Fixnum, Float, DateTime or create a custom type converter.
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/type_converters/type_converters.rb:239:in `converter'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/type_converters/type_converters.rb:247:in `convert'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/index/index.rb:22:in `add_index'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/migrations/migration.rb:92:in `add_index_on'
from org/jruby/RubyArray.java:1614:in `each'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/migrations/migration.rb:91:in `add_index_on'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/traversal/traverser.rb:235:in `each'
from /Users/peter/.rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/shared/builtin/java/java.lang.rb:12:in `each'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/traversal/traverser.rb:235:in `each'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/migrations/migration.rb:90:in `add_index_on'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/migrations/migration.rb:56:in `execute_up'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/transaction.rb:57:in `run'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/migrations/migration.rb:54:in `execute_up'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/migrations/class_methods.rb:84:in `upgrade'
from org/jruby/RubyArray.java:1614:in `each'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/migrations/class_methods.rb:82:in `upgrade'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/migrations/class_methods.rb:69:in `_upgrade_or_downgrade'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/migrations/class_methods.rb:63:in `_migrate!'
from /Users/peter/.rvm/gems/jruby-1.6.6/gems/neo4j-1.3.1-java/lib/neo4j/migrations/node_mixin.rb:46:in `migrate!'

> g = Goal.create(name: 'photo test')
NativeException: org.neo4j.kernel.impl.core.ReadOnlyDbException: This is a read only embedded Neo4j instance

> g = Goal.create(name: 'photo test')
Enable remote shell at port port=9332
Starting local Neo4j using db /Users/peter/Rails/zendestiny/db/neo4j-development
Feb 10, 2012 11:58:11 AM org.neo4j.kernel.impl.transaction.TxManager commit
SEVERE: Commit failed
java.lang.RuntimeException: java.io.FileNotFoundException: /Users/peter/Rails/zendestiny/db/neo4j-development/index/lucene/node/Goal_exact/_2.fnm (No such file or directory)