Skip to content
Back

DB connection | Got timeout reading communication packets

  • 0
  • Self Hosted
  • Databases
Gac
9 Apr, 2026, 19:37

When looking at the logs of appwrite-mariadb I'm seeing a lot of:

TypeScript
2026-04-09  7:37:28 10 [Warning] Aborted connection 10 to db: 'appwrite' user: 'appwrite' host: '172.19.0.22' (Got timeout reading communication packets)

And I can't see function executions in console. It always shows them as empty even when functions have been executed.

I also had an issue where healtcheck user wasn't able to login to mariadb so I could never get healthy on the container. Was able to fix it with by switching it to use root user.

In my .env I have: _APP_USAGE_STATS="enabled"

For db config I have:

TypeScript
_APP_DB_ADAPTER="mariadb"
_APP_DB_HOST="mariadb"
_APP_DB_PORT="3306"
_APP_DB_SCHEMA="appwrite"
_APP_DB_USER="appwrite"
_APP_DB_PASS="*****"
_APP_DB_ROOT_PASS="*****"

Appwrite version: 1.9.0

I've even tried this:

TypeScript
docker compose down 
docker volume rm appwrite_appwrite-mariadb
docker compose up -d --force-recreate --remove-orphans

And then restored a backup of the database to get my data back, but still the same issue persisted.

For functions under Usage tab I can see that they are getting executed, and I get expected results from them, but I can't see any execution logs.

TL;DR
Developers are experiencing timeout errors in the DB connection and unable to see function executions in the console. They had an issue with the `healthcheck` user not being able to login to MariaDB. Changing it to use the `root` user fixed the problem. They tried restarting the containers and restoring a database backup, but the issue still persists. Despite functions being executed and giving expected results, execution logs are not visible in the console. **Solution**: Check the network configuration between the MariaDB container and the appwrite container. Review the DB connection settings in the `.env` file and ensure they are correct. Additionally, verify if the
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more