我有一个MySQL错误日志的问题,其中大部分是“mbind: Operation not permitted”行(如下所示)。这是为什么呢?我该如何解决?
让我困扰的是“大部分”这个词。正如您可以在下面看到的,不是所有的行都是“mbind: Operation not permitted”。 我怀疑MySQL查询错误应该代替那一行,但由于某种原因它们无法写入文件。
MySQL本身是一个Docker容器,其中日志文件通过以下方式成为卷:
volumes:
- ./mysql/log:/var/log/mysql
有趣的是:
- “docker logs mysql_container”没有显示任何内容...
- 位于相同卷文件夹中的 slow.log 完全正常,其中包含真实的慢日志行,没有出现“mbind: Operation not permitted”的情况!
- 同样,general.log 也是如此——这里也没有问题
有什么想法吗?提前感谢。
2019-04-07T12:56:22.478504Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
2019-04-07T12:56:22.478533Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead.
2019-04-07T12:56:22.478605Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.15) starting as process 1
2019-04-07T12:56:22.480115Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2019-04-07T12:56:22.480122Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8_general_ci' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
mbind: Operation not permitted
[same line goes forever]
顺便说一下,MySQL启动并运行良好,没有问题。只是这个错误日志一直困扰着我,阻止我看到实际的错误。
cap_add
/security_opt
不被支持(https://github.com/moby/moby/issues/25885)。 - tsauerwein