MySQL failed to initialise due to this error:

mysql-mailcow_1      | 2021-10-18 18:47:18+01:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
mysql-mailcow_1      | 2021-10-18 18:47:19+01:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.12+maria~focal started.
mysql-mailcow_1      | 2021-10-18 18:47:19+01:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
mysql-mailcow_1      |  command was: mysqld --verbose --help --log-bin-index=/tmp/tmp.AYBF1FXPij
mysql-mailcow_1      |  mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 "Permission denied")
mysql-mailcow_1      | Fatal error in defaults handling. Program aborted
mysql-mailcow_1      | 2021-10-18 18:47:22+01:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.12+maria~focal started.
mysql-mailcow_1      | 2021-10-18 18:47:22+01:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
mysql-mailcow_1      | 2021-10-18 18:47:22+01:00 [Note] [Entrypoint]: Entrypoint script for MariaDB Server 1:10.5.12+maria~focal started.
mysql-mailcow_1      | 2021-10-18 18:47:22+01:00 [ERROR] [Entrypoint]: mysqld failed while attempting to check config
mysql-mailcow_1      |  command was: mysqld --verbose --help --log-bin-index=/tmp/tmp.BYksFVGxkB
mysql-mailcow_1      |  mysqld: Can't read dir of '/etc/mysql/conf.d/' (Errcode: 13 "Permission denied")
mysql-mailcow_1      | Fatal error in defaults handling. Program aborted```

This is a fresh installation, no configuration changes apart from changes documented to run mailcow behind a reverse proxy.
  • You messed up the file permissions of the mailcow base directory.

    Please read the docs carefully. Clone the script as root, check the umask etc.

    Do not copy the directory without carrying the file permissions.

You messed up the file permissions of the mailcow base directory.

Please read the docs carefully. Clone the script as root, check the umask etc.

Do not copy the directory without carrying the file permissions.

Have something to say?

Join the community by quickly registering to participate in this discussion. We'd like to see you joining our great moo-community!

After adjusting the directory permissions, it has worked as expected.

Thanks.

No one is typing