cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Problems setting up Graph Data Science library on ubunto service

Hello, I have been having some trouble getting the Graph Data Science Library running on my neo4j service, and would appreciate any help. I have been following the installation guide to install the neo4j Graph Data Science library to my neo4j 3.5.17 service, running on an ubuntu AWS instance.

Having followed the full instructions I also removed the graph-algorithms plugin as I was told the two libraries are not compatible and will cause errors.

On start up I get the following errors in my logs:

Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]: org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase@49976824' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.internal.kernel.api.procs.ProcedureCallContext".
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:45)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:184)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:123)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:90)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:32)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]: Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabase@49976824' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.internal.kernel.api.procs.ProcedureCallContext".
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:177)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         ... 3 more
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]: Caused by: java.lang.RuntimeException: Error starting org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory, /var/lib/neo4j/data/databases
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:216)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.newFacade(GraphDatabaseFacadeFactory.java:135)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.database.CommunityGraphFactory.newGraphDatabase(CommunityGraphFactory.java:40)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.server.database.LifecycleManagingDatabase.start(LifecycleManagingDatabase.java:78)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         ... 5 more
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]: Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.kernel.impl.proc.Procedures@63019596' was successfully initialized, but failed to start. Please see the attached cause exception "org.neo4j.internal.kernel.api.procs.ProcedureCallContext".
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:473)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.graphdb.facade.GraphDatabaseFacadeFactory.initFacade(GraphDatabaseFacadeFactory.java:211)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         ... 9 more
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]: Caused by: java.lang.NoClassDefFoundError: Lorg/neo4j/internal/kernel/api/procs/ProcedureCallContext;
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at java.lang.Class.getDeclaredFields0(Native Method)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at java.lang.Class.privateGetDeclaredFields(Class.java:2583)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at java.lang.Class.getDeclaredFields(Class.java:1916)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.impl.proc.FieldInjections.setters(FieldInjections.java:90)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.impl.proc.ReflectiveProcedureCompiler.compileProcedure(ReflectiveProcedureCompiler.java:296)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.impl.proc.ReflectiveProcedureCompiler.compileProcedure(ReflectiveProcedureCompiler.java:247)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProcedures(ProcedureJarLoader.java:114)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.impl.proc.ProcedureJarLoader.loadProceduresFromDir(ProcedureJarLoader.java:85)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.impl.proc.Procedures.start(Procedures.java:323)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:452)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         ... 11 more
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]: Caused by: java.lang.ClassNotFoundException: org.neo4j.internal.kernel.api.procs.ProcedureCallContext
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at java.lang.ClassLoader.loadClass(ClassLoader.java:419)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         at java.lang.ClassLoader.loadClass(ClassLoader.java:352)
Apr 22 02:01:30 ip-172-31-4-249 pre-neo4j.sh[10651]:         ... 21 more

I have also tried updating the version of apoc in my plugins to the most recent and receive the same error.

1 REPLY 1

It sounds like there might be a mismatch of versions somewhere.

Does Neo4j start up fine if you don't have anything in the plugins directory?
Can you do an ls -alh on your plugins directory from when it gave you this error message?