Запуск Neo4J Docker: «Некоторые файлы JAR-процедур недопустимы» - PullRequest
0 голосов
/ 19 сентября 2019

Я использую образ докера Neo4j версии 3.5.9 и внешнюю версию JAR APOC apoc-3.5.0.4-all (которая находится в моем решении C #).Я на Windows 10 и использую Docker Desktop 2.1.0.3.

Когда я пытаюсь запустить тесты NUnit, использующие Neo4j, я получаю эту ошибку

Component 'org.neo4j.server.database.LifecycleManagingDatabase@1ee29c84' was successfully initialized, but failed to start. Please see the attached cause exception "Some jar procedure files are invalid, see log for details.". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@1ee29c84' was successfully initialized, but failed to start. Please see the attached cause exception "Some jar procedure files are invalid, see log for details."

В результатеКонтейнер остается с этим статусом (и мои тесты не выполняются успешно)

Exited (1)

Полные журналы с сервера здесь

Active database: graph.db
Directories in use:
  home:         /var/lib/neo4j
  config:       /var/lib/neo4j/conf
  logs:         /logs
  plugins:      /var/lib/neo4j/plugins
  import:       /var/lib/neo4j/import
  data:         /var/lib/neo4j/data
  certificates: /var/lib/neo4j/certificates
  run:          /var/lib/neo4j/run
Starting Neo4j.
2019-09-19 07:10:06.444+0000 WARN  Unknown config option: causal_clustering.discovery_listen_address
2019-09-19 07:10:06.445+0000 WARN  Unknown config option: causal_clustering.raft_advertised_address
2019-09-19 07:10:06.446+0000 WARN  Unknown config option: causal_clustering.raft_listen_address
2019-09-19 07:10:06.446+0000 WARN  Unknown config option: ha.host.coordination
2019-09-19 07:10:06.446+0000 WARN  Unknown config option: causal_clustering.transaction_advertised_address
2019-09-19 07:10:06.446+0000 WARN  Unknown config option: causal_clustering.discovery_advertised_address
2019-09-19 07:10:06.447+0000 WARN  Unknown config option: ha.host.data
2019-09-19 07:10:06.449+0000 WARN  Unknown config option: causal_clustering.transaction_listen_address
2019-09-19 07:10:06.463+0000 INFO  ======== Neo4j 3.5.9 ========
2019-09-19 07:10:06.476+0000 INFO  Starting...
2019-09-19 07:10:08.213+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@1ee29c84' was successfully initialized, but failed to start. Please see the attached cause exception "Some jar procedure files are invalid, see log for details.". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@1ee29c84' was successfully initialized, but failed to start. Please see the attached cause exception "Some jar procedure files are invalid, see log for details.".
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@1ee29c84' was successfully initialized, but failed to start. Please see the attached cause exception "Some jar procedure files are invalid, see log for details.".
        at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:45)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:187)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:124)
        at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:91)
        at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@1ee29c84' was successfully initialized, but failed to start. Please see the attached cause exception "Some jar procedure files are invalid, see log for details.".
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
        at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:180)
        ... 3 more
Caused by: java.lang.RuntimeException: Error starting org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory, /data/databases
        at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:232)
        at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:148)
        at org.neo4j.server.database.CommunityGraphFactory.newGraphDatabase(CommunityGraphFactory.java:41)
        at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:90)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
        ... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.proc.Procedures@28952dea' was successfully initialized, but failed to start. Please see the attached cause exception "Some jar procedure files are invalid, see log for details.".
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
        at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:227)
        ... 9 more
Caused by: java.util.zip.ZipException: Some jar procedure files are invalid, see log for details.
        at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProceduresFromDir(ProcedureJarLoader.java:76)
        at org.neo4j.kernel.impl.proc.Procedures.start(Procedures.java:323)
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
        ... 11 more
2019-09-19 07:10:08.216+0000 INFO  Neo4j Server shutdown initiated by request

Спасибо

...