简体   繁体   English

无法在Ubuntu上启动Jenkins服务

[英]Can't start Jenkins service on Ubuntu

I have an Ubuntu server and have installed Jenkins for Continuous Integration on it. 我有一个Ubuntu服务器,并在其上安装了Jenkins for Continuous Integration。 I tried to run some builds this morning and they would not run. 我今天早上尝试运行一些版本,但它们不会运行。 I looked at the logs and realised that in /var/log/jenkins there were some large log files filling up my hard drive on the server. 我查看了日志并意识到在/ var / log / jenkins中有一些大型日志文件填满了我在服务器上的硬盘。 I deleted these files and attempted to restart Jenkins. 我删除了这些文件并尝试重新启动Jenkins。

At this point Jenkins will now no longer start. 此时詹金斯现在不再开始了。 I have had a look at my /tmp directory and it looks like there is some sort of memory leak which is creating a large 1MB file called winstonexxxxxxxxxxx.jar in my tmp directory which fills the entire 1mb space of my tmp directory. 我看了一下我的/ tmp目录,看起来有一些内存泄漏,它在我的tmp目录中创建一个名为winstonexxxxxxxxxxx.jar的大型1MB文件,它填满了我的tmp目录的整个1mb空间。

Can anyone help with how to resolve this? 任何人都可以帮忙解决这个问题吗?

Thanks in advance 提前致谢

This is a known issue and has been resolved as 2018-02-14 . 这是一个已知问题,已经解决为2018-02-14

Suggested solutions when working with an older Jenkins: 使用较旧的Jenkins时建议的解决方案:

  1. Make sure all Jenkins processes are closed and nothing is running at your Jenkins port (by default 8080 ) 确保所有Jenkins进程都已关闭,并且Jenkins端口上没有任何内容正在运行(默认情况下为8080
  2. Start Jenkins 启动詹金斯
  3. Should Jenkins still not start-up, then maybe the 1 MB of /tmp space is the problem. 如果詹金斯还没有启动,那么可能是1 MB的/tmp空间是问题所在。 Either enlarge it, or use any of the following solutions to change the temporary directory for Jenkins: How to change the jenkins `/tmp` dir location? 放大它,或使用以下任何解决方案来更改Jenkins的临时目录: 如何更改jenkins` / tmp`目录位置?
  4. Should the tmp directory still be filling up, you could install the Tmp Cleaner Plugin . 如果tmp目录仍然填满,你可以安装Tmp Cleaner插件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM