photon-reddit icon indicating copy to clipboard operation
photon-reddit copied to clipboard

Can't connect to MariaDB

Open Z0pyrus opened this issue 2 years ago • 2 comments

I've setup photon-reddit on my local system and tried to connect to my mariadb server instance with these env.:

DB_HOST=192.168.168.26
DB_USER=Secr3t
DB_PW=Secr3t
DB_PORT=3306
DB_DB=Secr3t

The mariaDB is running in Docker on given host with the same vars. I can connect to the Database using cli with mariadb --host=192.168.168.26 -u Secr3t -p. But when I start photon-reddit it says Couldn't connect to DB.

This shows up in mariaDB logs while trying to connect: [Warning] Aborted connection 7 to db: 'Secr3t' user: 'Secr3t' host: '172.28.0.1' (Got an error reading communication packets)

Z0pyrus avatar Aug 01 '22 08:08 Z0pyrus

Could it be a MariaDB configuration issue? I found these threads for MySQL (on which MariaDB is based on) https://dba.stackexchange.com/questions/19135/mysql-error-reading-communication-packets https://dba.stackexchange.com/questions/40899/mysql-error-reading-communication-packets

ArthurHeitmann avatar Aug 01 '22 17:08 ArthurHeitmann

I will try this. Btw, the docker support is ready. You can look at my fork and if you wan't I can make an pull request

Z0pyrus avatar Aug 01 '22 18:08 Z0pyrus