Neo4j service won't start with imported database on Debian

I recently played with neo4j on my Debian 7.8 installation. It's amazing!

Today I imported about 100,000 nodes and 150,000 relationships using the neo4j-import tool. I stopped the neo4j service and copied the imported database to / var / lib / neo 4j / data / graph.db - but now the Neo4j service won't start

Starting Neo4j Server...WARNING: not changing user
process [4963]... waiting for server to be ready....... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.

      

Which is weird because it doesn't wait 120 seconds to start - max 5. The only log that gets generated is console.log in / var / log / neo 4j

2015-07-01 00:10:24.363+0000 INFO  [API] Setting startup timeout to: 120000ms based on 120000
2015-07-01 00:10:26.501+0000 INFO  [API] Successfully shutdown Neo4j Server.

      

which is not very helpful. When I drop the database neo4j can start. I copied graph.db into my windows installation and it works well, I can search through nodes, etc., Maybe it has something to do with my Debian setup? I added a line to / etc / neo 4j / neo4j-server.properties

 org.neo4j.server.startup_timeout=0

      

but that didn't change anything, the service still takes a few seconds to start. Any ideas?

Here's graph.db messages.log - nothing is added when I try to start the service

2015-07-01 01:58:12.142+0000 INFO  [org.neo4j]: Import starting
2015-07-01 01:58:12.282+0000 INFO  [org.neo4j]: Creating new db @ /var/www/ddl/scripts/./graph.db/neostore
2015-07-01 01:58:13.238+0000 INFO  [org.neo4j]: Missing counts store, rebuilding it.
2015-07-01 01:58:13.607+0000 INFO  [org.neo4j]: No lucene scan store index found, this might just be first use. Preparing to rebuild.
2015-07-01 01:58:13.663+0000 INFO  [org.neo4j]: No lucene scan store index found, this might just be first use. Preparing to rebuild.
2015-07-01 01:58:13.952+0000 INFO  [org.neo4j]: Rebuilding lucene scan store, this may take a while
2015-07-01 01:58:13.955+0000 INFO  [org.neo4j]: Lucene scan store rebuilt (roughly -1 nodes)
2015-07-01 01:58:30.337+0000 INFO  [org.neo4j]: IMPORT DONE in 18s 182ms. Imported:
  95941 nodes
  158227 relationships
  369482 properties
2015-07-01 01:58:30.341+0000 INFO  [org.neo4j]: About to rotate counts store at transaction 1 to [/var/www/ddl/scripts/./graph.db/neostore.counts.db.b], from [/var/www/ddl/scripts/./graph.db/neostore.counts.db.a].
2015-07-01 01:58:30.344+0000 INFO  [org.neo4j]: Successfully rotated counts store at transaction 1 to [/var/www/ddl/scripts/./graph.db/neostore.counts.db.b], from [/var/www/ddl/scripts/./graph.db/neostore.counts.db.a].

      

+3


source to share


1 answer


It turns out that I needed to make sure my rights were correct. I installed it with

chown -r Neo4j:adm graph.db

      



and now everything works fine. I think Neo4j should issue some kind of warning if it cannot access graph.db. Now it just goes out without any magazine

+1


source







All Articles