I have a cloud. I restarted my cloud server and I started again my docker containers.
All my containers are working excluding Jenkins.
When I checked Jenkins on portainer
it is looking "running"
but when I want to access my Jenkins UI, I see this error
when I want to access with the IP address and port error is
"Connection Refused"
3
Answers
there is no log records in the docker container. why I dont understand.
When I tried with ip address and ports (http://...:8080/)
I'm getting "connection refused"
this happened to me after the update and upgrade on aws 2-3 days ago. Not jenkis, it was sonarqube. I lost 3 days looking for a solution, and after I update/upgrade the instance again, and reboot it, it’s started working normally. It was 502 bad gateway also. If you can, give it a try.
Mine was ubuntu.
How do you access Jenkins like
http://<IPAddress>:8080
orhttps://<Jenins-domain>
?Since they’re not much information, let me provide some insights might be helpful for you. So, portainer and Jenkins container are running on the same server, assuming it’s an EC2. This is why you see portainer UI that Jenkins "container" status is running on 8080 port.
I assume 502 Bad Gateway issue might be caused by the changed EC2 IP so your DNS, such as Route 53 isn’t resolving to the correct IP or some plugins in the Jenkins caused the Jenkins instance broken when you restarted container although the container runs.
If IP address is not in issue, then try to:
tail -f /var/log/jenkins/jenkins.log
docker logs <YOUR CONTAINER ID>
Update any error logs in your question for any further help.