I am running Ubuntu Jammy 64 vagrant box and am trying to install Jenkins. I have followed the steps given here: https://www.jenkins.io/doc/book/installing/linux/
The Jenkins service is running in Ubuntu. I am getting the following message when I do a status check:
● jenkins.service – Jenkins Continuous Integration Server
Loaded: loaded (/lib/systemd/system/jenkins.service; enabled; vendor prese>
Active: active (running) since Tue 2024-05-07 12:02:06 UTC; 1 day 16h ago
Main PID: 5659 (java)
Tasks: 39 (limit: 1102)
Memory: 288.9M
CPU: 4min 48.343s
CGroup: /system.slice/jenkins.service
└─5659 /usr/bin/java -Djava.awt.headless=true -jar /usr/share/java>
May 07 12:00:58 ubuntu-jammy jenkins[5659]: 86f6cb3d0ea0470c95c8d71d1b67ef9e
May 07 12:00:58 ubuntu-jammy jenkins[5659]: This may also be found at: /var/lib>
May 07 12:00:58 ubuntu-jammy jenkins[5659]: ***********************************>
May 07 12:00:58 ubuntu-jammy jenkins[5659]: ***********************************>
May 07 12:00:58 ubuntu-jammy jenkins[5659]: ***********************************>
May 07 12:02:06 ubuntu-jammy jenkins[5659]: 2024-05-07 12:02:06.446+0000 [id=32>
May 07 12:02:06 ubuntu-jammy jenkins[5659]: 2024-05-07 12:02:06.513+0000 [id=24>
May 07 12:02:06 ubuntu-jammy systemd[1]: Started Jenkins Continuous Integration>
May 07 12:02:07 ubuntu-jammy jenkins[5659]: 2024-05-07 12:02:07.862+0000 [id=49>
May 07 12:02:07 ubuntu-jammy jenkins[5659]: 2024-05-07 12:02:07.865+0000 [id=49>
I have checked that the port number configured for the service is 8080. My problem is: When I try to run Jenkins on localhost:8080 OR localhost:8080/jenkins the page is not loading and I am getting localhost cannot connect error:
This site can’t be reachedlocalhost refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
My question is: Are there any extra steps to execute in order to run Jenkins service which is installed in Vagrant box?
I expected the Jenkins landing page to open when I start it on localhost, since the service is already running on ubuntu vagrant box. However the page is not loading and I am getting localhost cannot connect error.
Please help.