neo4j在复制graph.db权限后出现120秒错误 [英] neo4j 120 seconds error after copying graph.db permission

查看:202
本文介绍了neo4j在复制graph.db权限后出现120秒错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的问题.我已经复制了graph.db进行备份. 当我这样做时,Neo4j就开始了.

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

此后,我删除了graph.db,neo4j开始了一个新的. Neo4j工作正常,没有问题. 但是当想再次复制graph.db(备份文件)时,我得到:

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.

我已经卸载并重新安装了neo4j,它不起作用.

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

我认为这是权限问题...如果是,该如何解决?我试图用chmod更改权限,但是它不起作用...有人可以为我提供用于更改权限的代码,或为具有良好权限的neo4j配置代码.

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.

推荐答案

如数据损坏之前所述.无法恢复.

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.

我们需要压缩graph.db文件,然后将其复制到另一个位置作为备份.

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

要恢复停止数据库,只需递归删除graph.db并解压缩备份即可.

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

可悲的是,第一个数据无法恢复...

Sadly the first data could not be restored...

这篇关于neo4j在复制graph.db权限后出现120秒错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆