[root@liqiang.io]# ss -anlp | grep 222
tcp LISTEN 0 4096 127.0.0.1:2222 *:* users:(("server",pid=27069,fd=10))
端口也是监听的,至少在业务上到这一步了,那么应用肯定是输出了日志的,那么问题就出在 infrature 层面了。
接着就看下 Docker 自身是否异常,先看下 docker 的日志吧:
[root@liqiang.io]# journalctl -xu docker
Journal file /var/log/journal/ae6603ff6b1849af8525fbf6688811fd/system.journal uses an unsupported feature, ignoring file.
Use SYSTEMD_LOG_LEVEL=debug journalctl --file=/var/log/journal/ae6603ff6b1849af8525fbf6688811fd/system.journal to see the details.
-- No entries --
果然一看就发现问题所在了,Docker 自身的日志就出现问题了,看上去和 journal 日志有关,然后这里好在有提示,所以可以看一下:
[root@liqiang.io]# SYSTEMD_LOG_LEVEL=debug journalctl --file=/var/log/journal/ae6603ff6b1849af8525fbf6688811fd/system.journal
Journal effective settings seal=no keyed_hash=yes compress=no compress_threshold_bytes=8B
Journal file /var/log/journal/ae6603ff6b1849af8525fbf6688811fd/system.journal uses incompatible flag xz-compressed disabled at compilation time.
Failed to open journal file /var/log/journal/ae6603ff6b1849af8525fbf6688811fd/system.journal: Protocol not supported
mmap cache statistics: 0 hit, 1 miss
Failed to open files: Protocol not supported
然而现实就是这么打脸,运行失败,然后再看下文档里面的详细描述,没有发现特别的说明,不过看了一下自己的 docker 版本,发现已经是非常陈旧的版本了,所以就索性升级一把,直接升级到最新的 20.10.5 版本,升级之后发现 docker 日志居然就恢复正常了。