Can't start jenkins

After loading the plugin, it is impossible to access the Jenkins server. I use windows 7. I tried to start Windows Jenkins manually, but I get the following message:

"Windows could not start the Jenkins service on the local computer. Error 1067: the process terminated unexpectedly"

I also tried running jenkins.exe from the installation directory, but without success. In the error logs, I see the following:

INFO: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
Ιουν 06, 2014 11:31:46 ΠΜ hudson.model.DownloadService$Downloadable doPostBack
INFO: Obtained the updated data file for hudson.tools.JDKInstaller
Ιουν 06, 2014 11:32:18 ΠΜ hudson.model.UpdateCenter doSafeRestart
INFO: Scheduling Jenkins reboot
Ιουν 06, 2014 11:33:00 ΠΜ hudson.model.UpdateCenter$DownloadJob run
INFO: Starting the installation of FTP-Publisher Plugin on behalf of anonymous
Ιουν 06, 2014 11:33:15 ΠΜ hudson.model.UpdateCenter doRestart
INFO: Scheduling the core downgrade
Ιουν 06, 2014 11:33:25 ΠΜ hudson.model.UpdateCenter$UpdateCenterConfiguration download
INFO: Downloading FTP-Publisher Plugin
Ιουν 06, 2014 11:33:26 ΠΜ hudson.model.UpdateCenter$HudsonDowngradeJob run
INFO: Starting the downgrade of jenkins.war on behalf of anonymous
Ιουν 06, 2014 11:33:26 ΠΜ jenkins.model.Jenkins$24 run
INFO: Restart in 10 seconds
Ιουν 06, 2014 11:33:26 ΠΜ hudson.model.UpdateCenter$HudsonDowngradeJob run
INFO: Downgrading successful: jenkins.war
Ιουν 06, 2014 11:33:36 ΠΜ jenkins.model.Jenkins$24 run
SEVERE: Restarting VM as requested by anonymous
Error: Unable to access jarfile D:\Program Files (x86)\Jenkins\jenkins.war
Error: Unable to access jarfile D:\Program Files (x86)\Jenkins\jenkins.war
Error: Unable to access jarfile D:\Program Files (x86)\Jenkins\jenkins.war

Can anyone help? We are at the point of release, and I have nowhere to run tests.

+5
source share
9 answers

. -, ( ), , . , jenkins ( ), , . Windows:)

+2

, java -jar

+2

jenkins.xml - . -Xmx2048m -Xmx1024m. 2 .

<arguments>-Xrs -Xmx1024m -Dhudson.lifecycle=hudson.lifecycle.WindowsServiceLifecycle -jar "%BASE%\jenkins.war" --httpPort=9090</arguments>
+2

jenkins.war https://updates.jenkins-ci.org/download/war/

jenkins.war

jenkins

+1

, Java . Jenkins Java.

:

sudo yum install java-1.8.0-openjdk
systemctl enable jenkins
systemctl start jenkins
systemctl status jenkins

, .

+1

jenkins msi (jenkins.msi), . jenkins.msi .

.

! .

0

: Jenkins jenkins.war.bak. jenkins.war, jenkins , .

0

, , , jenkins.err.log .

JRE . , JRE jenkins.exe , jenkins.xml.

0

Please take a look at the jenkins.err text file from the .jenkins folder for the actual error.

For me it was related to the JVM . I had to change the value with JAVA_OPTIONS , previously it was a JDK path, so I changed its value to -Xmx512M.

0
source

Source: https://habr.com/ru/post/1543523/


All Articles