Aborted connections.
mysql_1 | 2015-11-28T02:50:01.238745Z 3 [Note] Aborted connection 3 to db: 'text_rocket' user: 'text_rocket' host: '172.17.0.4' (Got an error reading communication packets)
mysql_1 | 2015-11-28T02:50:01.239391Z 2 [Note] Aborted connection 2 to db: 'text_rocket' user: 'text_rocket' host: '172.17.0.4' (Got an error reading communication packets)
mysql_1 | 2015-11-28T02:50:10.513009Z 5 [Note] Aborted connection 5 to db: 'text_rocket' user: 'text_rocket' host: '172.17.0.3' (Got an error reading communication packets)
mysql_1 | 2015-11-28T02:50:10.513839Z 4 [Note] Aborted connection 4 to db: 'text_rocket' user: 'text_rocket' host: '172.17.0.3' (Got an error reading communication packets)
mysql_1 | 2015-11-28T02:50:26.931015Z 6 [Note] Aborted connection 6 to db: 'text_rocket' user: 'text_rocket' host: '172.17.0.4' (Got an error reading communication packets)
mysql_1 | 2015-11-28T02:50:26.932272Z 7 [Note] Aborted connection 7 to db: 'text_rocket' user: 'text_rocket' host: '172.17.0.4' (Got an error reading communication packets)
Probably going to need a little bit more detail on how to reproduce this. :smile: :innocent:
@iammerrick; what was the issue? I am having the same error and google brought me here. My scenario: https://gist.github.com/embasbm/0fa8c1aa469c921ddcd3
Seeing similar issues. Tried to add to local configuration file seemingly with no luck:
[mysqld]
innodb_log_buffer_size = 32M
innodb_log_file_size = 2047M
max_allowed_packet=256M
Still seeing:
2016-03-13T17:12:52.197988Z 22 [Note] Aborted connection 22 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:12:52.200437Z 23 [Note] Aborted connection 23 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:12:52.203276Z 24 [Note] Aborted connection 24 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:12:52.205911Z 25 [Note] Aborted connection 25 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:12:52.208730Z 26 [Note] Aborted connection 26 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:12:52.211681Z 27 [Note] Aborted connection 27 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:12:52.213672Z 28 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
2016-03-13T17:12:52.213716Z 28 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
2016-03-13T17:12:52.213823Z 28 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2016-03-13T17:12:52.213989Z 28 [Note] Aborted connection 28 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:12:52.216262Z 29 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
2016-03-13T17:12:52.216311Z 29 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
2016-03-13T17:12:52.216424Z 29 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2016-03-13T17:12:52.216586Z 29 [Note] Aborted connection 29 to db: 'zabbix' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:13:41.294516Z 30 [Note] Aborted connection 30 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:13:41.296870Z 31 [Note] Aborted connection 31 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:13:41.301601Z 32 [Note] Aborted connection 32 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:13:41.305305Z 33 [Note] Aborted connection 33 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:13:41.307531Z 34 [Note] Aborted connection 34 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:13:41.309741Z 35 [Note] Aborted connection 35 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:13:41.311541Z 36 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
2016-03-13T17:13:41.311584Z 36 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
2016-03-13T17:13:41.311687Z 36 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2016-03-13T17:13:41.312854Z 36 [Note] Aborted connection 36 to db: 'unconnected' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:13:41.314717Z 37 [Warning] 'db' entry 'sys mysql.sys@localhost' ignored in --skip-name-resolve mode.
2016-03-13T17:13:41.314750Z 37 [Warning] 'proxies_priv' entry '@ root@localhost' ignored in --skip-name-resolve mode.
2016-03-13T17:13:41.314847Z 37 [Warning] 'tables_priv' entry 'sys_config mysql.sys@localhost' ignored in --skip-name-resolve mode.
2016-03-13T17:13:41.314954Z 37 [Note] Aborted connection 37 to db: 'grafana' user: 'root' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:14:45.600248Z 38 [Note] Aborted connection 38 to db: 'grafana' user: 'grafana' host: '192.168.99.1' (Got an error reading communication packets)
2016-03-13T17:14:45.600330Z 40 [Note] Aborted connection 40 to db: 'grafana' user: 'grafana' host: '192.168.99.1' (Got an error reading communication packets)
Hi, is this solved? I'm having the same problem with wordpress container using docker-compose.
borted connection 29 to db: 'wordpress' user: 'root' host: '172.19.0.4' (Got an error reading communication packets)
I don't think we have seen enough information to find out what the problem is or even reliably reproduce it.
@yosifkit I've been struggling trying to figure this out for about a day and a half. I thought it might be because I was evaluating finagle-mysql, but mysql-connector-java also has this problem.
I created a small Java sample based on a finch TODO example: https://github.com/jimschubert/docker_mysql_124
The project is setup to build the application locally using Scala/sbt. Then run docker-compose up and you should get the error (see README in the repository for full output from my run).
$ docker -D info
DEBU[0000] Trusting certs with subjects: [010U
jschubert]
Containers: 2
Running: 1
Paused: 0
Stopped: 1
Images: 12
Server Version: 1.10.3
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 84
Dirperm1 Supported: true
Execution Driver: native-0.2
Logging Driver: json-file
Plugins:
Volume: local
Network: bridge null host
Kernel Version: 4.1.19-boot2docker
Operating System: Boot2Docker 1.10.3 (TCL 6.4.1); master : 625117e - Thu Mar 10 22:09:02 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.956 GiB
Name: default
ID: PBQT:O3SF:XSGH:THMI:GJ7E:UCEQ:5NOB:DGLA:TAJR:SE3I:QQTS:3YTY
Debug mode (server): true
File Descriptors: 22
Goroutines: 42
System Time: 2016-04-07T20:03:46.315918176Z
EventsListeners: 1
Init SHA1:
Init Path: /usr/local/bin/docker
Docker Root Dir: /mnt/sda1/var/lib/docker
Labels:
provider=virtualbox
Version was installed from DockerToolbox-1.10.3.pkg
I have the same problem with docker-compose on Ubuntu 15.10. Here is my docker-compose.yml and my Dockerfile.
My mysql container exits after a few minutes and spits out the same error before exiting.
I've been having the same issue with a PDNS container and a MySQL container. PDNS tries to go do a lookup, and the connection is gone. The logs for MySQL show: "2016-05-13 23:38:42 139802118204160 [Warning] Aborted connection 2 to db: 'pdns' user: 'pdns' host: '172.17.0.4' (Got timeout reading communication packets) 2016-05-13 23:38:42 139802117294848 [Warning] Aborted connection 5 to db: 'pdns' user: 'pdns' host: '172.17.0.4' (Got timeout reading communication packets) 2016-05-13 23:43:29 139802117901056 [Warning] Aborted connection 3 to db: 'pdns' user: 'pdns' host: '172.17.0.4' (Got timeout reading communication packets)"
@aleks I'm unable to reproduce any issues with HappyFeed -- I went back to https://github.com/aleks/HappyFeed/commit/74a7fad9504612a1cf9bb5e89f27a765cf15392f so that it still used MySQL, and let it run all weekend and came back with everything still functioning properly (and the feed I added had some appropriate content displayed) :confused:
any update on this guys .. I am seeing same issue with mysql docker container, when trying to run initial set of queries through another docker container.
[Note] Aborted connection 2 to db: 'dbname' user: 'root' host: 'ipaddress' (Got an error reading communication packets)
Same here
Try having a look here and see if anything helps diagnose the problem: http://dev.mysql.com/doc/refman/5.7/en/communication-errors.html
+1
I found out what my issue was. I thought it was mysql, it was actually that i was running migrations from from sequelize and it was exiting while commands where running. So mysql was producing errors, but it was not mysqls fault, it was just telling me a connection had died, not that it killed it.
+1
+1
So I've been wrestling with this issues for a few days, and have tried everything on the Internet. Then I took the matter into my own hands.
Not sure this will work for everyone, but this solved it for me. Get rid of this line if you have it:
codecs.register(lambda name: codecs.lookup('utf8') if name == 'utf8mb4' else None)
Just that worked for me. I took this from http://stackoverflow.com/questions/21517358/django-mysql-unknown-encoding-utf8mb4, and you can follow the link to Django's chain (I don't use Django myself). Looks like something got fixed as I am still able to execute SET NAMES utf8mb4;. If you keep reading, you don't have to do this anyway. Next are just some "make sure" tips. Make sure this query:
SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%';
Looks something like:
+--------------------------+--------------------+
| Variable_name | Value |
+--------------------------+--------------------+
| character_set_client | utf8mb4 |
| character_set_connection | utf8mb4 |
| character_set_database | utf8mb4 |
| character_set_filesystem | binary |
| character_set_results | utf8mb4 |
| character_set_server | utf8mb4 |
| character_set_system | utf8 |
| collation_connection | utf8mb4_unicode_ci |
| collation_database | utf8mb4_unicode_ci |
| collation_server | utf8mb4_unicode_ci |
+--------------------------+--------------------+
Here are the relevant configuration options (for me in /etc/mysql/mysql.conf.d/mysqld.cnf). There are one or two additional useful ones to consider, but note that most lines have been omitted for security reasons, and also due to the fact that they're beyond the scope of this thread (I do recommend going through every MySQL configuration option though, daunting as it is --- depending on your current configuration and hardware, you could see a massive speedup!).
[client]
max_allowed_packet = 1G
default-character-set = utf8mb4
[mysql]
no_auto_rehash
max_allowed_packet = 1G
prompt = '\u@\h [\d]> '
default_character_set = utf8mb4
[mysqldump]
quote-names
max_allowed_packet = 1G
[mysqld_safe]
max_allowed_packet = 1G
[mysqld]
skip-external-locking
skip_name_resolve
default_storage_engine = InnoDB
init-connect = "SET NAMES utf8mb4"
character_set_server = utf8mb4
collation_server = utf8_unicode_ci
character-set-client-handshake = FALSE
block_encryption_mode = "aes-256-cbc"
character-set-server = "utf8mb4"
collation-server = "utf8mb4_unicode_ci"
autocommit = 1
max_allowed_packet = 1G
Hope this helps someone, this has been driving me crazy for days! Good luck!
Recently had the same issue using mysql 5.7.17, but fixed it downgrading to 5.7.13.
@gbisheimer Downgrading to 5.7.13 didn't work for me but thanks for the idea anyway.
Downgrading to 5.7.13 didn't work for me.
I realized the issue was with the client; I had this environment variable set up in my Dockerfile (for php/fpm):
ENV USE_ZEND_ALLOC 0
After I removed this line, everything was working properly.
more info: http://php.net/manual/en/internals2.memory.management.php
"Note: USE_ZEND_ALLOC=0 in the environment will stop the memory manager from functioning, all allocations fall back on the default system allocators which can be useful for debugging leaks, and should only be used for this purpose."