Hi All
Two questions, related to jenkins startup -
- Using jenkins-2.46.2 for windows. I have Java 8, 64 bit windows.
Issue : I see the below error everytime i try bringing up my jenkins instance in my local windows server. below are the main warnings/errors i see in jenkins.err.log (detailed error log attached)
WARNING: Failed to delete the temporary Winstone file C:\Windows\TEMP\winstone\jenkins.war
…
WARNING: Empty contextPath
…
WARNING: FAILED ServerConnector@8fa663{HTTP/1.1}{0.0.0.0:8080}: java.net.BindException: Address already in use: bind
…
SEVERE: Container startup failed
…
SEVERE: Failed to initialize Jenkins
- Using generic java package (war)
Steps done :
- Started tomcat
- placed jenkins.war in apache-tomcat-7.0.77\webapps
- Tomcat console displays that jenkins is started successfully.
May 05, 2017 6:13:05 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
Issue : Not able to login with localhost:8080, localhost:8080/jenkins.
Used the user : admin, password (key in the file : C:\Users\MyUser.jenkins\secrets\initialAdminPassword)
Question :
- What user/password can i try to open jenkins home page?
- How to change the default port of jenkins. I dont see jenkins.xml inside apache-tomcat-7.0.77\webapps\jenkins, looked for it in apache-tomcat-7.0.77\webapps\jenkins folder.
Please advise.
Regards
Shreyus
jenkins.err.log (31.7 KB)
Hi Shreyus,
Jenkins is using the same port as the underlying Tomcat.
These ports are defined in the server.xml under /config.
Please consider upgrading Tomcat to 8.x.
Regards,
Holger
Hi Holger
Thanks for the reply.
Did that (tomcat is on 9090 now), now i see the tomcat server home page but having issues with jenkins home page(localhost:8080 prompts for user/pwd but admin/C:\Users\MyUser.jenkins\secrets\initialAdminPassword doesnt work.
I see the below logs in the tomcat console -
May 08, 2017 10:35:56 AM hudson.model.UpdateCenter updateDefaultSite
WARNING: Upgrading Jenkins. Failed to update the default Update Site ‘default’.
Plugin upgrades may fail.
java.net.UnknownHostException: updates.jenkins-ci.org
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java
:184)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.http.HttpClient.(HttpClient.java:242)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:357)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLC
onnection.java:1202)
INFO: Jenkins is fully up and running
Regards
Shreyus
Hi Shreyus,
we are currently running Jenkins 1 on top of Tomcat 8.0.
In this scenario Jenkins is available on the same http port as tomcat itself, but it has its own context path.
I did not yet try out Jenkins 2.
Regards,
Holger
Able to startup now, culprit was Oracle XE instance using same port 8080, but the tomcat console never returned already in use bind exception, so was hard to find.
Thanks Holger!