Db version 5.1.0 is failing to start on neo4j desktop v1.5.2

I created db v5.1.0 on neo4j desktop v1.5.2 successfully but the starting of this db keeps failing. I have no issues to create and start db 4.4.11

Ah yes,

Please see the attached cause exception "Address already in use: connect".

Neo4j 5 uses some additional ports (5001, 6001, 7001), and iirc Windows already has something running on those ports. You can edit your neo4j.conf to change to some other unused ports. The settings you would need to check:

server.discovery.listen_address
server.cluster.listen_address
server.cluster.raft.listen_address

(and also probably the advertised_address versions as well).

Hi @IgorY could you give us some more details? I just tested this, and it worked fine for me. What errors do you see? Is this a new database or one you tried upgrading?

this is new db. here is output from neo4j.log:

(c) Neo4j Sweden AB. All Rights Reserved.
Use of this Software without a proper commercial license, or evaluation license
with Neo4j,Inc. or its affiliates is prohibited.
Neo4j has the right to terminate your usage if you are not compliant.

Email inquiries can be directed to: licensing@neo4j.com

More information is also available at: https://neo4j.com/licensing/

2022-11-04 17:30:42.165+0000 WARN Use of deprecated setting 'dbms.windows_service_name'. It is replaced by 'server.windows_service_name'.
2022-11-04 17:30:42.165+0000 WARN Use of deprecated setting 'dbms.jvm.additional'. It is replaced by 'server.jvm.additional'.
2022-11-04 17:30:42.166+0000 WARN Use of deprecated setting 'dbms.memory.pagecache.size'. It is replaced by 'server.memory.pagecache.size'.
2022-11-04 17:30:42.166+0000 WARN Use of deprecated setting 'dbms.memory.heap.max_size'. It is replaced by 'server.memory.heap.max_size'.
2022-11-04 17:30:42.166+0000 WARN Use of deprecated setting 'dbms.memory.heap.initial_size'. It is replaced by 'server.memory.heap.initial_size'.
2022-11-04 17:30:42.170+0000 INFO Starting...
2022-11-04 17:30:47.653+0000 INFO ======== Neo4j 5.1.0 ========
2022-11-04 17:30:47.762+0000 INFO This instance is ServerId{75b1b12b} (75b1b12b-bd03-402e-a474-c832e4bd520a)
2022-11-04 17:30:53.183+0000 ERROR Failed to start Neo4j on localhost:7474.
java.lang.RuntimeException: Error starting Neo4j database server at C:\Users\342247160\.Neo4jDesktop\relate-data\dbmss\dbms-b63b539e-03d7-4377-bf96-a656b9adbb9a\data\databases
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:255) ~[neo4j-5.1.0.jar:5.1.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:193) ~[neo4j-5.1.0.jar:5.1.0]
at com.neo4j.server.enterprise.EnterpriseDBMSProvider.createManagementService(EnterpriseDBMSProvider.java:36) ~[neo4j-enterprise-5.1.0.jar:5.1.0]
at com.neo4j.server.enterprise.EnterpriseDBMSProvider.(EnterpriseDBMSProvider.java:28) ~[neo4j-enterprise-5.1.0.jar:5.1.0]
at com.neo4j.server.enterprise.EnterpriseDBMSFactory.createManagementService(EnterpriseDBMSFactory.java:18) ~[neo4j-enterprise-5.1.0.jar:5.1.0]
at com.neo4j.server.enterprise.EnterpriseBootstrapper.createNeo(EnterpriseBootstrapper.java:21) ~[neo4j-enterprise-5.1.0.jar:5.1.0]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:164) ~[neo4j-5.1.0.jar:5.1.0]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:85) ~[neo4j-5.1.0.jar:5.1.0]
at com.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:19) ~[neo4j-enterprise-5.1.0.jar:5.1.0]
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'com.neo4j.causalclustering.messaging.RaftChannelPoolService@5c8ab9de' was successfully initialized, but failed to start. Please see the attached cause exception "Address already in use: connect".
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:370) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:92) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:246) ~[neo4j-5.1.0.jar:5.1.0]
... 8 more
Caused by: java.lang.IllegalStateException: failed to create a child event loop
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:88) ~[netty-common-4.1.82.Final.jar:4.1.82.Final]
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:60) ~[netty-common-4.1.82.Final.jar:4.1.82.Final]
at io.netty.channel.MultithreadEventLoopGroup.(MultithreadEventLoopGroup.java:52) ~[netty-transport-4.1.82.Final.jar:4.1.82.Final]
at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:97) ~[netty-transport-4.1.82.Final.jar:4.1.82.Final]
at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:92) ~[netty-transport-4.1.82.Final.jar:4.1.82.Final]
at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:73) ~[netty-transport-4.1.82.Final.jar:4.1.82.Final]
at com.neo4j.causalclustering.net.NioBootstrapConfig.eventLoopGroup(NioBootstrapConfig.java:37) ~[neo4j-cluster-common-5.1.0.jar:5.1.0]
at com.neo4j.causalclustering.net.ChannelPoolService.start(ChannelPoolService.java:118) ~[neo4j-cluster-common-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:353) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:92) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:246) ~[neo4j-5.1.0.jar:5.1.0]
... 8 more
Suppressed: org.neo4j.kernel.lifecycle.LifecycleException: Exception during graceful attempt to stop partially started component. Please use non suppressed exception to see original component failure.
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:360) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:92) ~[neo4j-common-5.1.0.jar:5.1.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:246) ~[neo4j-5.1.0.jar:5.1.0]
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:193) ~[neo4j-5.1.0.jar:5.1.0]
at com.neo4j.server.enterprise.EnterpriseDBMSProvider.createManagementService(EnterpriseDBMSProvider.java:36) ~[neo4j-enterprise-5.1.0.jar:5.1.0]
at com.neo4j.server.enterprise.EnterpriseDBMSProvider.(EnterpriseDBMSProvider.java:28) ~[neo4j-enterprise-5.1.0.jar:5.1.0]
at com.neo4j.server.enterprise.EnterpriseDBMSFactory.createManagementService(EnterpriseDBMSFactory.java:18) ~[neo4j-enterprise-5.1.0.jar:5.1.0]
at com.neo4j.server.enterprise.EnterpriseBootstrapper.createNeo(EnterpriseBootstrapper.java:21) ~[neo4j-enterprise-5.1.0.jar:5.1.0]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:164) ~[neo4j-5.1.0.jar:5.1.0]
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:85) ~[neo4j-5.1.0.jar:5.1.0]
at com.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:19) ~[neo4j-enterprise-5.1.0.jar:5.1.0]
Caused by: java.lang.NullPointerException: Cannot invoke "io.netty.channel.EventLoopGroup.shutdownGracefully(long, long, java.util.concurrent.TimeUnit)" because "this.eventLoopGroup" is null
at com.neo4j.causalclustering.net.ChannelPoolService.stop(ChannelPoolService.java:143) ~[neo4j-cluster-common-5.1.0.jar:5.1.0]
at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.start(LifeSupport.java:358) ~[neo4j-common-5.1.0.jar:5.1.0]
... 10 more
Caused by: io.netty.channel.ChannelException: failed to open a new selector
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:179) ~[netty-transport-4.1.82.Final.jar:4.1.82.Final]
at io.netty.channel.nio.NioEventLoop.(NioEventLoop.java:146) ~[netty-transport-4.1.82.Final.jar:4.1.82.Final]
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:183) ~[netty-transport-4.1.82.Final.jar:4.1.82.Final]
at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:38) ~[netty-transport-4.1.82.Final.jar:4.1.82.Final]
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:84) ~[netty-common-4.1.82.Final.jar:4.1.82.Final]
at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:60) ~[netty-common-4.1.82.Final.jar:4.1.82.Final] ...