Can't access Neo4j community version in the browser (installed on a Linux virtual machine in Azure) - azure

I tried to install Neo4j community edition on a VM in Azure, I can't access it in the browser.
I did this:
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
Connect to the virtual machine throught Azure CLI and start installing
Installed Java 11 throught Azure CLI
Installed the latest Neo4j community version throught Azure CLI
Setted up Neo4j to be accessible over the internet: sudo vim /etc/neo4j/neo4j.conf
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
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)
Inbound security rules:
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) ?

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.

Related

neo4j connection refused error on centos azure vm

I have installed the neo4j in centos azure vm
I am trying to access it using the my local browser outside the vm. I am trying to create a 3 tier architecture where my neo4j will be sitting in one linux centos vm. But I am not able to access the neo4j.
I have added the inbound rules for ports 8080,7474,7687,7473.
Kindly help me in hosting the neo4j in azure vm. Please let me know what is the issue or configuration needed.
> yum remove neo4j-4.2.0-1.noarch
> systemctl enable neo4j
> service neo4j start
> service neo4j status
curl -v http://ip:7474/db/data
Neo4j.conf
# Bolt connector
dbms.connector.bolt.enabled=true
dbms.connector.bolt.tls_level=OPTIONAL
dbms.connector.bolt.listen_address=:7687
#dbms.connector.bolt.advertised_address=:7687
# HTTP Connector. There can be zero or one HTTP connectors.
dbms.connector.http.enabled=true
dbms.connector.http.listen_address=:#{default.http.port}
#dbms.connector.http.advertised_address=:7474
# HTTPS Connector. There can be zero or one HTTPS connectors.
dbms.connector.https.enabled=true
#dbms.connector.https.listen_address=:7473
#dbms.connector.https.advertised_address=:7473
# To enable HTTP logging, uncomment this line
dbms.logs.http.enabled=false

Docker Xdebug LAN / Public Dev server

I want to get Xdebug running in a semi secure manner over LAN in the office. Our current setup is as follows:
Local server on LAN network under 192.168.1.1 with Ubuntu Server 16
Multiple instances of docker with PHP / Apache running on Ubuntu server
Jwilder nginx proxy for forwarding all requests to individual docker containers
https://github.com/jwilder/nginx-proxy
Files are directly edited over an internal SMB share where Windows hosts connect to the Linux share. These are the hosts running PhpStorm.
The machine is exposed to the world using port 80. LAN has access to all ports.
I'm at a bit of a loss how to properly setup Xdebug using PhpStorm where only those within our LAN can trigger the debugger and debug from map files from a Linux host on Windows.
A DBGp proxy would be the answer here.
It limits all debugging connections from the web server to a single host inside the LAN.
It allows you to perform multi-user debugging with the help of IDE keys.
JFYI, in Xdebug, it's the web server that initiates a TCP connection to the client (the DBGp proxy in this case), so some Docker networking magic is required here.

Accessing .net core website hosted on Ubuntu 16.04 through internet

I am following along this tutorial to deploy my asp.net application onto Ubuntu. I have installed .Net core 2.0 on my Ubuntu machine using this post. NO issues with that excellent article.
My VM configuration is :
user#instance-2:~/dev/mywebsite$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
I have confirm that .Net core is installed properly.
user#instance-2:~/dev/mywebsite$ dotnet --info
.NET Command Line Tools (2.0.0)
Product Information:
Version: 2.0.0
Commit SHA-1 hash: cdcd1928c9
Runtime Environment:
OS Name: ubuntu
OS Version: 16.04
OS Platform: Linux
RID: ubuntu.16.04-x64
Base Path: /usr/share/dotnet/sdk/2.0.0/
Microsoft .NET Core Shared Framework Host
Version : 2.0.0
Build : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d
Next I have created new dot net web application using below command
dotnet new web
set ASPNETCORE_URLS environment variable
export ASPNETCORE_URLS=http://+:5123
Confirmed that its set properly.
user#instance-2:~/dev/mywebsite$ echo $ASPNETCORE_URLS
http://+:5123
Ran my application using dotnet run. Can see below message on console.
user#instance-2:~/dev/mywebsite$ dotnet run
Hosting environment: Production
Content root path: /home/hemant_shelar/dev/mywebsite
Now listening on: http://[::]:5123
Application started. Press Ctrl+C to shut down.
Expected: I should be able to browse this site from internet using IP address
like : http://35.185.21.120:5123/ But I am not able to access this site from outside. Getting ERR_CONNECTION_TIMED_OUT error.
Note: 35.185.21.120 is IP address of my Ubuntu machine which is in google cloud.
Am I missing any configuration?
UPDATE 1:
I have open port 5123 using below command
sudo ufw enable
sudo ufw allow 5123
Verified that port is opened using below command:
hemant_shelar#instance-2:~/dev/mywebsite$ sudo ufw status
Status: active
To Action From
-- ------ ----
5123 ALLOW Anywhere
5123 (v6) ALLOW Anywhere (v6)
But still same issue.
UPDATE 2
I set environment variable ASPNETCORE_URLS to http://+:80
hemant_shelar#instance-2:~/dev/mywebsite$ echo $ASPNETCORE_URLS
http://+:80
hemant_shelar#instance-2:~/dev/mywebsite$ sudo dotnet run
Hosting environment: Production
Content root path: /home/hemant_shelar/dev/mywebsite
Now listening on: http://localhost:5000
Application started. Press Ctrl+C to shut down.
But when I run website its listing on port 5000. Is there any other way to expose site on port 80? e.g. in IIS we use http host header to open multiple sites on port 80.

How do I install Gitlab on a VM?

I installed Gitlab on a VMWare VM, using NAT, where the VM is running Ubuntu 16.04. Everything installed OK, but I can't access it via the browser. It says I need to configure an external URL. I only need to access the VM from my Mac (where the VM is running). How do I configure a URL so I can access it from my Mac?
Thanks!
When the VM is running locally on the Mac in NAT network config, this means that the ports are available directly on the Mac IP. If you only need to access it from the Mac itself, you could access the application at the port via the loopback (local only) IP 127.0.0.1
If gitlab is running on port 80 in the VM, on the Mac you should be able to access with http://127.0.0.1
If this doesn't work, there are a few options:
Confirm no other service/webserver is running on port 80 locally on the Mac. If there is, you should change the port of the gitlab webserver in your VM, and access using http://127.0.0.1:port
Confirm that port 80 is allowed in the VM firewall, and that the webserver is running https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-gitlab-on-ubuntu-16-04

Selenium grid ubuntu host can't create node in Windows guest

I want to create a Selenium grid hosted in my ubuntu linux 12.04.
My goal is to make this selenium grid communication with a Windows VM with a node role.
My problem is that when i create the selenium grid in the Windows VM i have this error
14:35:00.200 INFO - Registering the node to the hub: http://xxxxx:4444/grid/register
16:35:01.232 INFO - Couldn't register this node: Error sending the registration request: Connect to xxxxx:4444 [IP] failed: Connection refused: connect
My VM is a Windows XP. I try to disable the Firewall.
I'm sure that is a Ubuntu problem, because with an other Windows VM, the problem is the same. I can ping Host to Guest and Guest to Host
In ubuntu, i disable the firewall too, but nothing change.
In ubuntu i declare the hub like this
java -jar selenium-server-standalone-2.52.0.jar -role hub
In the Windows VM i declare the node like this
java -jar selenium-server-standalone-2.52.0.jar -role node
Any ideas about what is blocking the communication ? Thanks for help _
make sure during the virtualization process, the ports 4444 for the grid and 5555 for the nodes are being opened.
Then in your node role, make sure to specify the -hub parameter. when not specifying the hub parameter, it defaults to localhost.

Resources