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.

New database won´t run in 4.0

ianrbi
Node Clone

I am a complete Neo4j newbie, except for running through the basic online training.

I have a similar problem to Tiwari.Milind from March 2019 in that a newly created database (Companies) fails to start. I have tried deleting APOC, but apparently it´s busy (I guess with the Movies db)

I get this

and then this

Here is the neo4j log

2020-01-29 15:40:51.495+0000 WARN Use of deprecated setting port propagation. port 11004 is migrated from dbms.connector.bolt.listen_address to dbms.connector.bolt.advertised_address.
2020-01-29 15:40:51.499+0000 WARN Use of deprecated setting port propagation. port 11005 is migrated from dbms.connector.http.listen_address to dbms.connector.http.advertised_address.
2020-01-29 15:40:51.529+0000 INFO ======== Neo4j 4.0.0 ========
2020-01-29 15:40:51.540+0000 INFO Starting...
2020-01-29 15:41:00.686+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabaseService@4d157493' was successfully initialized, but failed to start. Please see the attached cause exception "Address already in use: bind". Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabaseService@4d157493' was successfully initialized, but failed to start. Please see the attached cause exception "Address already in use: bind".
org.neo4j.server.ServerStartupException: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabaseService@4d157493' was successfully initialized, but failed to start. Please see the attached cause exception "Address already in use: bind".
at org.neo4j.server.exception.ServerStartupErrors.translateToServerStartupError(ServerStartupErrors.java:45)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:163)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:114)
at org.neo4j.server.ServerBootstrapper.start(ServerBootstrapper.java:89)
at com.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:25)
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.server.database.LifecycleManagingDatabaseService@4d157493' was successfully initialized, but failed to start. Please see the attached cause exception "Address already in use: bind".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:465)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:156)
... 3 more
Caused by: java.lang.RuntimeException: Error starting database server at C:\Users\Asus.Neo4jDesktop\neo4jDatabases\database-b9be551b-9446-43bd-82b9-ccd29f0e4e12\installation-4.0.0\data\databases
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:167)
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:145)
at com.neo4j.server.database.EnterpriseGraphFactory.newDatabaseManagementService(EnterpriseGraphFactory.java:38)
at org.neo4j.server.database.LifecycleManagingDatabaseService.start(LifecycleManagingDatabaseService.java:88)
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:444)
... 5 more
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'Server[backup-server]' was successfully initialized, but failed to start. Please see the attached cause exception "Address already in use: bind".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:465)
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:111)
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:158)
... 9 more
Caused by: java.net.BindException: Address already in use: bind
at java.base/sun.nio.ch.Net.bind0(Native Method)
at java.base/sun.nio.ch.Net.bind(Net.java:455)
at java.base/sun.nio.ch.Net.bind(Net.java:447)
at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:551)
at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1346)
at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:503)
at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:488)
at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:985)
at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:247)
at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:344)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:510)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:518)
at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1050)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
2020-01-29 15:41:00.687+0000 INFO Neo4j Server shutdown initiated by request

Any thoughts?

Kr
Ian

2 REPLIES 2

Try changing the ports to a unused one or kill the old running instance.
Some helpful links: https://neo4j.com/developer/kb/resolve-port-conflicts-in-neo4j-desktop/
https://neo4j.com/docs/operations-manual/current/configuration/ports/

Thanks Ganesh - shall try that now.