Not able to connect to jenkins on localhost - jenkins

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.

Related

docker.sock forwarding through ssh tunnel returns "page not found"

I'm trying to access the contents of remote docker containers on a linux server from my windows machine by forwarding the remote docker socket over SSH. However, the localhost port I am forwarding it to just gives me {"message":"page not found"}, and the remote docker containers are not detected.
Ideally, I want to access the contents of the remote containers in VSCode. I've been following their walkthrough (https://code.visualstudio.com/docs/remote/containers-advanced#_option-2-connect-using-an-ssh-tunnel) on how to connect to a remote docker container. Per their walkthrough, I've also made sure to set "AllowStreamLocalForwarding yes" on the server's sshd_config
C:\Users\me> ssh -nNT -L localhost:23750:/var/run/docker.sock user#remote_server
goto http://localhost:23750/:
{"message":"page not found"}
Following the VSCode instructions:
In settings,
"docker.host":"tcp://localhost:23750"
however, clicking "Remote-Containers: Attach to a Running Container" only lists my local containers, to the server ones
I've not gotten any error messages from following these steps; however, I still don't have any access to the remote docker containers
Solved - I was entering the docker.host setting wrong on vscode
(I had entered
"docker.host":""tcp://localhost:23750""
instead of
"docker.host":"tcp://localhost:23750"
)
Sorry for spam

Connect to weblogic server running inside docker container from Intellij IDEA

I have Weblogic server running in Docker. Dockerfile can be found here: https://github.com/oracle/docker-images/tree/master/OracleWebLogic/dockerfiles/12.1.3
I also enabled Weblogic integration in Intellij IDEA and created following run config:
I'm running it on Windows 7, so 192.168.99.100 is default IP address assigned to VirtualBox VM where docker engine runs in.
Port 20180 is the result of port mapping
When I click Test Connection, it timeouts with exception
Error connecting to the Application Server: com.intellij.javaee.process.common.WrappedException: java.io.IOException: t3://192.168.99.100:20180: Bootstrap to: docker.homecredit.net/192.168.99.100:20180' over: 't3' got an error or timed out while trying to connect to docker.homecredit.net/192.168.99.100:20180
What should I do to make it working?
Why am I required to specify Application Server, when I connect to remote server (I chose remote run config type)

Cannot open SonarQube in web-browser

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.

Jenkins: Cannot connect slave to master

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

cloudera cluster installation failed on docker

I am very new to cloudera. I'm trying to add a host in cloudera manager but it fails with following error
Installation failed. Failed to receive heartbeat from agent.
Ensure that the host's hostname is configured properly.
Ensure that port 7182 is accessible on the Cloudera Manager Server (check firewall rules).
Ensure that ports 9000 and 9001 are not in use on the host being added.
Check agent logs in /var/log/cloudera-scm-agent/ on the host being added. (Some of the logs can be found in the installation
details).
If Use TLS Encryption for Agents is enabled in Cloudera Manager (Administration -> Settings -> Security), ensure that
/etc/cloudera-scm-agent/config.ini has use_tls=1 on the host being
added. Restart the corresponding agent and click the Retry link here.
I'm running cloudera-quickstart-vm (https://github.com/caioquirino/docker-cloudera-quickstart) in a docker container running on ubuntu based google cloud VM.
I create a tunnel to cloudera manager using PuTTY on port 172.17.xx.1:7180 where the IP is the docker IP. I access it in browser as localhost:7180
This same IP resolves as hostname in first step of adding new host.
When I run "hostname" command in my container, I get the container id e.g. 0cb223fcfe64. If I try to add this as a hostname I get message "Could not connect to host"
How can I resolve these errors and add a new host?
I have reviewed other similar posts on stackoverflow and cloudera forum but none of the solutions worked for me. If any more information is required, let me know and I will try to provide more details.
Any help will be appreciated.

Resources