juanluisbaptiste / docker-otrs

The unofficial Znuny/OTRS Ticketing System docker image
https://www.juanbaptiste.tech/category/otrs
GNU Lesser General Public License v3.0
172 stars 101 forks source link

vfailed: Can't connect to MySQL server on '127.0.0.1' (111) at /opt/otrs/Kernel/System/DB.pm line 205. otrs_1 | ERROR: OTRS-otrs.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SystemConfigurationSyncManager-10 Perl: 5.16.3 OS: linux Time: Wed Feb 14 12:03:53 2024 #131

Open perlasaber opened 6 months ago

perlasaber commented 6 months ago

Screenshot from 2024-02-14 14-07-01

Kapuzinaa commented 5 months ago

Hey, I'm having the same problem, it is caused by trying to access the mariadb container with localhost, while it has a different ip/hostname. Have you found a solution yet?

McTom234 commented 4 months ago

Same issue for me.

I tried to connect from inside the container manually, and it worked as expected. So one option is to "guess" the ip address of the mariadb container in the docker network, but that's a workaround and no solution.