16:41:20 ERROR ./src/cgroups.c:82: failed to open /sys/fs/cgroup/barcontainer/cpu.weight: No such file or directory 16:41:20 FATAL ./src/barco.c:133: failed to initialize cgroups
为什么 docker mysql 建出来的 /var/lib/mysql 用户是 systemd-coredump
是 systemd-coredump 只是碰巧而已
因为 mysql 容器内的 mysql 用户 ID 是 999
1 2
# passwd in mysql container mysql:x:999:999::/var/lib/mysql:/bin/bash
而主机上的 999 为 systemd-coredump
1 2
# passwd on host systemd-coredump:x:999:997:systemd Core Dumper:/:/sbin/nologin
为什么 percona-xtrabackup 备份容器中的 mysql 显示无权限
1 2 3
2023-07-24T02:47:58.476552-00:00 0 [ERROR] [MY-012592] [InnoDB] Operating system error number 13 in a file operation. 2023-07-24T02:47:58.476735-00:00 0 [ERROR] [MY-012595] [InnoDB] The error means mysqld does not have the access rights to the directory. 2023-07-24T02:47:58.490978-00:00 0 [ERROR] [MY-013861] [InnoDB] Failed to list redo log files in the redo log directory ./#innodb_redo/
Warning: Some installed kegs have no formulae! This means they were either deleted or installed manually. You should find replacements for the following formulae: pycparser cffi erdtree
虽然没什么影响但看着不爽
可以通过brew untap homebrew/core解决
原因是
It removes the local copy of the tap repository (see manpage). This is fine if you do not work on the repository, because the default option since brew 4.0.0 is to fetch formulae information from the JSON API (see 4.0.0 release notes). If you run brew doctor, you should see that the homebrew/core tap has not been updated for a while.
大致就是走 JSON API 了,homebrew/core 也不维护升级了,所以本地那份也别留着了