The wikimedia/fundraising/crm git repository has CI tests running in the image docker-registry.wikimedia.org/releng/civicrm.
https://gerrit.wikimedia.org/r/c/integration/config/+/742796 created the 0.3.0-s1 image to migrate from Stretch to Bullseye and we switched to this image via https://gerrit.wikimedia.org/r/c/integration/config/+/777029/2/jjb/wm-fundraising.yaml
Since MariaDB is a different version, the CiviCRM database provisioning system now fails:
Status: Downloaded newer image for docker-registry.wikimedia.org/releng/civicrm:0.3.0-s1 + mkdir -p /tmp/mysqld/datadir + /usr/bin/mysql_install_db --user=nobody --datadir=/tmp/mysqld/datadir chown: cannot access '/usr/lib/mysql/plugin/auth_pam_tool_dir/auth_pam_tool': Permission denied Couldn't set an owner to '/usr/lib/mysql/plugin/auth_pam_tool_dir/auth_pam_tool'. It must be root, the PAM authentication plugin doesn't work otherwise.. chown: changing ownership of '/usr/lib/mysql/plugin/auth_pam_tool_dir': Operation not permitted Cannot change ownership of the '/usr/lib/mysql/plugin/auth_pam_tool_dir' directory to the 'nobody' user. Check that you have the necessary permissions and try again. Installing MariaDB/MySQL system tables in '/tmp/mysqld/datadir' ... 2022-04-28 23:08:52 0 [Warning] Ignoring user change to 'nobody' because the user was set to 'mysql' earlier on the command line OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system Two all-privilege accounts were created. One is root@localhost, it has no password, but you need to be system 'root' user to connect. Use, for example, sudo mysql The second is nobody@localhost, it has no password either, but you need to be the system 'nobody' user to connect. After connecting you can set the password, if you would need to be able to connect as any of these users with a password and without sudo See the MariaDB Knowledgebase at https://mariadb.com/kb or the MySQL manual for more instructions. You can start the MariaDB daemon with: cd '/usr' ; /usr/bin/mysqld_safe --datadir='/tmp/mysqld/datadir' You can test the MariaDB daemon with mysql-test-run.pl cd '/usr/mysql-test' ; perl mysql-test-run.pl Please report any problems at https://mariadb.org/jira The latest information about MariaDB is available at https://mariadb.org/. You can find additional information about the MySQL part at: https://dev.mysql.com Consider joining MariaDB's strong and vibrant community: https://mariadb.org/get-involved/ + MYSQL_SOCKET=/var/run/mysqld/mysqld.sock + mysqld='/usr/sbin/mysqld --verbose --datadir=/tmp/mysqld/datadir --log-error=/tmp/mysqld/error.log --pid-file=/tmp/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock'
The message says:
Two all-privilege accounts were created.
One is root@localhost, it has no password, but you need to be system root user to connect.
The second is nobody@localhost, it has no password either, but you need to be the system nobody user to connect.