LINUX报错系列之《二》-----jenkins启动失败

 jenkins突然启动报错,一直起不来

[root@172 var]# service jenkins status
● jenkins.service - LSB: Jenkins Automation Server
   Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2019-08-21 14:03:39 CST; 15min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 29783 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=1/FAILURE)

Aug 21 14:03:39 172.16.242.69 jenkins[29783]: at java.io.FileOutputStream.write(FileOutputStream...26)
Aug 21 14:03:39 172.16.242.69 jenkins[29783]: at Main.copyStream(Main.java:481)
Aug 21 14:03:39 172.16.242.69 jenkins[29783]: at Main.extractFromJar(Main.java:506)
Aug 21 14:03:39 172.16.242.69 jenkins[29783]: at Main._main(Main.java:243)
Aug 21 14:03:39 172.16.242.69 jenkins[29783]: at Main.main(Main.java:151)
Aug 21 14:03:39 172.16.242.69 jenkins[29783]: [FAILED]
Aug 21 14:03:39 172.16.242.69 systemd[1]: jenkins.service: control process exited, code=exited s...s=1
Aug 21 14:03:39 172.16.242.69 systemd[1]: Failed to start LSB: Jenkins Automation Server.
Aug 21 14:03:39 172.16.242.69 systemd[1]: Unit jenkins.service entered failed state.
Aug 21 14:03:39 172.16.242.69 systemd[1]: jenkins.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

已上就是报错信息,看着不明确啊!

回想一下出错场景,当前程序是准备吧一张图片往磁盘上存储,结果挂掉,那么有没有可能是磁盘空间问题?

这么一想,再回头看看报错信息,有戏!

df -h:

[root@172 dev]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        40G   40G     0 100% /
devtmpfs        911M     0  911M   0% /dev
tmpfs           920M     0  920M   0% /dev/shm
tmpfs           920M  8.4M  912M   1% /run
tmpfs           920M     0  920M   0% /sys/fs/cgroup
tmpfs           184M     0  184M   0% /run/user/0

发现dev/vda1已经100%了,果然磁盘已经被沾满了

于是果断删除一些文件试试,删除之后df -h :

[root@172 var]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/vda1        40G   39G     0 100% /
devtmpfs        911M     0  911M   0% /dev
tmpfs           920M     0  920M   0% /dev/shm
tmpfs           920M   20M  900M   3% /run
tmpfs           920M     0  920M   0% /sys/fs/cgroup
tmpfs           184M     0  184M   0% /run/user/0

虽然还是100%,但是内存空出来1G,有戏

接下来启动jenkins试试:

[root@172 var]# service jenkins start
Starting jenkins (via systemctl):                          [  OK  ]

OK,看来之后需要做一些磁盘的定时清理!

ps:   du -sh *  命令可以一步步追查到底是哪个文件夹占领空间大,我这边发现的是/var/lib/docker/volumes占了10G

棒棒哒!

你可能感兴趣的:(linux)