Aborted connection to db (Got an error reading communication packets)

Hi, I have an installation on a debian 12 with freePBX 17 installed with the installer script.
I kept all things on debian default, but I stripped GUI components since it’s a server setup.
freePBX failed the install first time, then second time I ran the script it went smoothly and installed OK.
It appears things are working inside freePBX, I added a trunk and incoming route and 1 extension, but I’m still setting stuff up so I cannot make calls yet. However I keep getting these errors in my journalctl for freepbx:

jul 19 18:23:41 artorias mariadbd[115279]: 2025-07-19 18:23:41 874 [Warning] Aborted connection 874 to db: 'asterisk' user: 'freepbxuser' host: 'localhost' (Got an error reading communication packets)
jul 19 18:23:43 artorias mariadbd[115279]: 2025-07-19 18:23:43 1492 [Warning] Aborted connection 1492 to db: 'asterisk' user: 'freepbxuser' host: 'localhost' (Got an error reading communication packets)
jul 19 18:57:12 artorias mariadbd[115279]: 2025-07-19 18:57:12 1503 [Warning] Aborted connection 1503 to db: 'asterisk' user: 'freepbxuser' host: 'localhost' (Got an error reading communication packets)
jul 19 18:57:14 artorias mariadbd[115279]: 2025-07-19 18:57:14 1879 [Warning] Aborted connection 1879 to db: 'asterisk' user: 'freepbxuser' host: 'localhost' (Got an error reading communication packets)
jul 19 19:01:37 artorias mariadbd[115279]: 2025-07-19 19:01:37 1889 [Warning] Aborted connection 1889 to db: 'asterisk' user: 'freepbxuser' host: 'localhost' (Got an error reading communication packets)
jul 19 19:01:39 artorias mariadbd[115279]: 2025-07-19 19:01:39 1949 [Warning] Aborted connection 1949 to db: 'asterisk' user: 'freepbxuser' host: 'localhost' (Got an error reading communication packets)
jul 19 19:05:05 artorias mariadbd[115279]: 2025-07-19 19:05:05 886 [Warning] Aborted connection 886 to db: 'asterisk' user: 'freepbxuser' host: 'localhost' (Got an error reading communication packets)

I looked online, I generated a new self-signed certificate and set it as default, and under advanced settings in freePBX GUI I set existing value = :: to my localhost IP address instead for HTTP/HTTPS and NodeJS HTTP/HTTPS. But both of those suggestions didn’t fix my issue.

It looks like a database problem and probably those 2 solutions I found online won’t fix it, but I tried them anyways because those are the only I could find.

Anyone can help me troubleshoot this problem?

I already fixed my own problem.

The problem was, asterisk was not properly running, it seems it failed initially.
After I started the service I checked if I could enter mariadb with those credentials and it worked. restart all services apache php-fpm freepbx asterisk and reboot, now the errors are gone.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.