I installed tomcat 10.1.0 on ubuntu VM and in /opt/tomcat/webapps installed jenkins.war file but when I opened jenkins on host manager through public IP then it gives error as HTTP status 404 not fund jenkins and a I am unable to see status of jenkins.
please help me with this error.
Thank you in advance.
Related
Problem: InitialAdminPassword not found.
Question: after I have installed Jenkins on Windows 10 by following the official Jenkins documentation: https://www.jenkins.io/doc/book/installing/windows/, the Jenkins login page is lunched on the browser with localhost port 8080, but it asked for a password which should be found on the following location: C:\Windows\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\secrets\initialAdminPassword
I'm not able to find this file and the password? any help, please?
Solution:
a simple reboot of the machine solves the issue.
Thanks all.
I am getting "HTTP ERROR 404 Jenkins serves only static files on this domain" when ever i am accessing the Jenkins page. I think i tried to edit the URL of Jenkins page then after i have got this error. I have deleted and install Jenkins again using Brew command. I also have upgraded the Jenkins to 2.236 version, but still no luck. i downloaded this Jenkins form Jenkins page not using Docker. I already had googled it and find nothing. would someone help me out.
https://i.stack.imgur.com/4U6si.png
I faced this issue when I edited the Resource URL field to be "http://localhost:8080/"
It can be accessed by travelling through the below actions
Manage Jenkins >> Configure System >> Resource root URL
And that was when I started encountering the above-mentioned issue. Because this is not allowing me to open the Jenkins on the 8080 port, I opened Jenkins using the below command in another port using the below command:
java -jar jenkins.war --httpPort=8081
This opened Jenkins in another port and I deleted the Resource URL field entry which then allowed me to access Jenkins on the 8080 port.
OS: Ubuntu 20.04
Jenkins Version: 2.375.1
This file located in your JENKINS_HOME:
jenkins.security.ResourceDomainConfiguration.xml
<?xml version='1.1' encoding='UTF-8'?>
<jenkins.security.ResourceDomainConfiguration>
<url></url>
</jenkins.security.ResourceDomainConfiguration>
Remove the value for url and restarted jenkins with
sudo systemctl restart jenkins
I'm trying to connect to a SonarQube server running on my machine in a Docker.
I installed the SonarLint plugin in IntelliJ, when I create the new connection to the server, given the token to the plugin, it shows:
Failed to connect the server. Please check the configuration. Error:
Fail to request http://localhost:9000/api/system/status
this URL works in the browser, giving back
{"id":"BF41A1F2-AWlcxJRKJ9-nWLU3WeGl","version":"7.6.0.21501","status":"UP"}
in the SonarLint log it says:
Caused by: java.net.ProtocolException: Unexpected status line:
I just pulled the last sonarqube image from docker repository and run it with only the port forwarding option (-p 9000:9000)
My environment:
SonarQube server version: 7.6.0.21501 ;
Java: 1.8.0_181
Docker: 2.0.0.3 (31259)
IntelliJ: Community 18.3.5
I found a workaround.
use the machine name instead localhost.
I have a fresh CentOS box, installed Tomcat 8.0 and Jenkins 2.5. After entering the secret key for a brand new installation, the next step Install suggested plugins or :Select plugins to install:. After clicking on Install suggested plugins I got an error saying
An error occurred during installation: Forbidden
I assume is related to folder permissions, the question is which one?
UPDATE: The jenkins log says
Found invalid crumb a711b93261896fb36a1d6ffbe163dca6. Will check remaining parameters for a valid one...
May 21, 2016 4:19:34 AM WARNING hudson.security.csrf.CrumbFilter doFilter
No valid crumb was included in request for /jenkins/administrativeMonitor/hudson.diagnosis.ReverseProxySetupMonitor/test. Returning 403.*
Thanks in advance.
If it's any help to anybody, I "fixed it" by restarting Jenkins http://jenkins:8080/restart, or whatever protocol, domain, and port. Then when I went back in it asked me for the secret key again, and then installed all the plugins successfully.
I have faced this problem before. It was because I was using a VPN. Once I closed the VPN, everything returned back to normal.
I was getting the same error when I was using Internet Explorer for JENKINS INSTALLATION on Windows 2019. I installed Chrome before trying again and the error went away!
I was facing this issue because I was using Internet Explorer. Switching the browser fixed the issue for me.
I faced this same issue, Alex's answer helped me.
Here's some addition to it:
I was running Jenkins on docker, so to restart it I had to do the following;
List all the running docker containers on the server:
docker container ls
Copy the container id for the Jenkins container
Restart the docker container for Jenkins using its id:
docker restart <jenkins-container-id>
Visit the URL for Jenkins again:
http://your-url:8080
Input your initial admin password, and then try setting up Jenkins again.
That's all.
I hope this helps
I have installed Jenkins(1.621) on Windows Server 2008 R2-(Enterprise),from command prompt with option java -jar jenkins.war. After installation I tried launch jenkins in google chrome browser. For couple of times I can successfully launch the jenkins, but third time I am getting the error:
Oops! Google Chrome could not connect to localhost:8080 : Jenkins Launch Error
I tried uninstalling and reinstalling the Jenkins, but same result after couple of launch. I am not able to see any logs generated in Jenkins installation directory. (C:\Users\ic003981.jenkins).
How can I solve this issue?
Installing new Google Chrome Version 45.0.2454.99 m has solved the problem of Jenkins launch error.