-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
healthcheck.sh cannot connect on 11.6-ubi #630
Comments
I did find missing flock for Couldn't replicate the socket;
The socket location is defined in |
No custom configuration.
|
It is working on "default" |
I think I may see the reason: from a ubi instance:
from a non-ubi instance:
if you swapped between the two the datadir configuration the socket configuration here isn't portable. Remove file and allow Seems this isn't needed and its safe to relay on the real configuration file
|
The socket/port that where used in the initialization of the datadir in the /var/lib/mysql may not be the same used at runtime. This was highlighted in MariaDB#630 where the ubi container puts a socket in a different location from the non-ubi container. On the assumption that any change of default port/socket is going to be in a server configuration file, preferably with a [client-server] section, lets omit copying this unnecessary. This does however mean that command line specified changes to socket (and port less so) will not be persistent. This means that podman run mariadb:lts --socket=/tmp/s.sock will not be discoverable for the healtcheck.sh script.
The socket/port that where used in the initialization of the datadir in the /var/lib/mysql may not be the same used at runtime. This was highlighted in MariaDB#630 where the ubi container puts a socket in a different location from the non-ubi container. On the assumption that any change of default port/socket is going to be in a server configuration file, preferably with a [client-server] section, lets omit copying this unnecessary. This does however mean that command line specified changes to socket (and port less so) will not be persistent. This means that podman run mariadb:lts --socket=/tmp/s.sock will not be discoverable for the healtcheck.sh script. Closes: MariaDB#630
As highlighted in MariaDB#630 a healthcheck.sh --mariadbuprade test will use flock that is provided by util-linux-core on ubi systems.
As highlighted in #630 a healthcheck.sh --mariadbuprade test will use flock that is provided by util-linux-core on ubi systems.
Upgraded from
11.5
to11.6-ubi
.On mariadb startup, socket is created at
/run/mariadb/mariadb.sock
.The text was updated successfully, but these errors were encountered: