Database failed to start

Database failed to start: DB [database-73f44ca9-7fd7-4749-93fd-bdeb4384d002] 'v3.5.2' exited with status 'KILLED'. Check the logs

Whenever I shutdown a database restart it, I get an option to fix configuration and then the above message comes. How to solve this issue?

How do you start your database.

Can you share the logs.

2019-03-10 08:22:43.557+0000 INFO ======== Neo4j 3.5.2 ========
2019-03-10 08:22:43.565+0000 INFO Starting...
2019-03-10 08:22:45.397+0000 INFO Initiating metrics...
2019-03-10 08:22:51.909+0000 INFO Sending metrics to CSV file at C:\Users\13565987.Neo4jDesktop\neo4jDatabases\database-d236e1cc-674c-499f-b298-5caf0b4c13a6\installation-3.5.2\metrics
2019-03-10 08:22:52.793+0000 INFO Bolt enabled on 127.0.0.1:11015.
2019-03-10 08:22:54.846+0000 INFO Started.
2019-03-10 08:22:54.945+0000 WARN Server thread metrics not available (missing neo4j.server.threads.jetty.all)
2019-03-10 08:22:54.950+0000 WARN Server thread metrics not available (missing neo4j.server.threads.jetty.idle)
2019-03-10 08:22:55.086+0000 INFO Mounted REST API at: /db/manage
2019-03-10 08:22:55.117+0000 INFO Mounted unmanaged extension [org.neo4j.graphql] at [/graphql]
2019-03-10 08:22:55.207+0000 INFO Server thread metrics have been registered successfully
2019-03-10 08:22:55.768+0000 WARN The following warnings have been detected with resource and/or provider classes:
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.ManagementResource.get(java.lang.String,java.lang.String), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.ManagementResource.options(javax.ws.rs.core.HttpHeaders), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.ManagementResource.executeOperation(java.lang.String), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.GraphQLResource.get(java.lang.String,java.lang.String), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.GraphQLResource.options(javax.ws.rs.core.HttpHeaders), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.GraphQLResource.executeOperation(java.lang.String), with URI template, "", is treated as a resource method
2019-03-10 08:22:56.200+0000 INFO Remote interface available at http://localhost:11016/
2019-03-10 08:23:13.830+0000 WARN The client is unauthorized due to authentication failure.
2019-03-11 04:52:00.198+0000 INFO ======== Neo4j 3.5.2 ========
2019-03-11 04:52:00.206+0000 INFO Starting...
2019-03-11 04:52:01.908+0000 INFO Initiating metrics...
2019-03-11 04:52:08.130+0000 INFO Sending metrics to CSV file at C:\Users\13565987.Neo4jDesktop\neo4jDatabases\database-d236e1cc-674c-499f-b298-5caf0b4c13a6\installation-3.5.2\metrics
2019-03-11 04:52:08.563+0000 INFO Bolt enabled on 127.0.0.1:11015.
2019-03-11 04:52:10.598+0000 INFO Started.
2019-03-11 04:52:10.814+0000 INFO Mounted REST API at: /db/manage
2019-03-11 04:52:10.834+0000 INFO Mounted unmanaged extension [org.neo4j.graphql] at [/graphql]
2019-03-11 04:52:10.901+0000 INFO Server thread metrics have been registered successfully
2019-03-11 04:52:11.447+0000 WARN The following warnings have been detected with resource and/or provider classes:
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.ManagementResource.get(java.lang.String,java.lang.String), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.ManagementResource.options(javax.ws.rs.core.HttpHeaders), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.ManagementResource.executeOperation(java.lang.String), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.GraphQLResource.get(java.lang.String,java.lang.String), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.GraphQLResource.options(javax.ws.rs.core.HttpHeaders), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.GraphQLResource.executeOperation(java.lang.String), with URI template, "", is treated as a resource method
2019-03-11 04:52:12.035+0000 INFO Remote interface available at http://localhost:11016/
2019-03-11 04:52:34.540+0000 WARN The client is unauthorized due to authentication failure.
2019-03-12 05:48:21.342+0000 INFO ======== Neo4j 3.5.2 ========
2019-03-12 05:48:21.351+0000 INFO Starting...
2019-03-12 05:48:23.307+0000 INFO Initiating metrics...
2019-03-12 05:48:29.821+0000 INFO Sending metrics to CSV file at C:\Users\13565987.Neo4jDesktop\neo4jDatabases\database-d236e1cc-674c-499f-b298-5caf0b4c13a6\installation-3.5.2\metrics
2019-03-12 05:48:30.323+0000 INFO Bolt enabled on 127.0.0.1:11015.
2019-03-12 05:48:32.540+0000 INFO Started.
2019-03-12 05:48:32.882+0000 INFO Mounted REST API at: /db/manage
2019-03-12 05:48:32.912+0000 INFO Mounted unmanaged extension [org.neo4j.graphql] at [/graphql]
2019-03-12 05:48:32.966+0000 WARN Server thread metrics not available (missing neo4j.server.threads.jetty.all)
2019-03-12 05:48:33.024+0000 INFO Server thread metrics have been registered successfully
2019-03-12 05:48:33.575+0000 WARN The following warnings have been detected with resource and/or provider classes:
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.ManagementResource.get(java.lang.String,java.lang.String), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.ManagementResource.options(javax.ws.rs.core.HttpHeaders), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.ManagementResource.executeOperation(java.lang.String), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.GraphQLResource.get(java.lang.String,java.lang.String), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.GraphQLResource.options(javax.ws.rs.core.HttpHeaders), with URI template, "", is treated as a resource method
WARNING: A sub-resource method, public final javax.ws.rs.core.Response org.neo4j.graphql.GraphQLResource.executeOperation(java.lang.String), with URI template, "", is treated as a resource method
2019-03-12 05:48:33.999+0000 INFO Remote interface available at http://localhost:11016/

Please debug.log not neo4j.log

Sorry I didn't get you...please could you elaborate

Do you have APOC or other plugins installed? Try removing those. If that works, then just make sure you have the latest versions of the plugins when you reinstall

1 Like

What I have started doing now while is while shutting down, I stop the database....So far I have not faced issues but I don't know if that is the right solution or not

"while shutting down" - Are you saying you're shutting down the machine while the database is still running? I would recommend gracefully shutting down the database and any other applications before shutting down the machine. This way you'll ensure the database application has had it's chance to close connections, finish committing any transactions, releasing file locks etc... before the O/S decide to power down the machine.

I meant I was closing the Neo4J Desktop app while the database was running. I think that might have been the problem. I am not sure yet though if this was the case...

There is a bugfix coming for desktop not shutting down the JVM correctly on Windows in some circumstances.

2 Likes

Is this still an issue? I am facing the same thing. I'm on a Windows 10 box. And it never fails. Every time I gracefully exit, it says that my database was "killed" and I lose all my nodes, relationships, and attributes.

Hey, Astayonix. I restore my databases through following steps, I hope it can help you too.

  1. Use the neo4j-admin dump command in Terminal console, to create a backup file,
  2. Then create a new graph,
  3. Open the terminal in new graph, use neo4j-admin load function to restore the backup file into it.
  4. Start the new graph, check if the nodes and etc. are back.

Thanks! I had the same issue and removing the plugins worked for me.