Failed to start NEo4j instance deployed on Amazon EC2

All I did was add the following line to the neo4j.template:


And I keep getting the following error in the logs:[14410]: Failed to start Neo4j on At least one of the addresses or is already in use, cannot bind to it.[14410]: 2020-11-19 06:04:35.751+0000 ERROR Failed to start Neo4j on dbms.connector.http.listen_address, a socket address. If f missing port or hostname it is acquired from dbms.default_listen_address. Error starting Neo4j database server at /var/lib/neo4j/data/databases[14410]: java.lang.RuntimeException: Error starting Neo4j database server at /var/lib/neo4j/data/databases

Any tips or info on why this keeps happening? EDIT: I've ensured port 443 is not in use.

if you change


do a different port number, for example


which is the default Neo4j https port, do you continue to experience failure?

Steps to start Neo4j in EC2:

  1. Launch EC2 instance using AMI
  2. Download and set up openVPN
  3. set up public and private subnet inside VPC
  4. set up security groups
  5. set up NAT gateway in side public subnet to allow private subnet to access the internet
1 Like

I can't use port 7473 as it is not compatible with Cloudflare's proxy. However, changing from port 443 to any one of the other HTTPS ports supported by Cloudflare solved the problem. Though that doesn't explain why Neo4j wasn't able to start when I set dbms.connector.https.listen_address=

This is a better setup than what I currently have. Will try this in the future. Thanks!