i have installed Jenkins on ubunt2 wsl.However i am unable to download any plugin as my jenkins installed is unale to connect to internet.Can anyone please guilde me on this?
We need to do Network reset
Open Command Prompt as an Administrator and type these commands:
netsh winsock reset
netsh int ip reset all
netsh winhttp reset proxy
ipconfig /flushdns
Related
I'm running Ubuntu 20.4. and installed Docker by following the steps from the docs https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository .
I installed Rider from Jetbrains Toolbox and want to setup Docker for my project. The Docker plugin is installed by default. I made sure that Docker is running via systemctl status docker.
I followed this guide on how to setup Docker for Rider https://blog.jetbrains.com/dotnet/2018/07/18/debugging-asp-net-core-apps-local-docker-container/ but unfortunately I get this error
Cannot connect:
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection
refused: localhost/127.0.0.1:2375 caused by:
java.net.ConnectException: Connection refused
What is missing or wrong?
In that dialog, check "Unix socket".
This will contact the Docker daemon via the special file /var/run/docker.sock. You may need to adjust your user's permissions (typically by making yourself a member of the docker group) to get access to that file.
The "TCP socket" option is for an unusual and hard-to-securely-configure mode of connecting to Docker. (Anyone who can run any docker command can run a container as root, and bind-mount any file from the host; you really don't want to make this level of access network-accessible.) You shouldn't ever need the TCP socket mode..
I am following a course to setup Jenkins pipeline in a Linux VM.
My host machine is MacOS-mojave.
1) I started the CentOs VM via VirtualBox.
2) I SSH ed to the VM via Terminal in Mac with root user.
3) I installed Jenkins in VM. All successful.
4) I checked in a browser in the VM and Jenkins is running in port 8080.
5) I added the VM host name 'osboxes 'to Mac hosts file.
6) I cleared the DNS cache using sudo killall -HUP mDNSResponder
7) Went to the browser and hit osboxes:8080. Safari saying not able to connect.
8) I did nc -vz 192.168.1.13 8080..it says connection refused
9) I did ping 192.168.1.3 from Mac terminal and it is giving me data.
What is the problem here. Please help
In the Virtual Box configure a host only network and assign it to the Jenkins VM. I haven't tried that approach using hostname, but what I do is put a static IP to the VM so I always know it's IP... Then I can put a record on the hosts file.
I am assuming that you are using NAT networking on the VM.
I installed Jenkins in a linux VM using .war file and
it showed "Jenkins is up and running". So I assume it is installed successfully.
Next, when I tried http://localhost:8080, it is showing "Connection Refused".
Also when I tried to do netstat, I am not able to see 8080 port.
So, I guess it is a firewall issue or are there any other settings I am missing.
I am trying to integrate SonarQube and Jenkins, for which I have installed both these tools on a remote Vagrant VM (Ubuntu 14.04 LTS).
Everything is working fine, the build is successful when I run the SonarQube analysis in Jenkins, but I am not able to open the Sonar dashboard at http://<myipaddress>:port from my windows (local) machine.
When the build is successful in Jenkins, it gives me a URL so as to browse the Analysis report but this URL gives me ERR_CONNECTION_TIMED_OUT.
Options I have tried so far:
Tried disabling Ubuntu firewall
When I perform tracert from Windows, it gives me 'Destination host unreachable'.
When I try pinging my remote machine from Windows machine, it gives me request timed out error.
Tried checking sonarqube logs which do not show any error.
I tried other options as well but none seems to work. It will be of great help if anyone can guide me through this. I am not quite able to figure out how to open SonarQube's dashboard in my local machine through a web browser, while it has been installed at a remote machine.
Thank you in advance!
Make sure that the firewall allows the port of SonarQube to be accessible from other networks.
Run the following command to check if the SonarQube port is open or not:
sudo ufw status verbose
If your firewall is disabled this command will give you the following output:
Status: inactive
In this case enable your firewall by running sudo ufw enable and then again run
sudo ufw status verbose
It will give you an output like the following:
If the output doesn't show SonarQube port then enable its port by using the following command:
sudo ufw allow <SONAR_PORT>/tcp
This will allow your SonarQube port to be accessible.
I have Jenkins on a linux server and I want to set up slave on windows virtual machine.
I created simple slave node, with launch method: JNLP.
There is no firewall on the windows machine.
I can connect both via ssh, also I can connect from linux to windows on port 52263 and from windows to linux on port 135.
Still when I try to launch the slave, it cannot be connected.
What should I check? Where could be the problem?
Then I try to connect windows slave I have to open ports at Linux firewall and set static TCP port for JNLP agents at http://jenkinsurl:8080/configureSecurity/
Also you can see extra errors at windows java console.
Choose "Launch Method as Launch agent via Java Web Start" and provide proper "Remote root directory". For more information, please go through https://wiki.jenkins-ci.org/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines