I’m on a CentOS 7 VM running PG, MariaDB, sidekiq and apache httpd. Sometimes my logs are spammed with errors such as:
unable to resolve address: System error WARN: Mysql2::Error::ConnectionError: Unknown MySQL server host 'mariadb' (16) WARN: PG::ConnectionBad: could not translate host name "postgres" to address: System error WARN -- : Unable to record event with remote Sentry server (Errno::EBUSY - Failed to open TCP connection to o383708.ingest.sentry.io:443 (Device or resource busy - getaddrinfo)):
All these hosts (except the sentry service) are set to 127.0.0.1 in my /etc/hosts file.
Pinging the host names appears to work from the console, these errors pop up in various application logs during runtime.
lsof | wc -l => 700k (max 1.6M)
The VM is under no significant load (10% load average). No attacks or rootkits or anything like that.
My hosts file:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 127.0.0.1 mariadb 127.0.0.1 postgres 127.0.0.1 mongodb 127.0.0.1 redis 127.0.0.1 memcached 127.0.0.1 socketcluster
Anyone know what’s going on? Why can’t getaddrinfo open the hosts file???
Adding a bounty to this question. Please no freeloading.