neo4j 120 seconds error after copying graph.db permission

杀马特。学长 韩版系。学妹 提交于 2019-12-13 18:24:55

问题


This is my problem. I have copied graph.db for a backup. Neo4j was started when I did that.

After that I deleted graph.db and neo4j started a new one. Neo4j is working fine, no problems. But when wanted to copy again graph.db (the backup one) I get:

 Starting Neo4j Server...WARNING: not changing user
 waiting for server to be ready... Failed to start within 120 seconds.

I have uninstalled and installed again neo4j and it does not work.

I think is a problem of permissions... If yes how to solve it? I have tried to change permissions with chmod but it does not work... Someone can help me with the code for changing the permissions or configure neo4j with good permissions.

On the log: this appears multiple times:

2014-08-14 15:27:58.102+0000 INFO  [API] Setting startup timeout to: 120000ms based on -1
Detected incorrectly shut down database, performing recovery..

Any other suggestion? Thank you for your help.


回答1:


Try to use

bin/neo4j start-no-wait 

instead of

bin/neo4j start



回答2:


As commented before the data was corrupted. It was impossible to recover it.

The correct way to do the backup is: link

  • Never copy the files while running the database.

  • We need to zip the graph.db file and then copy it in another location as a backup.

  • For restore stop the database just delete recursively graph.db and unzip the backup.

Sadly the first data could not be restored...



来源:https://stackoverflow.com/questions/25312009/neo4j-120-seconds-error-after-copying-graph-db-permission

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!