Open urbinek opened 4 years ago
Have you found any solution or workaround? I am facing the exact same issue. Currently trying different db images, but its slow - problems only arise after some time.
No.
I've increased timeouts in mariadb setttings:
# docker-compose/teamspeak/etc/mysql/mariadb.conf.d/70-server.cnf
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
# this is only for the mysqld standalone daemon
[mysqld]
# Description: Time in seconds that the server waits for a connect packet before
# returning a 'Bad handshake'. Increasing may help if clients regularly encounter
# 'Lost connection to MySQL server at 'X', system error: error_number' type-errors.
connect_timeout = 360
# Time in seconds to wait on writing a block to a connection before aborting the write.
net_write_timeout = 360
net_read_timeout = 360
And errors from db container were gone, but ts still have same issues.
In my case, i've just removed mariadb and went with sqlite
Thanks for the tip. I've downgraded mariadb image to 10.4 (precisely MARIADB_VERSION=1:10.4.13+maria~focal
) and its now working for 3 days straight - the only logs i've got so far are db timeouts, but these warnings do not affect the uptime.
2020-07-23 16:45:47 1752 [Warning] Aborted connection 1752 to db: 'teamspeak' user: 'root' host: '10.0.4.4' (Got timeout reading communication packets)
Guess it's time to consider migrating over to sqlite too.
With mariadb:10
and teamspeak:3.13
, I was able to stop the errors by setting TS3SERVER_DB_CONNECTIONS
to 1
in the teamspeak container.
With
mariadb:10
andteamspeak:3.13
, I was able to stop the errors by settingTS3SERVER_DB_CONNECTIONS
to1
in the teamspeak container.
From https://hub.docker.com/_/teamspeak/
TS3SERVER_DB_CONNECTIONS variable controls how many concurrent connections to the database are being used. Must be at least 2 and at most 100. Defaults to 10.
I am confused how this fix even works. But apparently it does.
After recent update my server is loosing connection to database. After service start it works for a while and then randomly start showing errors.
From client side i can't connect with "data base error" but if i try 4-5 it works eventually
docker-compose.yml
db logs
server logs
docker service inspect teamspeak_server teamspeak_db