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

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.

Related

Can't access Neo4j community version in the browser (installed on a Linux virtual machine in 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.

Can't connect to documentdb emulator in virtualbox

I am trying to setup a DocumentDB emulator on my Win7 local, then found out it only supports Windows 10.
then I installed the emulator on Windows10 VirtualBox, I have no problem seeing the Emulator page using localhost.
however, when I try to connect from my Win7 local box to the emulator on Win10 virtualbox, I can't get a connection (either from browser pointing to https://localhost:8081/... or from code).
Is the DocumentDB Emulator only accessible from the machine running it?
i turned off windows firewall on Win10
I ran Emulator on port 443 on Win10
Virtualbox network config: NAT Port forwarding 8081 to 443 (i have similar config for SSH from Win7 to Linux VB that works)
thanks in advance
I had the same problem, this is how I succeeded.
First, install DocumentDBEmulatorCertificate from your VM to the host, as a trusted certificate. Here you can find how to export it.
Then forward a port to 8081 with netsh:
netsh interface portproxy add v4tov4 listenport=64000 connectport=8081 connectaddress=127.0.0.1

Unable to Connect Jenkins Windows 10 Slave to Master running

My environment:
Master:
Azure VM running Ubuntu 14.10
Docker (1.9) running Jenkins Image
I have added port 8080 (for UI) and 50000 (for slave) as endpoints on the Azure VM.
Slave:
Windows 10 (running on Mac via BootCamp)
Configured the firewall to allow inbound and outbound traffic on port 50000 (that slave jnlp seems to be using).
I can access my Jenkins Master install over the web. I am trying to configure the slave on my Windows 10 m/c. I have tried all 3 methods to configure the slave.
Each time after several retries, the slave throws the "Connection Refused" error (screenshot attached).
Slave Error Screenshot
Can someone help point me in the right direction? I have little knowledge of Linux systems but proficient with Windows.
I have tried the workaround here but it hasn't worked for me.
There's three things that I think you can check here:
Check that you expose port 50000 on your Jenkins docker container. Check for the Dockerfile, there must be a clause EXPOSE 5000 or something. Or when you run your container run it with something like this: docker run -it -p 50000:50000 which maps local post 50000 to the containers port 50000.
Check that you don't have any security rules on Azure blocking port 50000 to your Azure VM. Don't know about Azure but in AWS you allow port 50000 in your security group(s).
Check your Azure VM's firewall. Is it Windows? Check the firewall and allow port 50000. Is it Linux ? Check iptables and allow port 50000.
Hope it helps.

How can I use multicast in a Win7 VM on Linux?

I'm using Ubuntu 14.04 LTS on my laptop to host a Windows 7 VirtualBox instance. What I want to do is connect the laptop to a network (either wired or wireless) then run an app in the Windows VM that connects to an IPv4 multicast. The app is written in Qt 4.8.2 and I'm running it in QtCreator. When I run the app it fails to join the multicast group:
QUdpSocket *udpSocket = new QUdpSocket(this);
bResult = udpSocket->bind(port, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint);
bResult = udpSocket->joinMulticastGroup(address);
If I step into joinMulticastGroup() I can see setsockopt() returns -1. This code works fine in native Windows. I've tried attaching the VM network to NAT or a Bridged Network to eth0 (with Promiscuous Mode set to Allow All) but neither works.
Does VirtualBox just not allow this or is there some setting somewhere I need to adjust, either in the VM or on the Linux host?
Note: I can't run the Qt app in Linux because it depends on third-party libraries that are only built for Windows.
Try setting Promiscious Mode to "Allow All" on the VMs network adapter in Virtualbox.
In the end I fixed it accidentally by following up on a USB problem I was having - thanks to Ramon Suarez for his answer to VirtualBox doesn't recognize USB.

Linux to windows connection refused

I'm sure my lack of linux knowledge is what's causing this problem. I created a program in C# which uses QuickFix to do various things. I need this program to run on linux so I created an ubuntu virtual machine and recompiled the program with mono. The application starts ok but can't connect to my simulated exchange running on a windows machine. The error log returns Connection failed: Connection refused.
Could it be that I haven't setup linux properly?
Thanks
See if your VM can actually connect to that port (while the windows application is listening) with telnet:
telnet <ip> <port>
If telnet can't connect to the port, then you should probably check your VM network configuration, the interface configuration on ubuntu, and probably the firewall (both on windows and linux). Run ifconfig to see how your network is configured.

Resources