我在Windows机器上创建了一个neo4j
数据库。
我已将数据库目录的内容传输到我的linux机器。这是因为我的社区版本不支持备份功能。
mtt@mttPC:/var/lib/neo4j/data/log$ sudo service neo4j-service start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
WARNING! You are using an unsupported Java runtime.
* Please use Oracle(R) Java(TM) 7 to run Neo4j Server. Download "Java Platform (JDK) 7" from:
http://www.oracle.com/technetwork/java/javase/downloads/index.html
* Please see http://docs.neo4j.org/ for Neo4j Server installation instructions.
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 [21498]... waiting for server to be ready..... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
数据库目录中的文件messages.log
什么也没说。
有什么想法吗? Windows和Linux neo4j
是否兼容?谢谢。
修改
我已经在我的ubuntu机器上全新安装了neo4j。
现在我终于得到了一些日志:
2014-05-16 20:01:10.958+0000 ERROR [o.n.k.EmbeddedGraphDatabase]: Startup failed: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@25984c63' was successfully initialized, but failed to start. Please see attached cause exception.: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@3d34dcb' was successfully initialized, but failed to start. Please see attached cause exception.: 'neostore' has a store version number that we cannot upgrade from. Expected 'NeoStore v0.A.0' but file is version 'NeoStore v0.A.2'.
2014-05-16 20:01:10.958+0000 INFO [o.n.k.EmbeddedGraphDatabase]: Shutdown started
我应该与this有关,但我不确定如何继续。这个问题是否与我复制数据库的时候有关,我刚从neo4j窗口停止了我的windows机器上的neo4j?
答案 0 :(得分:0)
Neo4j数据库没有理由不能在操作系统之间转移。你能否提供data/log/console.log
的输出?首先想到的是你可能有许可问题。应该为Neo4j进程运行的用户读/写文件。