View Issue Details

IDProjectCategoryView StatusLast Update
0008056Kali LinuxKali Package Bugpublic2022-11-15 05:22
Reporterpwndumb Assigned Toarnaudr  
PriorityhighSeverityblockReproducibilityalways
Status resolvedResolutionfixed 
Product Versionkali-dev 
Fixed in Version2022.4 
Summary0008056: Neo4j Failure to start
Description

After run apt-get diss-upgrade I try start neo4j and receive follow output:

sudo neo4j console --verbose
Directories in use:
home: /usr/share/neo4j
config: /usr/share/neo4j/conf
logs: /usr/share/neo4j/logs
plugins: /usr/share/neo4j/plugins
import: /usr/share/neo4j/import
data: /usr/share/neo4j/data
certificates: /usr/share/neo4j/certificates
licenses: /usr/share/neo4j/licenses
run: /usr/share/neo4j/run
Starting Neo4j.
WARNING! You are using an unsupported Java runtime.

  • Please use Oracle(R) Java(TM) 11, OpenJDK(TM) 11 to run Neo4j.
  • Please see https://neo4j.com/docs/ for Neo4j installation instructions.
    Executing command line: /usr/lib/jvm/java-17-openjdk-arm64/bin/java -cp /usr/share/neo4j/conf/:/usr/share/neo4j/lib/ -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+TrustFinalNonStaticFields -XX:+DisableExplicitGC -XX:MaxInlineLevel=15 -XX:-UseBiasedLocking -Djdk.nio.maxCachedBufferSize=262144 -Dio.netty.tryReflectionSetAccessible=true -Djdk.tls.ephemeralDHKeySize=2048 -Djdk.tls.rejectClientInitiatedRenegotiation=true -XX:FlightRecorderOptions=stackdepth=256 -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -Dlog4j2.disable.jmx=true -Dfile.encoding=UTF-8 org.neo4j.server.CommunityEntryPoint --home-dir=/usr/share/neo4j --config-dir=/usr/share/neo4j/conf
    OpenJDK 64-Bit Server VM warning: Option UseBiasedLocking was deprecated in version 15.0 and will likely be removed in a future release.
    2022-11-14 20:01:02.220+0000 INFO Starting...
    Exception in thread "main" java.lang.LinkageError: Cannot to link java.nio.DirectByteBuffer
    at org.neo4j.internal.unsafe.UnsafeUtil.<clinit>(UnsafeUtil.java:128)
    at org.neo4j.memory.RuntimeInternals.guessHeaderSize(RuntimeInternals.java:158)
    at org.neo4j.memory.RuntimeInternals.<clinit>(RuntimeInternals.java:53)
    at org.neo4j.memory.HeapEstimator.<clinit>(HeapEstimator.java:103)
    at org.neo4j.internal.collector.RecentQueryBuffer.<clinit>(RecentQueryBuffer.java:37)
    at org.neo4j.graphdb.factory.module.GlobalModule.<init>(GlobalModule.java:212)
    at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.createGlobalModule(DatabaseManagementServiceFactory.java:273)
    at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:133)
    at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:36)
    at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:142)
    at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:95)
    at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:34)
    Caused by: java.lang.IllegalAccessException: module java.base does not open java.nio to unnamed module @781e34a9
    at java.base/java.lang.invoke.MethodHandles.privateLookupIn(MethodHandles.java:259)
    at org.neo4j.internal.unsafe.UnsafeUtil.<clinit>(UnsafeUtil.java:111)
    ... 11 more
    2022-11-14 20:01:02.292+0000 INFO Neo4j Server shutdown initiated by request
    2022-11-14 20:01:02.293+0000 INFO Stopped.
    org.neo4j.server.startup.BootProcessFailureException: Unexpected process failure. See log for info.
    at org.neo4j.server.startup.ProcessManager.run(ProcessManager.java:194)
    at org.neo4j.server.startup.BootloaderOsAbstraction.console(BootloaderOsAbstraction.java:74)
    at org.neo4j.server.startup.UnixBootloaderOs.console(UnixBootloaderOs.java:57)
    at org.neo4j.server.startup.Bootloader.console(Bootloader.java:151)
    at org.neo4j.server.startup.Neo4jCommand$Console.call(Neo4jCommand.java:56)
    at org.neo4j.server.startup.Neo4jCommand$Console.call(Neo4jCommand.java:47)
    at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
    at picocli.CommandLine.access$1300(CommandLine.java:145)
    at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
    at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
    at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
    at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
    at picocli.CommandLine.execute(CommandLine.java:2078)
    at org.neo4j.server.startup.Neo4jCommand.main(Neo4jCommand.java:166)
Steps To Reproduce

sudo neo4j console --verbose

Additional Information

First I believe that is something related to java 11but in my previous snapshot show same message and works fine:

sudo neo4j console --verbose
Directories in use:
home: /usr/share/neo4j
config: /usr/share/neo4j/conf
logs: /usr/share/neo4j/logs
plugins: /usr/share/neo4j/plugins
import: /usr/share/neo4j/import
data: /usr/share/neo4j/data
certificates: /usr/share/neo4j/certificates
licenses: /usr/share/neo4j/licenses
run: /usr/share/neo4j/run
Starting Neo4j.
Executing command line: /usr/lib/jvm/java-11-openjdk-arm64/bin/java -cp /usr/share/neo4j/conf/:/usr/share/neo4j/lib/ -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch -XX:+UnlockExperimentalVMOptions -XX:+TrustFinalNonStaticFields -XX:+DisableExplicitGC -XX:MaxInlineLevel=15 -XX:-UseBiasedLocking -Djdk.nio.maxCachedBufferSize=262144 -Dio.netty.tryReflectionSetAccessible=true -Djdk.tls.ephemeralDHKeySize=2048 -Djdk.tls.rejectClientInitiatedRenegotiation=true -XX:FlightRecorderOptions=stackdepth=256 -XX:+UnlockDiagnosticVMOptions -XX:+DebugNonSafepoints -Dlog4j2.disable.jmx=true -Dfile.encoding=UTF-8 org.neo4j.server.CommunityEntryPoint --home-dir=/usr/share/neo4j --config-dir=/usr/share/neo4j/conf
2022-11-13 00:37:44.431+0000 INFO Starting...
2022-11-13 00:37:44.709+0000 INFO This instance is ServerId{31dd0c7c} (31dd0c7c-0181-45cb-9279-b71b40391da8)
2022-11-13 00:37:45.431+0000 INFO ======== Neo4j 4.4.7 ========
2022-11-13 00:37:46.171+0000 INFO Performing postInitialization step for component 'security-users' with version 3 and status CURRENT
2022-11-13 00:37:46.171+0000 INFO Updating the initial password in component 'security-users'
2022-11-13 00:37:46.973+0000 INFO Bolt enabled on localhost:7687.
2022-11-13 00:37:47.220+0000 WARN The client is unauthorized due to authentication failure.
2022-11-13 00:37:47.541+0000 INFO Remote interface available at http://localhost:7474/
2022-11-13 00:37:47.544+0000 INFO id: 43C99F456CB812E448E02FDC347F840B9BF0DC2858D3BB402EA4B1167BA8CA02
2022-11-13 00:37:47.545+0000 INFO name: system
2022-11-13 00:37:47.545+0000 INFO creationDate: 2022-08-01T17:28:34.271Z
2022-11-13 00:37:47.545+0000 INFO Started.

The bug appears affect x64 and arm64 versions.

Activities

arnaudr

arnaudr

2022-11-15 05:22

manager   ~0017069

Fixed in the neo4j package version 4.4.7-0kali2. It was just uploaded and it should hit the mirrors in the next hours/days. Thanks for the detailed report!

Issue History

Date Modified Username Field Change
2022-11-14 20:32 pwndumb New Issue
2022-11-15 05:22 arnaudr Note Added: 0017069
2022-11-15 05:22 arnaudr Assigned To => arnaudr
2022-11-15 05:22 arnaudr Status new => assigned
2022-11-15 05:22 arnaudr Status assigned => resolved
2022-11-15 05:22 arnaudr Resolution open => fixed
2022-11-15 05:22 arnaudr Fixed in Version => 2022.4