neo4j docker 运行4.35 community 版本失败

运行脚本

复制代码
sudo docker run -d \ --name container_name \ -p 27474:7474 \ -p 27687:7687 \ -v /home/neo4j/data:/data \ -v /home/neo4j/logs:/logs \ -v /home/neo4j/conf:/var/lib/neo4j/conf \ -v /home/neo4j/import:/var/lib/neo4j/import \ -v /home/lighthouse/tcmkg_v0.2/data/import:/home/data \ --env NEO4J_AUTH=neo4j/password \ neo4j:4.4-community

报错如下:

复制代码
Caused by: java.lang.IllegalArgumentException: The read version string length 99 is not proper.
        at org.neo4j.kernel.impl.store.MetaDataStore.versionLongToString(MetaDataStore.java:892) ~[neo4j-record-storage-engine-4.4.36.jar:4.4.36]
        at org.neo4j.kernel.impl.store.format.RecordFormatSelector.selectForStore(RecordFormatSelector.java:159) ~[neo4j-record-storage-engine-4.4.36.jar:4.4.36]
        at org.neo4j.kernel.impl.store.format.RecordFormatSelector.selectNewestFormat(RecordFormatSelector.java:280) ~[neo4j-record-storage-engine-4.4.36.jar:4.4.36]
        at org.neo4j.kernel.impl.storemigration.RecordStoreVersionCheck.configuredVersion(RecordStoreVersionCheck.java:169) ~[neo4j-record-storage-engine-4.4.36.jar:4.4.36]
        at org.neo4j.kernel.impl.storemigration.RecordStoreVersionCheck.<init>(RecordStoreVersionCheck.java:56) ~[neo4j-record-storage-engine-4.4.36.jar:4.4.36]
        at org.neo4j.internal.recordstorage.RecordStorageEngineFactory.versionCheck(RecordStorageEngineFactory.java:128) ~[neo4j-record-storage-engine-4.4.36.jar:4.4.36]
        at org.neo4j.kernel.impl.storemigration.DatabaseMigrator.migrate(DatabaseMigrator.java:90) ~[neo4j-kernel-4.4.36.jar:4.4.36]
        at org.neo4j.kernel.database.Database.upgradeStore(Database.java:681) ~[neo4j-kernel-4.4.36.jar:4.4.36]
        at org.neo4j.kernel.database.Database.start(Database.java:410) ~[neo4j-kernel-4.4.36.jar:4.4.36]
        at org.neo4j.dbms.database.AbstractDatabaseManager.startDatabase(AbstractDatabaseManager.java:234) ~[neo4j-4.4.36.jar:4.4.36]
        at org.neo4j.dbms.database.DefaultDatabaseManager.startDatabase(DefaultDatabaseManager.java:145) ~[neo4j-4.4.36.jar:4.4.36]
        at org.neo4j.dbms.database.DefaultDatabaseManager.startDatabase(DefaultDatabaseManager.java:34) ~[neo4j-4.4.36.jar:4.4.36]
        at org.neo4j.dbms.database.AbstractDatabaseManager.forEachDatabase(AbstractDatabaseManager.java:212) ~[neo4j-4.4.36.jar:4.4.36]
        at org.neo4j.dbms.database.AbstractDatabaseManager.startAllDatabases(

如何解决

是因为 neo4j4.x与neo4j 5.x 之间没有向下兼容,我一开始的运行脚本的时候,没有指定neo4j的版本,默认使用了5.x的版本,后面使用4.x的版本,但是映射的目录没有调整,neo4j4.x与neo4j5.x映射同一个目录导致容器无法运行起来

相关推荐
EAIReport4 小时前
企业级报表自动化:基于Docker的部署实践
运维·docker·自动化
tianyuanwo5 小时前
多平台容器化RPM构建流水线全指南:Fedora、CentOS与Anolis OS
linux·运维·容器·centos·rpm
敲上瘾8 小时前
【探索实战】:Kurator分布式统一应用分发平台的全面解析与实践指南
分布式·容器·kubernetes·serverless
cui_win8 小时前
Docker Compose 部署一个完整的Prometheus监控告警系统
docker·容器·prometheus
ALex_zry12 小时前
Docker Compose运维技术实战分享:从安装到架构解析
运维·docker·架构
roman_日积跬步-终至千里17 小时前
【Docker】Docker Stop 后到底发生了什么?——从信号机制到优雅停机
运维·docker·容器
z***62618 小时前
Docker:基于自制openjdk8镜像 or 官方openjdk8镜像,制作tomcat镜像
docker·容器·tomcat
Connie145120 小时前
记一次K8s故障告警排查(Grafna告警排查)
云原生·容器·kubernetes·grafana
❀͜͡傀儡师1 天前
Docker部署视频下载器
docker·容器·音视频
热爱学习的小怪兽1 天前
docker的一些常用指令
运维·docker·容器