Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

neo4j server is not restarting or stopping

Tags:

neo4j

I am getting the following errors and I dont know how to restart the server .I tried multiple times but I get the same error all the time.How can I stop and restart the server.I really appreciate any help.

./bin/neo4j start

displays:

/usr/local/neo4j/data/log/console.log: Permission denied
process [11825]... waiting for server to be ready.. Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.


sudo ./bin/neo4j start

displays:

Another server-process is running with [ST=ESTABLISHED], cannot start a new one. Exiting.
like image 254
jason Avatar asked Jul 21 '15 17:07

jason


People also ask

Why can't I start Neo4j Server?

Neo4j Server may have failed to start, please check the logs. sudo ./bin/neo4j start Another server-process is running with [ST=ESTABLISHED], cannot start a new one. Exiting. Show activity on this post. The exception you get is because another server is running.

How do I remove a database from Neo4j?

Make sure the Neo4j server is not running; go to sub-directory /bin and execute ./neo4j status. If the output message shows that the server is running, also execute ./neo4j stop. Then go to sub-directory /data/databases and delete the folder of the database you want to remove.

How do I check if Neo4j is running or not?

If this happens, then the current state of the Neo4j process can still be inquired through use of the bin/neo4j status command. This will return status code 0 if the process is running and print its PID or it will return 3 if it’s not running.

What happens when the Neo4j process exits?

The shell script will exit with a status code of 0 if the process exits before the $NEO4J_SHUTDOWN_TIMEOUT period or it will print a failure message with the PID of the Neo4j process and will return status code 1. It is important to note that in either case, the Neo4j process will continue running.


1 Answers

The exception you get is because another server is running.

Also, there is another exception, you don't have write access in the folder for the logs.

  1. Check if http://localhost:7474 is displaying the neo4j web browser.

If yes, locate the location of the running database :

enter image description here

Then go to the location and stop the db, eg based on the image :

cd /Users/cw/_graphs/tests
./bin/neo4j stop

If it is not working, try to kill the process :

sudo htop

enter image description here

kill -9 10522

And try to run your new database. And make sure you have the right permissions for the stores and logs.

like image 147
Christophe Willemsen Avatar answered Oct 18 '22 02:10

Christophe Willemsen