sangaa
2021-09-21 11:12
采纳率: 100%
浏览 16

linux 部署jenkins报错

Java -jar jenkins.war运行控制台输出如下


Running from: /usr/local/jenkins/jenkins.war
webroot: $user.home/.jenkins
2021-09-21 03:06:58.249+0000 [id=1]    INFO    org.eclipse.jetty.util.log.Log#initialized: Logging initialized @932ms to org.eclipse.jetty.util.log.JavaUtilLog
2021-09-21 03:06:58.460+0000 [id=1]    INFO    winstone.Logger#logInternal: Beginning extraction from war file
2021-09-21 03:07:00.507+0000 [id=1]    WARNING    o.e.j.s.handler.ContextHandler#setContextPath: Empty contextPath
2021-09-21 03:07:00.618+0000 [id=1]    INFO    org.eclipse.jetty.server.Server#doStart: jetty-9.4.42.v20210604; built: 2021-06-04T17:33:38.939Z; git: 5cd5e6d2375eeab146813b0de9f19eda6ab6e6cb; jvm 1.8.0_121-b13
2021-09-21 03:07:01.026+0000 [id=1]    INFO    o.e.j.w.StandardDescriptorProcessor#visitServlet: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
2021-09-21 03:07:01.120+0000 [id=1]    INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: DefaultSessionIdManager workerName=node0
2021-09-21 03:07:01.120+0000 [id=1]    INFO    o.e.j.s.s.DefaultSessionIdManager#doStart: No SessionScavenger set, using defaults
2021-09-21 03:07:01.146+0000 [id=1]    INFO    o.e.j.server.session.HouseKeeper#startScavenging: node0 Scavenging every 600000ms
2021-09-21 03:07:01.908+0000 [id=1]    INFO    hudson.WebAppMain#contextInitialized: Jenkins home directory: /root/.jenkins found at: $user.home/.jenkins
2021-09-21 03:07:02.968+0000 [id=1]    INFO    o.e.j.s.handler.ContextHandler#doStart: Started w.@62da83ed{Jenkins v2.303.1,/,file:///root/.jenkins/war/,AVAILABLE}{/root/.jenkins/war}
2021-09-21 03:07:03.002+0000 [id=1]    INFO    o.e.j.server.AbstractConnector#doStart: Started ServerConnector@7a6d7e92{HTTP/1.1, (http/1.1)}{0.0.0.0:8080}
2021-09-21 03:07:03.002+0000 [id=1]    INFO    org.eclipse.jetty.server.Server#doStart: Started @5686ms
2021-09-21 03:07:03.021+0000 [id=21]    INFO    winstone.Logger#logInternal: Winstone Servlet Engine running: controlPort=disabled
2021-09-21 03:07:04.269+0000 [id=27]    INFO    jenkins.InitReactorRunner$1#onAttained: Started initialization
2021-09-21 03:07:04.312+0000 [id=27]    INFO    jenkins.InitReactorRunner$1#onAttained: Listed all plugins
2021-09-21 03:07:06.467+0000 [id=26]    INFO    jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
2021-09-21 03:07:06.471+0000 [id=26]    INFO    jenkins.InitReactorRunner$1#onAttained: Started all plugins
2021-09-21 03:07:06.507+0000 [id=26]    INFO    jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
2021-09-21 03:07:08.700+0000 [id=26]    INFO    jenkins.InitReactorRunner$1#onAttained: System config loaded
2021-09-21 03:07:08.700+0000 [id=26]    INFO    jenkins.InitReactorRunner$1#onAttained: System config adapted
2021-09-21 03:07:08.700+0000 [id=26]    INFO    jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
2021-09-21 03:07:08.700+0000 [id=26]    INFO    jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
2021-09-21 03:07:08.899+0000 [id=40]    INFO    hudson.model.AsyncPeriodicWork#lambda$doRun$0: Started Download metadata
2021-09-21 03:07:09.120+0000 [id=40]    INFO    hudson.util.Retrier#start: Attempt #1 to do the action check updates server
2021-09-21 03:07:09.670+0000 [id=27]    INFO    jenkins.install.SetupWizard#init: 

*************************************************************
*************************************************************
*************************************************************

Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:

36e9a80f211f43a98f8aa7590ddbb6b5

This may also be found at: /root/.jenkins/secrets/initialAdminPassword

*************************************************************
*************************************************************
*************************************************************

2021-09-21 03:07:12.644+0000 [id=40]    INFO    hudson.util.Retrier#start: The attempt #1 to do the action check updates server failed with an allowed exception:
java.net.NoRouteToHostException: No route to host (Host unreachable)
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
    at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
    at hudson.model.DownloadService.loadJSON(DownloadService.java:115)
    at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:220)
    at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:215)
    at hudson.PluginManager.checkUpdatesServer(PluginManager.java:1878)
    at hudson.util.Retrier.start(Retrier.java:63)
    at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:1849)
    at jenkins.DailyCheck.execute(DailyCheck.java:93)
    at hudson.model.AsyncPeriodicWork.lambda$doRun$0(AsyncPeriodicWork.java:101)
    at java.lang.Thread.run(Thread.java:745)
2021-09-21 03:07:12.645+0000 [id=40]    INFO    hudson.util.Retrier#start: Calling the listener of the allowed exception 'No route to host (Host unreachable)' at the attempt #1 to do the action check updates server
2021-09-21 03:07:12.646+0000 [id=40]    INFO    hudson.util.Retrier#start: Attempted the action check updates server for 1 time(s) with no success
2021-09-21 03:07:12.647+0000 [id=40]    SEVERE    hudson.PluginManager#doCheckUpdatesServer: Error checking update sites for 1 attempt(s). Last exception was: NoRouteToHostException: No route to host (Host unreachable)
2021-09-21 03:07:12.649+0000 [id=40]    INFO    hudson.model.AsyncPeriodicWork#lambda$doRun$0: Finished Download metadata. 3,722 ms
2021-09-21 03:07:12.650+0000 [id=27]    WARNING    hudson.model.UpdateCenter#updateDefaultSite: Upgrading Jenkins. Failed to update the default Update Site 'default'. Plugin upgrades may fail.
java.net.NoRouteToHostException: No route to host (Host unreachable)
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
    at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1138)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1032)
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
    at hudson.model.DownloadService.loadJSON(DownloadService.java:115)
    at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:220)
    at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:215)
    at hudson.model.UpdateCenter.updateDefaultSite(UpdateCenter.java:2636)
    at jenkins.install.SetupWizard.init(SetupWizard.java:215)
    at jenkins.install.InstallState$InitialSecuritySetup.initializeState(InstallState.java:172)
    at jenkins.model.Jenkins.setInstallState(Jenkins.java:1133)
    at jenkins.install.InstallUtil.proceedToNextStateFrom(InstallUtil.java:97)
    at jenkins.install.InstallState$Unknown.initializeState(InstallState.java:86)
    at jenkins.model.Jenkins$15.run(Jenkins.java:3435)
    at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
    at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
    at jenkins.model.Jenkins$5.runTask(Jenkins.java:1160)
    at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
    at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
2021-09-21 03:07:12.651+0000 [id=27]    INFO    jenkins.InitReactorRunner$1#onAttained: Completed initialization
2021-09-21 03:07:12.671+0000 [id=20]    INFO    hudson.WebAppMain$3#run: Jenkins is fully up and running

  • 收藏

相关推荐 更多相似问题