Jenkins refuses to restart

[亡魂溺海] 提交于 2019-12-03 10:51:23

Go to Manage Jenkins links. Find the option "Install as Windows service". Click on install. Now (jenkins_url)/restart option will work. I faced this same issue now

If your Jenkins instance's servlet container does not support a web application restarting its own context, then this plugin cannot provide restart functionality, and the “Restart Safely” link will not appear.

I'm using Apache Tomcat v7.0.64 and after installing SafeRestart Plugin I got the same message as you had.

I think it would be much simpler for you if you just run Jenkins with the embedded container and the service wrapper

I received such message when jenkins was started in command line (like java -jar jenkins.war)

After I started jenkins as a service (jenkins.exe install) and (jenkins.exe start) it began to work.

Restart your command prompt in Administrator mode. So that you are having your all permission to run window as a service.

I installed Restart Safely plugin available in Jenkins Plugin Manager

Jenkins -> Manage Jenkins -> Manage Plugins -> Search for Safe Restart -> Install it.

Then Go to Manage Jenkins -> "Install as Windows service" -> install

Then Restart Safely appear on the Dashboard. Thanks to Shwetank Singh.

To manually restart jenkins :

  1. Go to task manager and end all the java instances .
  2. Close command prompt .
  3. Open command prompt again, point the current directory where jenkins.war file is available.
  4. And fire the command java -jar jenkins.war .

I happen to face this problem where restart was required to update jenkins version , I tried by url but faced the error - jenkins cannot restart itself as currently configured. Tried above mentioned steps and it worked.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!