Skip to content

Conversation

@rriemann
Copy link

Dears,

thanks for openxpi and the docker setup. I have tried to spin it up on Fedora Kinoite that comes with rootless podman and SELinux.

In such situation, the boot fails for several reasons (my best guesses here):

  • SELinux prevents the containers from reading config files at ./openxpki-config/contrib/sql/schema-mariadb.sql and ./openxpki-config
  • I suspect a race conditions between the containers to create the /var/run/mysqld folder or the socket in it. If the openxpki containers win this race, then the mariadb container fails with:
[db]              | 2024-10-18 21:24:11 0 [ERROR] Can't start server : Bind on unix socket: Permission denied
[db]              | 2024-10-18 21:24:11 0 [ERROR] Do you already have another server running on socket: /run/mysqld/mysqld.sock ?

To solve the first issue, I have added the :z flag to the volume mounts and added a flag.

Resources:

A current work around is to not rely on the socket, but instead use TCP to connect to the database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant