linux - 将 Debian 7.8 升级到 8.7 后 Jenkins 无法启动

标签 linux jenkins debian-jessie

我将用于 CI 服务器的 linux box 从 7.8 升级到 8.7。每当我启动詹金服务时

> sudo/etc/init.d/jenkins 开始

我收到以下错误消息。

[....] Starting jenkins (via systemctl): jenkins.serviceJob for jenkins.service failed. See 'systemctl status jenkins.service' and 'journalctl -xn' for details. failed!

运行 systemctl status jenkins.service 给我以下详细信息:

● jenkins.service - LSB: Start Jenkins at boot time Loaded: loaded (/etc/init.d/jenkins) Active: failed (Result: exit-code) since Thu 2017-03-30 16:05:51 UTC; 2min 26s ago Process: 1292 ExecStop=/etc/init.d/jenkins stop (code=exited, status=0/SUCCESS)
Process: 2437 ExecStart=/etc/init.d/jenkins start (code=exited, status=7)

并运行 journalctl -xe 给我这个:

The result is failed. systemd[1]: Unit jenkins.service entered failed state. sudo[2421]: pam_unix(sudo:session): session closed for user root sudo[2539]: development : TTY=pts/0 ; PWD=/home/development ; USER=root ; COMMAND=/bin/journalctl -xe udo[2539]: pam_unix(sudo:session): session opened for user root by development(uid=0)

两者都没有帮助。我尝试使用以下命令升级 jenkin

sudo apt-get update 自带Ignore标签

Ign http://pkg.jenkins-ci.org binary/ Translation-en_GB Ign Ign http://pkg.jenkins-ci.org binary/ Translation-en

sudo apt-get install jenkins

jenkins is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

有什么方法可以在不丢失旧数据或设置的情况下更新或修复 Jenkin 服务。

提前致谢。

最佳答案

你能告诉我们

的输出吗
apt-cache policy jenkins

我想看看您从哪个存储库获得了哪些版本的 jenkins。

请同时检查 Jenkins 日志。他们应该在:

/var/log/jenkins/jenkins.log

关于linux - 将 Debian 7.8 升级到 8.7 后 Jenkins 无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43123691/

相关文章:

jenkins 并行工作流插件因 java.io.NotSerializableException : hudson. plugins.sshslaves.SSHLauncher 而失败

c - 通过套接字发送结构数组

linux - 为 live CD 交叉编译 "grub2"。如何使用 "--prefix"选项?

perl - 在 Jenkins 中运行并行作业

linux - wget 无法在终端中与树莓派项目 pacman 一起使用

node.js - npm 全局安装链接到错误的目录

linux - 无法启动 upstart 作业,错误 : Could not open input file

linux - 如何比较umask

linux - 传递不适用于 Docker 的环境变量

jenkins - 在 slave 上运行 jenkins DSL 脚本