Neo4j Enterprise Issue

Amyone who might know where this problem is coming from.

Starting Neo4j.
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
2021-05-02 14:20:28.927+0000 WARN  Use of deprecated setting dbms.backup.address. It is replaced by dbms.backup.listen_address
2021-05-02 14:20:28.941+0000 WARN  Use of deprecated setting dbms.connectors.default_listen_address. It is replaced by dbms.default_listen_address
2021-05-02 14:20:28.941+0000 WARN  Use of deprecated setting dbms.connectors.default_advertised_address. It is replaced by dbms.default_advertised_address
2021-05-02 14:20:28.943+0000 INFO  Note that since you did not explicitly set the port in dbms.connector.bolt.advertised_address Neo4j automatically set it to 7687 to match dbms.connector.bolt.listen_address. This behavior may change in the future and we recommend you to explicitly set it.
2021-05-02 14:20:28.943+0000 INFO  Note that since you did not explicitly set the port in dbms.connector.http.advertised_address Neo4j automatically set it to 7474 to match dbms.connector.http.listen_address. This behavior may change in the future and we recommend you to explicitly set it.
2021-05-02 14:20:28.944+0000 INFO  Note that since you did not explicitly set the port in dbms.connector.https.advertised_address Neo4j automatically set it to 7473 to match dbms.connector.https.listen_address. This behavior may change in the future and we recommend you to explicitly set it.
2021-05-02 14:20:28.944+0000 INFO  Note that since you did not explicitly set the port in causal_clustering.discovery_advertised_address Neo4j automatically set it to 5000 to match causal_clustering.discovery_listen_address. This behavior may change in the future and we recommend you to explicitly set it.
2021-05-02 14:20:28.944+0000 WARN  Use of deprecated setting dbms.directories.certificates. Legacy ssl policy is no longer supported.
2021-05-02 14:20:28.948+0000 WARN  Unrecognized setting. No declared setting with name: ha.pull_interval
2021-05-02 14:20:28.966+0000 INFO  Starting...
2021-05-02 14:20:38.498+0000 INFO  ======== Neo4j 4.2.5 ========
2021-05-02 14:20:38.921+0000 ERROR Failed to start Neo4j on dbms.connector.http.listen_address, a socket address. If missing port or hostname it is acquired from dbms.default_listen_address.
java.lang.RuntimeException: Error starting Neo4j database server at /var/lib/neo4j/data/databases
        at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:207) ~[neo4j-4.2.5.jar:4.2.5]
        at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:163) ~[neo4j-4.2.5.jar:4.2.5]
        at com.neo4j.server.enterprise.EnterpriseManagementServiceFactory.createManagementService(EnterpriseManagementServiceFactory.java:38) ~[neo4j-enterprise-4.2.5.jar:4.2.5]
        at com.neo4j.server.enterprise.EnterpriseBootstrapper.createNeo(EnterpriseBootstrapper.java:20) ~[neo4j-enterprise-4.2.5.jar:4.2.5]
        at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:134) [neo4j-4.2.5.jar:4.2.5]
        at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:90) [neo4j-4.2.5.jar:4.2.5]
        at com.neo4j.server.enterprise.EnterpriseEntryPoint.main(EnterpriseEntryPoint.java:25) [neo4j-enterprise-4.2.5.jar:4.2.5]
Caused by: org.neo4j.kernel.lifecycle.LifecycleException: Component 'org.neo4j.bolt.BoltServer@23c7cb18' failed to initialize. Please see the attached cause exception "No SSL policy has been configured for Bolt server".
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:424) ~[neo4j-common-4.2.5.jar:4.2.5]
        at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:65) ~[neo4j-common-4.2.5.jar:4.2.5]
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:101) ~[neo4j-common-4.2.5.jar:4.2.5]
        at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:198) ~[neo4j-4.2.5.jar:4.2.5]
        ... 6 more
Caused by: java.lang.RuntimeException: Failed to initialize SSL encryption support, which is required to start this connector. Error was: No SSL policy has been configured for Bolt server
        at org.neo4j.bolt.BoltServer.createSslContext(BoltServer.java:299) ~[neo4j-bolt-4.2.5.jar:4.2.5]
        at org.neo4j.bolt.BoltServer.createExternalProtocolInitializer(BoltServer.java:255) ~[neo4j-bolt-4.2.5.jar:4.2.5]
        at org.neo4j.bolt.BoltServer.init(BoltServer.java:162) ~[neo4j-bolt-4.2.5.jar:4.2.5]
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:403) ~[neo4j-common-4.2.5.jar:4.2.5]
        at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:65) ~[neo4j-common-4.2.5.jar:4.2.5]
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:101) ~[neo4j-common-4.2.5.jar:4.2.5]
        at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:198) ~[neo4j-4.2.5.jar:4.2.5]
        ... 6 more
Caused by: java.lang.IllegalArgumentException: No SSL policy has been configured for Bolt server
        at org.neo4j.bolt.BoltServer.createSslContext(BoltServer.java:292) ~[neo4j-bolt-4.2.5.jar:4.2.5]
        at org.neo4j.bolt.BoltServer.createExternalProtocolInitializer(BoltServer.java:255) ~[neo4j-bolt-4.2.5.jar:4.2.5]
        at org.neo4j.bolt.BoltServer.init(BoltServer.java:162) ~[neo4j-bolt-4.2.5.jar:4.2.5]
        at org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.init(LifeSupport.java:403) ~[neo4j-common-4.2.5.jar:4.2.5]
        at org.neo4j.kernel.lifecycle.LifeSupport.init(LifeSupport.java:65) ~[neo4j-common-4.2.5.jar:4.2.5]
        at org.neo4j.kernel.lifecycle.LifeSupport.start(LifeSupport.java:101) ~[neo4j-common-4.2.5.jar:4.2.5]
        at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:198) ~[neo4j-4.2.5.jar:4.2.5]
        ... 6 more
2021-05-02 14:20:38.953+0000 INFO  Neo4j Server shutdown initiated by request
2021-05-02 14:20:38.961+0000 INFO  Stopped.

Hello @fabisch_kamz :slight_smile:

It looks like there is a problem in the configuration of your database:

ERROR Failed to start Neo4j on dbms.connector.http.listen_address, a socket address. If missing port or hostname it is acquired from dbms.default_listen_address.

Regards,
Cobra

also relative to

Caused by: java.lang.IllegalArgumentException: No SSL policy has been configured for Bolt server

do you have conf/neo4j.conf parameter Configuration settings - Operations Manual

dbms.connector.bolt.tls_level

defined.

Thanks guys but i was trying to migrate from version 3.4.3 to version 4.2.4 . The different configurations is what caused the problem. I reverted back to ,3.4.3 but I'm still looking on how to migrate using apt-get since the server is hosted on Ubuntu aws instance. Any help will be appreciated.

Thanks everyone for your response. I was able to find the problem. Database Migration in aws can be pretty hectic especially if you are not the one who set it up. It is for that reason i have decided to create a blog post to illustrate the steps needed to perform the migration especially for first time users. I'll post the link here one's I'm done.

@fabisch_kamz How you resolved this issue mate?
I am exact same issue.

Awaiting for your blog :slight_smile:

1 Like