我的 Ubuntu 服务器收到以下错误:
exim paniclog /var/log/exim4/paniclog on (my server FQDN) has non-zero size, mail system might be broken.
我在网上找到了一个解决方案这里基本上,我只需要输入以下代码来清除 paniclog:
sudo rm /var/log/exim4/paniclog
所以,我知道如何消除错误,但我不知道它是如何开始的,以及如何不让它再次发生。有什么解释吗?提前谢谢。
答案1
我遇到了同样的问题,这是我的 exim4 paniclog 的样子:
$ sudo cat /var/log/exim4/paniclog
2014-02-01 21:36:51 socket bind() to port 25 for address 127.0.0.1 failed: Address already in use: daemon abandoned
2014-02-01 22:03:33 socket bind() to port 25 for address 127.0.0.1 failed: Address already in use: daemon abandoned
2014-02-01 22:33:19 socket bind() to port 25 for address 127.0.0.1 failed: Address already in use: daemon abandoned
2014-02-01 22:36:33 socket bind() to port 25 for address 127.0.0.1 failed: Address already in use: daemon abandoned
2014-02-01 23:03:51 socket bind() to port 25 for address 127.0.0.1 failed: Address already in use: daemon abandoned
2014-02-01 23:14:31 socket bind() to port 25 for address 127.0.0.1 failed: Address already in use: daemon abandoned
2014-02-02 11:09:48 socket bind() to port 25 for address 127.0.0.1 failed: Address already in use: daemon abandoned
这个问题显然可以通过删除 paniclog 文件来解决
答案2
上面的答案很糟糕,因为您删除了一个日志文件,然后它就不再用于 exim 的将来日志条目。解决方案是创建日志文件备份。
大多数基于 Debian 的发行版都使用logrotate
它。您可以使用命令强制备份logrotate
。选项-f
是强制备份,-v
用于更详细的输出。
尝试(对于 Debian 并且也应该适用于 Ubuntu)。
sudo logrotate -f -v /etc/logrotate.d/exim4-paniclog
答案3
就我而言,错误如下:
exim paniclog on my-host has non-zero size
socket bind() to port 25 for address ::1 failed: cannot assign requested address: daemon abandoned
我的解决方案是删除该paniclog
文件并从要绑定的 IP 中dpkg-reconfigure exim4-config
删除。::1