Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/neo4j/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Neo4j服务赢得';不要从Debian上导入的数据库开始_Neo4j_Debian - Fatal编程技术网

Neo4j服务赢得';不要从Debian上导入的数据库开始

Neo4j服务赢得';不要从Debian上导入的数据库开始,neo4j,debian,Neo4j,Debian,我最近在安装Debian 7.8时一直在玩neo4j。太棒了 今天,我使用neo4j导入工具导入了大约100000个节点和150000个关系。我停止了neo4j服务,并将导入的数据库复制到/var/lib/neo4j/data/graph.db——但现在neo4j服务无法启动 Starting Neo4j Server...WARNING: not changing user process [4963]... waiting for server to be ready....... Fail

我最近在安装Debian 7.8时一直在玩neo4j。太棒了

今天,我使用neo4j导入工具导入了大约100000个节点和150000个关系。我停止了neo4j服务,并将导入的数据库复制到/var/lib/neo4j/data/graph.db——但现在neo4j服务无法启动

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.
这很奇怪,因为它不需要等待120秒就可以启动-最多5秒。生成的唯一日志是console.log in/var/log/neo4j

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.
这不是很有用。当我删除数据库时,neo4j就可以启动了。我将graph.db复制到我的windows安装中,它运行良好,我可以搜索节点等,所以它可能与我的Debian上的配置有关?我在/etc/neo4j/neo4j-server.properties中添加了一行

 org.neo4j.server.startup_timeout=0
但这并没有改变什么,服务启动在几秒钟后仍然超时。有什么想法吗

这里是graph.db messages.log-当我尝试启动服务时,不会附加任何内容

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].

事实证明,我需要做的是确保我的权限是正确的。 我用一根绳子把它修好了

chown -r Neo4j:adm graph.db

现在一切似乎都很好。我认为如果Neo4j不能访问graph.db,它应该发出某种警告。现在它只是退出,没有任何日志

属于dba.stackexchange.comno4j文档建议在此询问。请阅读并与之比较。Marcin,您能检查graph.db/messages.log吗?neo4j导入和neo4j服务器都是同一版本吗?嗨,Michael。我编辑了我的帖子以添加messages.log。没有任何错误。当我尝试启动服务器时,没有任何内容附加到日志中。是的,我在neo4j网站上安装了带有apt get使用说明的neo4j,并在同一台服务器上导入了数据。Lifesaver+1关于neo4j控制台中更好的错误日志消息。logYes,我将在一小时内完成:)同意,neo4j会摇摆,但消息通常很糟糕。我在github上提出了一个问题,希望他们能加快他们的日志记录。我现在以neo4j用户的身份运行sudo来运行导入工具
sudo-u neo4j neo4j import…