Windows-Server-2008-R2

詹金斯不會開始

  • November 12, 2020

我正在使用:

  • 詹金斯 1.541。
  • Java JDK 7u45(嘗試了 64 位和 32 位版本)。
  • XAMPP 1.8.2

我已經從http://mirrors.jenkins-ci.org/windows/latest下載了預設的 MSI 安裝,並且我已經安裝了它。詹金斯第一次嘗試執行,告訴我詹金斯正在準備工作,請稍候……

我等待,但隨後位於的伺服器http://localhost:8080/已關閉。日誌並沒有說明太多:

詹金斯錯誤日誌

nov 26, 2013 5:58:20 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: jetty-8.y.z-SNAPSHOT
nov 26, 2013 5:58:23 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Extract jar:file:/C:/Program%20Files%20(x86)/Jenkins/jenkins.war!/ to C:\Windows\Temp\jetty-0.0.0.0-8080-jenkins.war--any-\webapp
nov 26, 2013 5:58:45 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: NO JSP Support for , did not find org.apache.jasper.servlet.JspServlet
nov 26, 2013 5:58:46 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Started SelectChannelConnector@0.0.0.0:8080
nov 26, 2013 5:58:46 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v2.0 running: controlPort=disabled
nov 26, 2013 5:58:46 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
nov 26, 2013 5:58:46 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
nov 26, 2013 5:58:47 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
nov 26, 2013 5:58:47 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
nov 26, 2013 5:58:47 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
nov 26, 2013 5:58:47 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
nov 26, 2013 5:58:52 PM org.jenkinsci.main.modules.sshd.SSHD start
INFO: Started SSHD at port 54677
nov 26, 2013 5:58:52 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
nov 26, 2013 5:58:52 PM hudson.TcpSlaveAgentListener <init>
INFO: JNLP slave agent listener started on TCP port 54678
nov 26, 2013 5:58:52 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running

之後,伺服器不再啟動(在 localhost:8080),Jenkins服務停止。

我也嘗試過將XAMPPTomcat一起使用,嘗試32位和64 位 Java JDK版本均無濟於事,因為在啟動Jenkins後,Java崩潰了。我試圖尋找崩潰日誌,但找不到任何日誌。

這些是來自事件查看器的錯誤事件:

Faulting application name: java.exe, version: 7.0.250.17, time stamp: 0x51c4b3fd
Faulting module name: ntdll.dll, version: 6.1.7601.18247, time stamp: 0x521ea8e7
Exception code: 0xc0000374
Fault offset: 0x000ce753
Faulting process id: 0x15bc
Faulting application start time: 0x01ceeaee5b2a96ab
Faulting application path: C:\Program Files (x86)\Jenkins\jre\bin\java.exe
Faulting module path: C:\Windows\SysWOW64\ntdll.dll
Report Id: a49749d3-56e1-11e3-b08d-00155d011200

Child process [5564 - C:\Program Files (x86)\Jenkins\jre\bin\java -Xrs -Xmx256m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "C:\Program Files (x86)\Jenkins\jenkins.war" --httpPort=8080] terminated with 255

我可以提供任何其他日誌來跟踪源問題嗎?

正如@jasonazze 發現的那樣,這是這個特定版本的問題。

https://issues.jenkins-ci.org/browse/JENKINS-20630

降級修復了這個錯誤。

您可以在 java 中啟用調試模式以獲取更多詳細資訊….您可能需要增加 java 可用的記憶體分配….

-Xmx256m

此外,由於 jenkins 創建了大量文件,請檢查以確保您沒有用完 inode

df -i

引用自:https://serverfault.com/questions/557646