0
votes

I tried to install Neo4j community edition on a VM in Azure, I can't access it in the browser.

I did this:

  1. Created a virtual machine in Azure on which you can host a Neo4j community version server I choose Linux (Ubuntu 18.04) virtual machine in Azure

  2. Connect to the virtual machine throught Azure CLI and start installing

  3. Installed Java 11 throught Azure CLI

  4. Installed the latest Neo4j community version throught Azure CLI

  5. Setted up Neo4j to be accessible over the internet: sudo vim /etc/neo4j/neo4j.conf

  6. Add/edit the following lines to the config file:

    dbms.connector.bolt.enabled=true dbms.connector.bolt.listen_address=0.0.0.0:7687 dbms.connector.http.enabled=true dbms.connector.http.listen_address=0.0.0.0:7474

  7. To access port 7474 from outside the Linux machine, I added it to the inbound port rules for the virtual machine (but I'm not sure if I did it wright)

enter image description here

Inbound security rules:

enter image description here

  1. I tried to access to Neo4j in the browser with: http://<ip_adress_of_vm>:7474

But 8) doesn't work: ERR_CONNECTION_REFUSED. I don't know if it is the best method to install Neo4j community version in a Linux virtual machine.

What do I have to change to succeed in opening this in the browser ? Maybe I did bad 7) ?

1
Can you share the screenshot of the inbound rules? I need to know what rules you have created. And do you access the Neo4j inside the VM? - Charles Xu
Hello @CharlesXu, I just founded my mistake. I have forgotten to add the 7474 & 7687 in inbound rules. Thank you for your time. - LJRB
Well, I will add an answer and if you do not mind, please accept it. - Charles Xu
Hello @CharlesXu I'm going to share the screenshot off the inbound rules because I still have a problem with the VM. Sorry I did not understand 'And do you access the Neo4j inside the VM?' You will see an update of the post with the screenshot. - LJRB
Access the Neo4j inside the VM is to test if the Neo4j works fine without the NSG rules. - Charles Xu

1 Answers

0
votes

According to the messages you provided, the problem is that you do not add the Inbound rules for ports 7474 and 7687 to allow the traffic.