Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot access Jenkins

I have installed Jenkins on my Ubuntu 12.04 desktop machine using this guide:

https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Ubuntu

I also needed to follow this guide:

http://aslamnajeebdeen.com/blog/how-to-fix-apache-could-not-reliably-determine-the-servers-fully-qualified-domain-name-using-127011-for-servername-error-on-ubuntu

From my other machine (mac laptop) I now try to access Jenkins through safari:

http://192.168.1.100/jenkins

where 192.168.1.100 is the ip address of my desktop machine but I get an Error 404. I have also tried:

http://jenkins

but nothing happens. What am I missing?

The Jenkins service is running on my desktop PC:

service jenkins status
...
Jenkins Continuous Integration Server is running with the pid 3713

And if I enter: localhost:8080 in a browser on my desktop pc I get the jenkins web interface.

PROBLEM SOLVED: I have followed this guide:

http://www.zzorn.net/2009/11/setting-up-hudson-on-port-80-on-debian.html

and it now works.

like image 712
u123 Avatar asked Sep 16 '12 11:09

u123


People also ask

Why Jenkins is not opening?

If you do have a problem where Jenkins on localhost 8080 is not working, verify that the JDK is installed and the Java utilities in the JDK's bin directory are on the PATH. This can be accomplished with the java -version command.

How do I access my Jenkins browser server?

To see Jenkins, simply bring up a web browser and go to URL http :// myServer :8080 where myServer is the name of the system running Jenkins.

How can I access Jenkins without port number?

If you do not want the port number to be part of the URL, then you must ensure Jenkins listens on the default port (ie, 80 for http). Use --httpPort for this. Another option is setting up a reverse proxy (listening on port 80) which forwards requests to Jenkins.


2 Answers

I had the same problem but not using Apache, rather only Jenkins on Ubuntu

I solved it by replacing HTTP_HOST=127.0.0.1 with HTTP_HOST=0.0.0.0 on /etc/default/jenkins

like image 120
user2908957 Avatar answered Sep 28 '22 09:09

user2908957


Jenkins is set to listen on port 8080 by default,
so you should point your browser to:

http://localhost:8080/
(or, in your case: http://192.168.1.100:8080/ )

EDIT:

If still not able to connect, you may wish to check your firewall settings.

like image 24
Gonen Avatar answered Sep 28 '22 09:09

Gonen