jenkins localhost:8080 is not reached "localhost refused to connect" - jenkins

when I want to get in to Jenkins localhost:8080 (I already have account)from browser, it is not reachable something like this
"This site can’t be reached"
"localhost refused to connect."
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
But, when I rerun the Jenkins war file from Cmd and keeping that specific Cmd window open, then localhost:8080 opens from browser. I did off firewall stuff but not working. any idea?

Related

Docker containers not accessible from internet (using jwilder's nginx+letsencrypt solution)

I have been using the jwilder's nginx + letsencrypt solution to access my containers online.
Last week my server crashed and after a restart, I couldn't access any of my containers from the internet. Accessing them from LAN works but I get "refused to connect" errors when I use the web address (I'm using DDNS with a domain I own).
Checking the logs, I immediately saw errors in letsencrypt logs like:
:Verify error:: Fetching http:///.well-known/acme-challenge/oSGmRMyB-df4XEN3ZW-8ksBvtxxO8m2Di50mhpWWuu8: Connection refused
I have already double checked port forwarding on my Router and things seem to be ok. I can even use port 22 to SSH into my machine, just to validate that the port forwarding is working.
I also checked UFW status, thinking of firewall issues on my server and UFW is inactive as well.
Any suggestions on how can I debug this further?

PhpStorm remote development access to remote http with browser

I setup remove development with PhpStorm - works fine. But how can I connect to the website provided with remote machine?
Is it possible to make some proxy / tunnel or something ?
On the remote host I have docker containers that provide hosts like http://myapp.demo.
i see in /etc/hosts on remote i have
172.25.0.3 myapp.demo
so its local subnetwork for remote.
When i create proxy its not accessible for local.
Also i try ssh connection with -X forward and try run browser example firefox but get
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
Error: cannot open display: localhost:10.0
So remote desktop like vnc only way ?
Since 2022.3, you can forward ports in Backend Status Details:

After changing the jenkins port from 8080 to 80, the jenkins server is not accessible in Browser

I changed the HTTP_PORT=8080 to 80 from sudo vi /etc/default/jenkins and restarted the jenkins service and it is in active state in UBUNTU.
But I am unable to access with the port changed to 80. It is showing Connection refused error in chrome browser. How to resolve this? Please help, as it is on high priority.

Not able to connect to jenkins on localhost

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.

Proxy error when accessing jenkins

When i access jenkins i get this error-
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.
Reason: Error reading from remote server
i tried the init script to restart jenkins but it fails saying 8080 is already in use. I changed the jenkins default port but i still get the above error. any pointers on how to solve this?
Easiest thing:
Stop the web server on which you are running jenkins.
Run netstat -a.
Is port 8080 in use?
If it is, you will need to change the port of the web server to something other than 8080. (9090 is easy to remember).
If 8080 is in use, you should have received an error when you tried to start up the web server. Check the log for the web server.
Incidentally, did you really mean you changed the jenkins default port? Or is this the default port of the web server to which jenkins is running?

Resources