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.

Can't stop database in console

Dear all,
I'm running neo4j 3.5.5 on Windows. When running .\neo4j console, I used to get:

PS C:\users\hafnerm\OneDrive - Deutsche Welle\daten\web\htdocs\neo4j-community-3.5.5\bin> .\neo4j console
2020-02-04 16:31:52.590+0000 WARN dbms.active_database is deprecated.
2020-02-04 16:31:52.614+0000 INFO ======== Neo4j 3.5.5 ========
2020-02-04 16:31:52.634+0000 INFO Starting...
2020-02-04 16:32:03.438+0000 INFO Bolt enabled on 127.0.0.1:7687.
2020-02-04 16:32:05.642+0000 INFO Started.
2020-02-04 16:32:07.103+0000 INFO Remote interface available at http://localhost:7474/

When pressing CTRL+C, the server used to stop: Everything fine.

All of a sudden, I don't get any messages when starting, and the server keeps running after CTRL+C. (Return to shell prompt, nothing happens.) I can still run queries via localhost:7474, and I can still run cypher-shell. (There is no neo4j service running. (neo4j status negative))

I seem to have to leave Windows to stop the server. I'm completely at a loss...

Any ideas?

Thanks in advance,
Michael

With verbose:
PS C:\users\hafnerm\OneDrive - Deutsche Welle\daten\web\htdocs\neo4j-community-3.5.5\bin> .\neo4j console -Verbose
AUSFÜHRLICH: Neo4j Root is 'C:\users\hafnerm\OneDrive - Deutsche Welle\daten\web\htdocs\neo4j-community-3.5.5'
AUSFÜHRLICH: Neo4j Server Type is 'Community'
AUSFÜHRLICH: Neo4j Version is '3.5.5'
AUSFÜHRLICH: Neo4j Database Mode is ''
AUSFÜHRLICH: Console command specified
AUSFÜHRLICH: Java detected at 'C:\Program Files\Java\jre1.8.0_212\bin\java.exe'
AUSFÜHRLICH: Invoking "C:\Program Files\Java\jre1.8.0_212\bin\java.exe" -version 2>&1
AUSFÜHRLICH: Command returned with exit code 0
AUSFÜHRLICH: Java version response: java version "1.8.0_212"
Java(TM) SE Runtime Environment (build 1.8.0_212-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode)
AUSFÜHRLICH: Java Version detected as 1.8.0_212
AUSFÜHRLICH: Starting Neo4j as a console with command line C:\Program Files\Java\jre1.8.0_212\bin\java.exe -cp "C:\users\hafn
erm\OneDrive - Deutsche Welle\daten\web\htdocs\neo4j-community-3.5.5/lib/;C:\users\hafnerm\OneDrive - Deutsche Welle\daten\w
eb\htdocs\neo4j-community-3.5.5/plugins/
" -server -Dlog4j.configuration=file:conf/log4j.properties -Dneo4j.ext.udc.source=zi
p-powershell -Dorg.neo4j.cluster.logdirectory=data/log -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch -XX:+U
nlockExperimentalVMOptions -XX:+TrustFinalNonStaticFields -XX:+DisableExplicitGC -Djdk.tls.ephemeralDHKeySize=2048 -Djdk.tls.
rejectClientInitiatedRenegotiation=true -Dunsupported.dbms.udc.source=zip -Dfile.encoding=UTF-8 org.neo4j.server.CommunityEnt
ryPoint --config-dir="C:\users\hafnerm\OneDrive - Deutsche Welle\daten\web\htdocs\neo4j-community-3.5.5\conf" --home-dir="C:
users\hafnerm\OneDrive - Deutsche Welle\daten\web\htdocs\neo4j-community-3.5.5"
AUSFÜHRLICH: Returned exit code 1

2 REPLIES 2

oleg_neo4j
Graph Buddy

Hi
Have you checked if Ctrl-C stops/breaks other commands at the prompt? Try running a ping:

ping -t google.com

and see if Ctrl-C stops it. Are you in an Admin window? There might be something that changed in the defaults of the cmd windows too... in the menu if you click on the icon in the top left corner of the cmd window.

Hi Oleg!
Thanks for the tip! CTRL+C works fine (e.g. with ping (Working with powershell as admin)).

On first start (after start of Windows session), neo4j starts w/o the usual messages...
2020-02-04 16:31:52.634+0000 INFO Starting...
2020-02-04 16:32:03.438+0000 INFO Bolt enabled on 127.0.0.1:7687.

Strange, but it starts. When starting verbose, it tells me:
AUSFÜHRLICH: Neo4j Root is 'C:\users\hafnerm\OneDrive - Deutsche Welle\daten\web\htdocs\neo4j-community-3.5.5'
AUSFÜHRLICH: Neo4j Server Type is 'Community'
AUSFÜHRLICH: Neo4j Version is '3.5.5'
AUSFÜHRLICH: Neo4j Database Mode is ''
AUSFÜHRLICH: Console command specified
AUSFÜHRLICH: Java detected at 'C:\Program Files\Java\jre1.8.0_212\bin\java.exe'
AUSFÜHRLICH: Invoking "C:\Program Files\Java\jre1.8.0_212\bin\java.exe" -version 2>&1
AUSFÜHRLICH: Command returned with exit code 0
AUSFÜHRLICH: Java version response: java version "1.8.0_212"
Java(TM) SE Runtime Environment (build 1.8.0_212-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode)
AUSFÜHRLICH: Java Version detected as 1.8.0_212
AUSFÜHRLICH: Starting Neo4j as a console with command line C:\Program Files\Java\jre1.8.0_212\bin\java.exe -cp "C:\users\hafn
erm\OneDrive - Deutsche Welle\daten\web\htdocs\neo4j-community-3.5.5/lib/;C:\users\hafnerm\OneDrive - Deutsche Welle\daten\w
eb\htdocs\neo4j-community-3.5.5/plugins/
" -server -Dlog4j.configuration=file:conf/log4j.properties -Dneo4j.ext.udc.source=zi
p-powershell -Dorg.neo4j.cluster.logdirectory=data/log -XX:+UseG1GC -XX:-OmitStackTraceInFastThrow -XX:+AlwaysPreTouch -XX:+U
nlockExperimentalVMOptions -XX:+TrustFinalNonStaticFields -XX:+DisableExplicitGC -Djdk.tls.ephemeralDHKeySize=2048 -Djdk.tls.
rejectClientInitiatedRenegotiation=true -Dunsupported.dbms.udc.source=zip -Dfile.encoding=UTF-8 org.neo4j.server.CommunityEnt
ryPoint --config-dir="C:\users\hafnerm\OneDrive - Deutsche Welle\daten\web\htdocs\neo4j-community-3.5.5\conf" --home-dir="C:
users\hafnerm\OneDrive - Deutsche Welle\daten\web\htdocs\neo4j-community-3.5.5"

After CTRL+C, powershell returns to prompt; the server keeps running (match(n) return * returns results).

After another .\neo4j console -Verbose, it returns (v.s.) exit code 1. No surprise, if the server's still running, I assume.

Puzzled,
Michael