I upgraded our nodes to 8.2, and now I'm running into a very weird problem on a container running CentOS 8 with mysqld.service. Ever since the upgrade, it did something to the permissions of the container that is messing with mysqld. Anyone run into this?
Errors:
systemctl start mysqld
systemctl status mysqld.service
journalctl -xe
Permission of the mysqld
SELINUX: disabled
Container Config Info:
Any assistance is greatly appreciated. Little bit of a loss on how to fix this, as I'm not sure if the issue is from inside the container, or on the host machine.
Errors:
systemctl start mysqld
code_language.shell:
[root@cloud ~]# systemctl start mysqld
Job for mysqld.service failed because the control process exited with error code.
See "systemctl status mysqld.service" and "journalctl -xe" for details.
systemctl status mysqld.service
code_language.shell:
[root@cloud ~]# systemctl status mysqld
● mysqld.service - MySQL 8.0 database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2024-04-25 15:38:46 MST; 32s ago
Process: 2317 ExecStopPost=/usr/libexec/mysql-wait-stop (code=exited, status=0/SUCCESS)
Process: 2316 ExecStart=/usr/libexec/mysqld --basedir=/usr (code=exited, status=203/EXEC)
Process: 2280 ExecStartPre=/usr/libexec/mysql-prepare-db-dir mysqld.service (code=exited, status=0/SUCCESS)
Process: 2256 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS)
Main PID: 2316 (code=exited, status=203/EXEC)
Apr 25 15:38:46 cloud.opticip.com systemd[1]: mysqld.service: Service RestartSec=100ms expired, scheduling restart.
Apr 25 15:38:46 cloud.opticip.com systemd[1]: mysqld.service: Scheduled restart job, restart counter is at 5.
Apr 25 15:38:46 cloud.opticip.com systemd[1]: Stopped MySQL 8.0 database server.
Apr 25 15:38:46 cloud.opticip.com systemd[1]: mysqld.service: Start request repeated too quickly.
Apr 25 15:38:46 cloud.opticip.com systemd[1]: mysqld.service: Failed with result 'exit-code'.
Apr 25 15:38:46 cloud.opticip.com systemd[1]: Failed to start MySQL 8.0 database server.
journalctl -xe
code_language.shell:
Apr 25 15:40:27 cloud.opticip.com systemd[2801]: mysqld.service: Failed to execute command: Operation not permitted
Apr 25 15:40:27 cloud.opticip.com systemd[2801]: mysqld.service: Failed at step EXEC spawning /usr/libexec/mysqld: Operation not permitted
-- Subject: Process /usr/libexec/mysqld could not be executed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- The process /usr/libexec/mysqld could not be executed and failed.
--
-- The error number returned by this process is 1.
Apr 25 15:40:27 cloud.opticip.com systemd[1]: mysqld.service: Main process exited, code=exited, status=203/EXEC
Apr 25 15:40:27 cloud.opticip.com systemd[1]: mysqld.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- The unit mysqld.service has entered the 'failed' state with result 'exit-code'.
Apr 25 15:40:27 cloud.opticip.com systemd[1]: Failed to start MySQL 8.0 database server.
-- Subject: Unit mysqld.service has failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit mysqld.service has failed.
--
-- The result is failed.
Apr 25 15:40:27 cloud.opticip.com systemd[1]: mysqld.service: Service RestartSec=100ms expired, scheduling restart.
Apr 25 15:40:27 cloud.opticip.com systemd[1]: mysqld.service: Scheduled restart job, restart counter is at 5.
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Automatic restarting of the unit mysqld.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Apr 25 15:40:27 cloud.opticip.com systemd[1]: Stopped MySQL 8.0 database server.
-- Subject: Unit mysqld.service has finished shutting down
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
-- Unit mysqld.service has finished shutting down.
Apr 25 15:40:27 cloud.opticip.com systemd[1]: mysqld.service: Start request repeated too quickly.
Apr 25 15:40:27 cloud.opticip.com systemd[1]: mysqld.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://access.redhat.com/support
--
Permission of the mysqld
[root@cloud ~]# ls -la /usr/sbin/mysqld
lrwxrwxrwx 1 root root 17 Sep 1 2021 /usr/sbin/mysqld -> ../libexec/mysqld
code_language.shell:
[root@cloud libexec]# stat mysqld
File: mysqld
Size: 67443384 Blocks: 57865 IO Block: 131072 regular file
Device: 2ch/44d Inode: 2978 Links: 1
Access: (0751/-rwxr-x--x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2021-09-01 12:45:10.000000000 -0700
Modify: 2021-09-01 12:45:10.000000000 -0700
Change: 2024-04-25 15:33:07.705573522 -0700
Birth: 2024-04-25 14:53:27.116253587 -0700
SELINUX: disabled
code_language.shell:
[root@cloud selinux]# sestatus
SELinux status: disabled
Container Config Info:
code_language.shell:
arch: amd64
cores: 8
cpuunits: 9000
features: fuse=1,mount=nfs;cifs,nesting=1
hostname: cloud.opticip.com
memory: 24576
mp0: rpool2:subvol-100-disk-0,mp=/storage1,backup=1,size=9T
nameserver: 4.2.2.2 8.8.4.4 4.2.2.3
net0: name=eth0,bridge=vmbr0,firewall=1,gw=74.221.218.65,hwaddr=D6:E0:96:F2:5B:4A,ip=74.221.218.66/26,tag=410,type=veth
onboot: 1
ostype: centos
parent: mysqlfix
rootfs: local-zfs:subvol-100-disk-0,size=160G
swap: 4096
Any assistance is greatly appreciated. Little bit of a loss on how to fix this, as I'm not sure if the issue is from inside the container, or on the host machine.
Last edited: