Unable to get Neo4J to Start as a service

I installed the program - I install the service using the Batch File (which at this point is really only calling powershell commands) - I run those commands using an elevated powershell session. It appears to Install correctly. It will not start

Please see the output of the verbose. This output starts with me uninstalling the service prior to restarting the server, and then reinstalling the service, then attempting to start the service.

The only thing I have not attempted yet is to fully uninstall and reinstall Neo4J itself from the server.

Any assistance would be greatly appreciated! :slight_smile:

Neo4J Troubleshooting..

PS D:\neo4j-community-3.5.7\bin> .\neo4j.bat uninstall-service -verbose
VERBOSE: Neo4j Root is 'D:\neo4j-community-3.5.7'
VERBOSE: Neo4j Server Type is 'Community'
VERBOSE: Neo4j Version is '3.5.7'
VERBOSE: Neo4j Database Mode is ''
VERBOSE: Uninstall command specified
VERBOSE: Neo4j Windows Service Name is neo4j
VERBOSE: Java detected at 'C:\Program Files (x86)\AdoptOpenJDK\jre-8.0.212.03-hotspot\bin\java.exe'
VERBOSE: Invoking "C:\Program Files (x86)\AdoptOpenJDK\jre-8.0.212.03-hotspot\bin\java.exe" -version 2>&1
VERBOSE: Command returned with exit code 0
VERBOSE: Java version response: openjdk version "1.8.0_212"

OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)

OpenJDK Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode)
VERBOSE: Java Version detected as 1.8.0_212
VERBOSE: Neo4j Windows Service Name is neo4j
VERBOSE: Uninstalling Neo4j service
VERBOSE: Invoking D:\neo4j-community-3.5.7\bin\tools\prunsrv-amd64.exe "//DS//neo4j" 2>&1
VERBOSE: Command returned with exit code 0
Neo4j service uninstalled


PS D:\neo4j-community-3.5.7\bin> .\neo4j.bat install-service -verbose
VERBOSE: Neo4j Root is 'D:\neo4j-community-3.5.7'
VERBOSE: Neo4j Server Type is 'Community'
VERBOSE: Neo4j Version is '3.5.7'
VERBOSE: Neo4j Database Mode is ''
VERBOSE: Install command specified
VERBOSE: Neo4j Windows Service Name is neo4j
VERBOSE: Java detected at 'C:\Program Files (x86)\AdoptOpenJDK\jre-8.0.212.03-hotspot\bin\java.exe'
VERBOSE: Invoking "C:\Program Files (x86)\AdoptOpenJDK\jre-8.0.212.03-hotspot\bin\java.exe" -version 2>&1
VERBOSE: Command returned with exit code 0
VERBOSE: Java version response: openjdk version "1.8.0_212"

OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)

OpenJDK Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode)
VERBOSE: Java Version detected as 1.8.0_212
VERBOSE: Neo4j Windows Service Name is neo4j
VERBOSE: Reading JVM settings from configuration
VERBOSE: Adding '-XX:+UseG1GC'
VERBOSE: Adding '-XX:-OmitStackTraceInFastThrow'
VERBOSE: Adding '-XX:+AlwaysPreTouch'
VERBOSE: Adding '-XX:+UnlockExperimentalVMOptions'
VERBOSE: Adding '-XX:+TrustFinalNonStaticFields'
VERBOSE: Adding '-XX:+DisableExplicitGC'
VERBOSE: Adding '-Djdk.tls.ephemeralDHKeySize=2048'
VERBOSE: Adding '-Djdk.tls.rejectClientInitiatedRenegotiation=true'
VERBOSE: Adding '-Dunsupported.dbms.udc.source=zip'
VERBOSE: Moving -XX:+UnlockExperimentalVMOptions to the beginning
VERBOSE: Reading JVM settings from console java invocation
VERBOSE: Adding '-Dlog4j.configuration=file:conf/log4j.properties'
VERBOSE: Adding '-Dneo4j.ext.udc.source=zip-powershell'
VERBOSE: Adding '-Dorg.neo4j.cluster.logdirectory=data/log'
VERBOSE: Merging '-XX:+UseG1GC'
VERBOSE: Merging '-XX:-OmitStackTraceInFastThrow'
VERBOSE: Merging '-XX:+AlwaysPreTouch'
VERBOSE: Merging '-XX:+UnlockExperimentalVMOptions'
VERBOSE: Merging '-XX:+TrustFinalNonStaticFields'
VERBOSE: Merging '-XX:+DisableExplicitGC'
VERBOSE: Merging '-Djdk.tls.ephemeralDHKeySize=2048'
VERBOSE: Merging '-Djdk.tls.rejectClientInitiatedRenegotiation=true'
VERBOSE: Merging '-Dunsupported.dbms.udc.source=zip'
VERBOSE: Adding '-Dfile.encoding=UTF-8'
VERBOSE: Moving -XX:+UnlockExperimentalVMOptions to the beginning
VERBOSE: Installing Neo4j as a service
VERBOSE: Invoking D:\neo4j-community-3.5.7\bin\tools\prunsrv-amd64.exe "//IS//neo4j" "--StartMode=jvm" 
"--StartMethod=start" "--StartPath=D:\neo4j-community-3.5.7" "--StartParams=--config-dir=D:\neo4j-community-3.5.7\conf"
 "++StartParams=--home-dir=D:\neo4j-community-3.5.7" "--StopMode=jvm" "--StopMethod=stop" 
"--StopPath=D:\neo4j-community-3.5.7" "--Description=Neo4j Graph Database - D:\neo4j-community-3.5.7" 
"--DisplayName=Neo4j Graph Database - neo4j" "--Jvm=C:\Program Files 
(x86)\AdoptOpenJDK\jre-8.0.212.03-hotspot\bin\server\jvm.dll" "--LogPath=D:\neo4j-community-3.5.7\logs" 
"--StdOutput=D:\neo4j-community-3.5.7\logs\neo4j.log" "--StdError=D:\neo4j-community-3.5.7\logs\service-error.log" 
"--LogPrefix=neo4j-service" "--Classpath=lib/*;plugins/*" 
"--JvmOptions=-XX:+UnlockExperimentalVMOptions;-Djdk.tls.rejectClientInitiatedRenegotiation=true;-XX:+UseG1GC;-XX:+Trus
tFinalNonStaticFields;-Dneo4j.ext.udc.source=zip-powershell;-XX:+AlwaysPreTouch;-Djdk.tls.ephemeralDHKeySize=2048;-Dorg
.neo4j.cluster.logdirectory=data/log;-XX:-OmitStackTraceInFastThrow;-XX:+DisableExplicitGC;-Dunsupported.dbms.udc.sourc
e=zip;-Dlog4j.configuration=file:conf/log4j.properties;-Dfile.encoding=UTF-8" "--Startup=auto" 
"--StopClass=org.neo4j.server.CommunityEntryPoint" "--StartClass=org.neo4j.server.CommunityEntryPoint" 2>&1
VERBOSE: Command returned with exit code 0
Neo4j service installed


PS D:\neo4j-community-3.5.7\bin> .\neo4j.bat start -verbose
VERBOSE: Neo4j Root is 'D:\neo4j-community-3.5.7'
VERBOSE: Neo4j Server Type is 'Community'
VERBOSE: Neo4j Version is '3.5.7'
VERBOSE: Neo4j Database Mode is ''
VERBOSE: Start command specified
VERBOSE: Neo4j Windows Service Name is neo4j
VERBOSE: Java detected at 'C:\Program Files (x86)\AdoptOpenJDK\jre-8.0.212.03-hotspot\bin\java.exe'
VERBOSE: Invoking "C:\Program Files (x86)\AdoptOpenJDK\jre-8.0.212.03-hotspot\bin\java.exe" -version 2>&1
VERBOSE: Command returned with exit code 0
VERBOSE: Java version response: openjdk version "1.8.0_212"

OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_212-b03)

OpenJDK Server VM (AdoptOpenJDK)(build 25.212-b03, mixed mode)
VERBOSE: Java Version detected as 1.8.0_212
VERBOSE: Neo4j Windows Service Name is neo4j
VERBOSE: Starting Neo4j as a service
VERBOSE: Invoking D:\neo4j-community-3.5.7\bin\tools\prunsrv-amd64.exe "//ES//neo4j" 2>&1
VERBOSE: Command returned with exit code 5
Neo4j service did not start