Reputation: 304
I am trying to run a Neo4j server on AWS but it is giving following error:
* Restarting Neo4j Graph Database neo4j
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments: -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...WARNING: not changing user
process [26079]... waiting for server to be ready.......... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
Searching Google I found information suggesting to increase the maximum number of open files to 40000; I have tried that but unfortunately the result is same.
Specs:
Also, I am doing a batch import from two CSV files via batch importer after stopping the server but when I restart the server after import, it does not start and produces the error mentioned above.
Upvotes: 4
Views: 6290
Reputation: 822
If none of the above helps try this in case you are upgrading from older version and what to migrate your data.
1.Create a copy of the default database folder located in the data/ folder.
2.Copy all the files from the old database into this folder overwriting or replacing the original content.
Upvotes: 0
Reputation: 304
Thanks for the Advice @Stefan Armbruster
I Just figured it out.
At time of installation, neo4j asks you to "user by which neo4j will run" and i let it default "neo4j".
But the actual user must be defined as root.
Upvotes: 0
Reputation: 39915
To increase the number of open files allowed, check out http://docs.neo4j.org/chunked/stable/linux-performance-guide.html#_setting_the_number_of_open_files.
If it's still not starting up check data/log/console.log
or use neo4j start-no-wait
.
Upvotes: 6