jeboehm / docker-mailserver

Docker Mailserver based on the famous ISPMail guide
MIT License
368 stars 97 forks source link

mailserver_web container connection error to MariaDB server #175

Closed mattman73 closed 1 year ago

mattman73 commented 2 years ago

☺️ Please check the troubleshooting page before opening a new issue. ☺️

https://github.com/jeboehm/docker-mailserver/wiki/Troubleshooting

Describe the bug mailserver_web log file. [critical] Error thrown while running command "doctrine:migrations:migrate -n". Message: "An exception occurred in the driver: SQLSTATE[HY000] [1130] Host '172.21.0.8' is not allowed to connect to this MariaDB server" In ExceptionConverter.php line 119:,

To Reproduce every time it starts

Expected behavior The above error was taken from the log file of the mailserver_web container

Docker environment (please complete the following information): docker info Client: Context: default Debug Mode: false

Server: Containers: 19 Running: 17 Paused: 0 Stopped: 2 Images: 37 Server Version: 20.10.12 Storage Driver: btrfs Build Version: Btrfs v5.15.1 Library Version: 102 Logging Driver: journald Cgroup Driver: systemd Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc Default Runtime: runc Init Binary: /usr/libexec/docker/docker-init containerd version: runc version: babb8ce-dirty init version: Security Options: seccomp Profile: default selinux cgroupns Kernel Version: 5.16.18-200.fc35.x86_64 Operating System: Fedora Linux 35 (Workstation Edition) OSType: linux Architecture: x86_64 CPUs: 8 Total Memory: 5.746GiB Name: fedora ID: DYUW:D33Q:2JEF:STGO:4QTF:LN7F:OK7Y:44LF:VZPX:M7YK:YBN4:ZRAM Docker Root Dir: /var/lib/docker Debug Mode: false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: true

docker-compose version docker-compose version 1.29.2, build unknown docker-py version: 5.0.2 CPython version: 3.10.4 OpenSSL version: OpenSSL 1.1.1n FIPS 15 Mar 2022

mattman73 commented 2 years ago

Hello I believe that this might be the issue, with the Database.

2022-05-11 12:01:10 6 [Warning] Aborted connection 6 to db: 'unconnected' user: 'unauthenticated' host: '172.21.0.8' (This connection closed normally without authentication)

jeboehm commented 2 years ago

Please check your database permissions, especially the permitted hosts.