graphaware / neo4j-nlp

NLP Capabilities in Neo4j
https://hume.graphaware.com/
335 stars 82 forks source link

Neo4j Docker community server don't start with APOC #134

Closed mdijoux closed 5 years ago

mdijoux commented 5 years ago

Hello,

When I start the docker server it throws a fatal error only when apoc is present in plugins but starts without apoc.

Error

2018-11-15 10:08:53.778+0000 INFO  ======== Neo4j 3.4.9 ========
2018-11-15 10:08:53.806+0000 INFO  Starting...
2018-11-15 10:08:55.312+0000 INFO  Bolt enabled on 0.0.0.0:7687.
2018-11-15 10:08:55.314+0000 INFO [c.g.r.b.RuntimeKernelExtension] GraphAware Runtime enabled, bootstrapping...
2018-11-15 10:08:55.329+0000 INFO [c.g.r.b.RuntimeKernelExtension] Bootstrapping module with order 1, ID NLP, using com.graphaware.nlp.module.NLPBootstrapper
2018-11-15 10:08:55.373+0000 INFO  Registering module NLP with GraphAware Runtime.
2018-11-15 10:08:55.374+0000 INFO [c.g.r.b.RuntimeKernelExtension] GraphAware Runtime bootstrapped, starting the Runtime...
2018-11-15 10:09:12.457+0000 INFO  Shutting down GraphAware Runtime... 
2018-11-15 10:09:12.457+0000 INFO  Shutting down module NLP
2018-11-15 10:09:12.457+0000 INFO  Terminating task scheduler...
2018-11-15 10:09:12.458+0000 INFO  Task scheduler terminated successfully.
2018-11-15 10:09:12.458+0000 INFO  GraphAware Runtime shut down.
2018-11-15 10:09:12.463+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3099dc9d' was successfully initialized, but failed to start. Please see the attached cause exception "class org.jsoup.nodes.LeafNode overrides final method childNodeSize.()I". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3099dc9d' was successfully initialized, but failed to start. Please see the attached cause exception "class org.jsoup.nodes.LeafNode overrides final method childNodeSize.()I".
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@3099dc9d' was successfully initialized, but failed to start. Please see the attached cause exception "class org.jsoup.nodes.LeafNode overrides final method childNodeSize.()I".
    at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:68)

Dockerfile

FROM neo4j:3.4.9

ADD conf/neo4j.conf conf/
ADD plugins/* plugins/

Custom configuration

com.graphaware.runtime.enabled=true
com.graphaware.module.NLP.1=com.graphaware.nlp.module.NLPBootstrapper

dbms.unmanaged_extension_classes=com.graphaware.server=/graphaware
dbms.security.procedures.whitelist=ga.nlp.*,algo.*,apoc.*
dbms.security.procedures.unrestricted=algo.*

Plugins

~ $ ls -al plugins/
total 1378504
drwx------    1 neo4j    neo4j         4096 Nov 15 09:43 .
drwx------    1 neo4j    neo4j         4096 Nov 15 10:05 ..
-rwx------    1 neo4j    neo4j     10242840 Nov 15 09:35 apoc-3.4.0.3-all.jar
-rwx------    1 neo4j    neo4j     60639779 Nov 15 09:35 graphaware-nlp-3.4.9.52.15.jar
-rwx------    1 neo4j    neo4j     13982383 Nov 15 09:35 graphaware-server-community-all-3.4.9.52.jar
-rwx------    1 neo4j    neo4j     15571412 Nov 15 09:34 nlp-stanfordnlp-3.4.9.52.15.jar
-rwx------    1 neo4j    neo4j    1038970602 Nov 14 17:01 stanford-english-corenlp-2018-10-05-models.jar
-rwx------    1 neo4j    neo4j    272154566 Nov 15 05:19 stanford-french-corenlp-2018-10-05-models.jar
ikwattro commented 5 years ago

Can you test with this snapshot of neo4j-nlp https://www.dropbox.com/s/lx1ooh95ik91u07/graphaware-nlp-3.4.9.52.16-SNAPSHOT.jar?dl=0

mdijoux commented 5 years ago

It works with your provided snapshot! Thank you!