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 2.1.2数据库与Neo4j 2.1.3一起使用时无法启动_Neo4j - Fatal编程技术网

将Neo4j 2.1.2数据库与Neo4j 2.1.3一起使用时无法启动

将Neo4j 2.1.2数据库与Neo4j 2.1.3一起使用时无法启动,neo4j,Neo4j,我正在尝试将我一直在使用的Neo4j 2.1.2数据库复制到我从Neo4j 2.0.3升级到Neo4j 2.1.3的新机器上。看起来应该是预期的“NeoStore v0.A.0”,但文件的版本是“NeoStore v0.A.3”。但我不知道如何解决这个问题 以下是我所做的: 在我的旧服务器上: 使用bin/neo4j stop关闭我的2.1.2服务器 已将graph.db目录复制到我的新服务器 在我的新服务器上: 删除现有的graph.db目录 运行apt get install neo4

我正在尝试将我一直在使用的Neo4j 2.1.2数据库复制到我从Neo4j 2.0.3升级到Neo4j 2.1.3的新机器上。看起来应该是
预期的“NeoStore v0.A.0”,但文件的版本是“NeoStore v0.A.3”。
但我不知道如何解决这个问题

以下是我所做的:

在我的旧服务器上:

  • 使用
    bin/neo4j stop关闭我的2.1.2服务器
  • 已将graph.db目录复制到我的新服务器
在我的新服务器上:

  • 删除现有的graph.db目录
  • 运行
    apt get install neo4j
    将新服务器从2.0.3升级到2.1.3
  • 服务器在没有警告的情况下成功启动
  • 已删除新创建的graph.db目录
  • 已将我现有的graph.db目录复制到2.1.3的数据目录中
  • 运行
    chown
    将文件的所有者更改为neo4j
  • 试图使用sudo service neo4j service start启动服务器
  • 还尝试设置
    allow\u store\u upgrade=true
    ,但没有效果
下面是我得到的控制台输出:

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 [9107]... waiting for server to be ready... Failed to start within 120 seconds.
以下是messages.log中记录的错误:

2014-08-06 19:13:13.103+0000 ERROR [o.n.k.EmbeddedGraphDatabase]: 
Startup failed: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager@3bf17f92' was successfully initialized, but failed to start. 
Please see attached cause exception.: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource@c3e122' 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.3'.
2014-08-06 19:13:13.104+0000 INFO  [o.n.k.EmbeddedGraphDatabase]: Shutdown started
下面是console.log输出:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/share/neo4j/system/lib/logback-classic-1.0.9.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/share/neo4j/system/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
11:21:18,697 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
11:21:18,697 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
11:21:18,698 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [jar:file:/usr/share/neo4j/system/lib/neo4j-server-2.0.3.jar!/logback.xml]
11:21:18,699 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath.
11:21:18,699 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/usr/share/neo4j/system/lib/neo4j-server-2.0.3.jar!/logback.xml]
11:21:18,699 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [jar:file:/usr/share/neo4j/system/lib/neo4j-server-2.1.3.jar!/logback.xml]
11:21:18,725 |-INFO in ch.qos.logback.core.joran.spi.ConfigurationWatchList@2d3d0953 - URL [jar:file:/usr/share/neo4j/system/lib/neo4j-server-2.0.3.jar!/logback.xml] is not of type file
11:21:18,782 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
11:21:18,786 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
11:21:18,795 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
11:21:18,822 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
11:21:18,890 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO
11:21:18,890 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
11:21:18,891 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
11:21:18,893 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@22f3f59 - Registering current configuration as safe fallback point

11:21:19.099 [main] INFO  o.n.s.enterprise.EnterpriseNeoServer - Setting startup timeout to: 120000ms based on -1

有什么建议可以让它运行吗?事实上,我从未成功地将数据库复制到运行新Neo4j版本的新服务器上,而且它确实可以工作,所以我显然使用了错误的过程。如果我让2.1.3服务器创建一个新的空数据库,它可以正常启动。

尝试清除/usr/share/neo4j/system/lib/中对2.0.3.jar的所有引用——确保只有2.1.3

从日志中可以看出,/neo4j/system/lib目录被合并在一起,并且包含不一致的jar文件。这些jar文件包含一些来自编译的元数据,可能会导致一些冲突问题

和往常一样,在迁移之前备份数据存储文件