Deepak Prasad
Deepak Prasad

Reputation: 301

Getting HTTP ERROR 404 with Jenkins

I am getting below error when trying to access jenkins pipeline url. I tried clearing the browser cache, tried different browsers etc but no luck. the same pipeline url works fine for other users but not for me. any ideas why it throwing 404 error for me? many thanks!

HTTP ERROR 404
Problem accessing /job/jenkins/job/test/. Reason:

    Not Found
Powered by Jetty:// 9.4.z-SNAPSHOT

Upvotes: 9

Views: 54843

Answers (9)

Diwakar
Diwakar

Reputation: 21

There is a common mistake that most of the people making.(while running jenkins.war from CMD)

Please ensure that your tomcat server is 'up and running' locally.

Upvotes: 0

Lamine BA
Lamine BA

Reputation: 129

I used a docker container to start jenkins locally for a test purpose. Here is the cmd: docker run -p 8080:8080 -p 50000:50000 jenkins reffered to official documentation: https://hub.docker.com/_/jenkins?tab=description.

After started the container, I browsed into http://localhost:8080 and got

HTTP ERROR 404
Problem accessing /job/jenkins/job/test/. Reason:

    Not Found
Powered by Jetty:// 9.4.z-SNAPSHOT

I just removed exposing the JNLP port which is 50000

And the command to start docker was: docker run -p 8080:8080 jenkins

And now, I was able to browse the application at http://localhost:8080 without not found error.

Thanks

Upvotes: 0

Prakash Ashokan
Prakash Ashokan

Reputation: 9

I have faced the same issue and identified JIRA and Jenkins are installed on same port 8080. Jenkins service is starting first because of that JIRA was not working. Then I have edited Jenkins.xml file with port 8081 and restarted the services it was working fine.

Upvotes: 0

BoskiJunior
BoskiJunior

Reputation: 95

After loging in as an administrator, use the url http://localhost:8080.

It initially takes to the url that says jenkins in it's name, which will not work. The URL you want to access is http://localhost:8080

Also if you have a different port binded you can try to call the url as http://[ip]:[port]/jenkins

Upvotes: 7

Zuhaib
Zuhaib

Reputation: 1

If you are using a hook this error occurs. This is a known issue in GIT showing 404 error. Way around of the above said problem is to use the NIC ID instead of using "localhost".

Upvotes: 0

Student56
Student56

Reputation: 59

When I ran jenkins.war from CMD, I faced the same issue. Practically when you run jenkins.war from CMD, localhost:8080 is where jenkins is available. But if you run the startup.bat file, then the path you have set, say, localhost:8080/jenkins will work.

Upvotes: 0

Vladyslav Borshch
Vladyslav Borshch

Reputation: 39

If you get such error like it was mentioned above you should access through the URL "http://localhost:8081/jenkins/", but not only "http://localhost:8081". Btw my port is 8081 because of the circumstance that my 8080 port is already used. Have a good day!

Upvotes: 2

sujeet
sujeet

Reputation: 9

try restarting your jenkins service with $sudo service jenkins restart

Upvotes: 0

Siddhant Mishra
Siddhant Mishra

Reputation: 508

There can be probably one of these reasons :

  1. You do not have the access to the job.
  2. You do have access to the job but you are not logged in . Try to login to jenkins in another window and check remember me on this computer , then open that url.
  3. You are trying to access it from another server which is not whitelisted from the jenkins master server ,i.e it is not allowed access.

These are the best guesses I coud get .If these do not work then someone needs to manually check the url you are entering and other environment related issues themselves.

Upvotes: 0

Related Questions