上面的“ systemctl status”表明它已失败,但是没有错误消息


0

我安装了atop,然后立即从Fedora 29升级到Fedora 30。

现在atop无法在引导过程中启动。但是没有错误消息。它仅显示atop退出代码7。为什么我看不到错误消息?

$ rpm -q atop
atop-2.4.0-1.fc30.x86_64
$ journalctl -u atop
-- Logs begin at Wed 2018-02-28 17:23:24 GMT, end at Tue 2019-04-30 22:41:24 BST. --
Apr 30 17:27:05 fedora29-vm systemd[1]: Started Atop advanced performance monitor.
Apr 30 18:34:31 fedora29-vm systemd[1]: Stopping Atop advanced performance monitor...
Apr 30 18:34:34 fedora29-vm systemd[1]: Stopped Atop advanced performance monitor.
-- Reboot --
Apr 30 19:48:56 fedora29-vm systemd[1]: Started Atop advanced performance monitor.
Apr 30 19:48:58 fedora29-vm systemd[1]: atop.service: Main process exited, code=exited, status=7/NOTRUNNING
Apr 30 19:48:58 fedora29-vm systemd[1]: atop.service: Failed with result 'exit-code'.

Answers:


0

atop 使用日志文件 /var/log/atop/daily.log

$ cd /var/log/atop/
$ ls
atop_20190430  daily.log

$ cat /var/log/atop/daily.log 
existing file /var/log/atop/atop_20190430 has incompatible header

$ sudo rm atop_20190430

$ sudo systemctl start atop
$ sudo systemctl status atop
● atop.service - Atop advanced performance monitor
   Loaded: loaded (/usr/lib/systemd/system/atop.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2019-04-30 22:36:21 BST; 5s ago
     Docs: man:atop(1)
 Main PID: 11429 (atop)
    Tasks: 1 (limit: 2890)
   Memory: 5.1M
   CGroup: /system.slice/atop.service
           └─11429 /usr/bin/atop -R -w /var/log/atop/atop_20190430 600

Apr 30 22:36:21 fedora30-vm systemd[1]: Started Atop advanced performance monitor.

在Debian Linux上,您可能会注意到某些atop软件包更新具有相关的变更日志条目,如下所示:-)。

有时会更改原始日志文件的格式。在这种情况下,top -r将无法读取由先前版本写入的文件。可以在本地使用atopconvert(1)工具转换旧的日志文件。

在postinst中,程序包检查新的atop二进制文件是否将读取最新的原始文件并尝试转换该文件。/ var / log / atop中的所有其他文件均保持不变。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.