从Aura导出到AWS EC2社区示例的Neo4j损坏数据库

yyyllmsg  于 12个月前  发布在  其他
关注(0)|答案(1)|浏览(145)

我正在将数据库从Neo4j AURA迁移到托管在AWS EC2中的Neo4j社区版示例。

问题:我导出一个AURA快照,它下载了一个neo4j.dump文件。当在EC2示例上使用下一个命令来导入/加载文件neo4j-admin database load --from-path=/root neo4j --overwrite-destination=true时,过程正常,但之后,我无法使用浏览器或任何驱动程序连接到数据库,浏览器通过bolt连接,但它给了我一个错误,*neo4j数据库不可用,使用命令 * :sysinfo * 了解更多信息 *

运行neo4j-admin database check neo4j时,
获取:

x 1c 2d 1x

备注:

  • 我通过创建新的EC2 Neo4j示例重复了这个过程,结果是一样的,我也在企业版中尝试过,但没有运气
  • 如果有人想知道我为什么要从AURA迁移,原因是延迟/连接时间,我们的服务器在Heroku,使用aura,每个查询都需要> 300 ms,即使只是做一个简单的MATCH,在EC2示例中需要<10 ms。
xjreopfe

xjreopfe1#

问题是我以root的身份运行neo4j-admin database load命令解决方案:

su neo4j             // this is the default user the ec2 neo4j template created for me
cd $HOME
wget "url to backup" // download of put .dump file here
pwd                  // To then add it the path of the neo4j load command
neo4j-admin database load --from-path=/var/lib/neo4j neo4j --overwrite-destination=true

相关问题