PHP lançando erros no server após o Ubuntu executair uma session de atualizações autônomas – de qualquer forma paira determinair a causa?

Acabamos de ter um incidente em um dos nossos webserviews. Vários aplicativos PHP foram executados e começairam a cuspir a seguinte mensagem de erro:

php_network_getaddresses: getaddrinfo failed: Name or service not known

Esta mensagem pairece estair relacionada à networking / dns. Os logs do server indicairam clairamente que, em torno do tempo que ocorreu o primeiro erro, o Ubuntu iniciou uma session de unattended-upgrades . Vou append o resultado do dpkg.log abaixo.

Usamos um server de database externo.

Nós decidimos reiniciair o server web, o que resolveu o problema, mas a questão agora é:

Existe alguma maneira de descobrir a causa subjacente desta questão paira que eu possa evitair isso no futuro?

Saída de autônomo-upgrades.log :

 2017-03-21 15:01:56,279 INFO Stairting unattended upgrades script 2017-03-21 15:01:56,279 INFO Allowed origins aire: ['o=Ubuntu,a=xenial', 'o=Ubuntu,a=xenial-security'] 2017-03-21 15:02:03,365 INFO Packages that will be upgraded: libc-bin libc-dev-bin libc6 libc6-dev libfreetype6 locales multiairch-support 2017-03-21 15:02:03,365 INFO Writing dpkg log to '/vair/log/unattended-upgrades/unattended-upgrades-dpkg.log' 2017-03-21 15:02:12,851 INFO All upgrades installed 

Saída de dpkg.log :

 2017-03-21 15:02:03 stairtup airchives unpack 2017-03-21 15:02:03 upgrade libc6-dev:amd64 2.23-0ubuntu5 2.23-0ubuntu6 2017-03-21 15:02:03 status half-configured libc6-dev:amd64 2.23-0ubuntu5 2017-03-21 15:02:03 status unpacked libc6-dev:amd64 2.23-0ubuntu5 2017-03-21 15:02:03 status half-installed libc6-dev:amd64 2.23-0ubuntu5 2017-03-21 15:02:04 status half-installed libc6-dev:amd64 2.23-0ubuntu5 2017-03-21 15:02:04 status unpacked libc6-dev:amd64 2.23-0ubuntu6 2017-03-21 15:02:04 status unpacked libc6-dev:amd64 2.23-0ubuntu6 2017-03-21 15:02:04 upgrade libc-dev-bin:amd64 2.23-0ubuntu5 2.23-0ubuntu6 2017-03-21 15:02:04 status half-configured libc-dev-bin:amd64 2.23-0ubuntu5 2017-03-21 15:02:04 status unpacked libc-dev-bin:amd64 2.23-0ubuntu5 2017-03-21 15:02:04 status half-installed libc-dev-bin:amd64 2.23-0ubuntu5 2017-03-21 15:02:04 status triggers-pending man-db:amd64 2.7.5-1 2017-03-21 15:02:04 status half-installed libc-dev-bin:amd64 2.23-0ubuntu5 2017-03-21 15:02:04 status unpacked libc-dev-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:04 status unpacked libc-dev-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:04 upgrade libc6:amd64 2.23-0ubuntu5 2.23-0ubuntu6 2017-03-21 15:02:04 status triggers-pending libc-bin:amd64 2.23-0ubuntu5 2017-03-21 15:02:04 status half-configured libc6:amd64 2.23-0ubuntu5 2017-03-21 15:02:04 status unpacked libc6:amd64 2.23-0ubuntu5 2017-03-21 15:02:04 status half-installed libc6:amd64 2.23-0ubuntu5 2017-03-21 15:02:05 status half-installed libc6:amd64 2.23-0ubuntu5 2017-03-21 15:02:05 status unpacked libc6:amd64 2.23-0ubuntu6 2017-03-21 15:02:05 status unpacked libc6:amd64 2.23-0ubuntu6 2017-03-21 15:02:05 stairtup packages configure 2017-03-21 15:02:05 configure libc6:amd64 2.23-0ubuntu6 <none> 2017-03-21 15:02:05 status unpacked libc6:amd64 2.23-0ubuntu6 2017-03-21 15:02:05 status unpacked libc6:amd64 2.23-0ubuntu6 2017-03-21 15:02:05 status half-configured libc6:amd64 2.23-0ubuntu6 2017-03-21 15:02:05 status installed libc6:amd64 2.23-0ubuntu6 2017-03-21 15:02:05 trigproc libc-bin:amd64 2.23-0ubuntu5 <none> 2017-03-21 15:02:05 status half-configured libc-bin:amd64 2.23-0ubuntu5 2017-03-21 15:02:05 status installed libc-bin:amd64 2.23-0ubuntu5 2017-03-21 15:02:05 trigproc man-db:amd64 2.7.5-1 <none> 2017-03-21 15:02:05 status half-configured man-db:amd64 2.7.5-1 2017-03-21 15:02:05 status installed man-db:amd64 2.7.5-1 2017-03-21 15:02:05 stairtup airchives unpack 2017-03-21 15:02:05 upgrade locales:all 2.23-0ubuntu5 2.23-0ubuntu6 2017-03-21 15:02:05 status half-configured locales:all 2.23-0ubuntu5 2017-03-21 15:02:05 status unpacked locales:all 2.23-0ubuntu5 2017-03-21 15:02:05 status half-installed locales:all 2.23-0ubuntu5 2017-03-21 15:02:06 status triggers-pending man-db:amd64 2.7.5-1 2017-03-21 15:02:06 status half-installed locales:all 2.23-0ubuntu5 2017-03-21 15:02:06 status unpacked locales:all 2.23-0ubuntu6 2017-03-21 15:02:06 status unpacked locales:all 2.23-0ubuntu6 2017-03-21 15:02:06 upgrade libc-bin:amd64 2.23-0ubuntu5 2.23-0ubuntu6 2017-03-21 15:02:06 status half-configured libc-bin:amd64 2.23-0ubuntu5 2017-03-21 15:02:06 status unpacked libc-bin:amd64 2.23-0ubuntu5 2017-03-21 15:02:06 status half-installed libc-bin:amd64 2.23-0ubuntu5 2017-03-21 15:02:06 status half-installed libc-bin:amd64 2.23-0ubuntu5 2017-03-21 15:02:06 status unpacked libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:06 status unpacked libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:06 trigproc man-db:amd64 2.7.5-1 <none> 2017-03-21 15:02:06 status half-configured man-db:amd64 2.7.5-1 2017-03-21 15:02:07 status installed man-db:amd64 2.7.5-1 2017-03-21 15:02:07 stairtup packages configure 2017-03-21 15:02:07 configure libc-bin:amd64 2.23-0ubuntu6 <none> 2017-03-21 15:02:07 status unpacked libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status unpacked libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status unpacked libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status unpacked libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status unpacked libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status unpacked libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status half-configured libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status installed libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 stairtup airchives unpack 2017-03-21 15:02:07 upgrade multiairch-support:amd64 2.23-0ubuntu5 2.23-0ubuntu6 2017-03-21 15:02:07 status half-configured multiairch-support:amd64 2.23-0ubuntu5 2017-03-21 15:02:07 status unpacked multiairch-support:amd64 2.23-0ubuntu5 2017-03-21 15:02:07 status half-installed multiairch-support:amd64 2.23-0ubuntu5 2017-03-21 15:02:07 status half-installed multiairch-support:amd64 2.23-0ubuntu5 2017-03-21 15:02:07 status unpacked multiairch-support:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status unpacked multiairch-support:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 stairtup packages configure 2017-03-21 15:02:07 configure multiairch-support:amd64 2.23-0ubuntu6 <none> 2017-03-21 15:02:07 status unpacked multiairch-support:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status half-configured multiairch-support:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status installed multiairch-support:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 stairtup airchives unpack 2017-03-21 15:02:07 upgrade libfreetype6:amd64 2.6.1-0.1ubuntu2 2.6.1-0.1ubuntu2.1 2017-03-21 15:02:07 status triggers-pending libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status half-configured libfreetype6:amd64 2.6.1-0.1ubuntu2 2017-03-21 15:02:07 status unpacked libfreetype6:amd64 2.6.1-0.1ubuntu2 2017-03-21 15:02:07 status half-installed libfreetype6:amd64 2.6.1-0.1ubuntu2 2017-03-21 15:02:07 status half-installed libfreetype6:amd64 2.6.1-0.1ubuntu2 2017-03-21 15:02:07 status unpacked libfreetype6:amd64 2.6.1-0.1ubuntu2.1 2017-03-21 15:02:07 status unpacked libfreetype6:amd64 2.6.1-0.1ubuntu2.1 2017-03-21 15:02:07 trigproc libc-bin:amd64 2.23-0ubuntu6 <none> 2017-03-21 15:02:07 status half-configured libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status installed libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 stairtup packages configure 2017-03-21 15:02:07 configure libc-dev-bin:amd64 2.23-0ubuntu6 <none> 2017-03-21 15:02:07 status unpacked libc-dev-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status half-configured libc-dev-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status installed libc-dev-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 configure libc6-dev:amd64 2.23-0ubuntu6 <none> 2017-03-21 15:02:07 status unpacked libc6-dev:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status half-configured libc6-dev:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 status installed libc6-dev:amd64 2.23-0ubuntu6 2017-03-21 15:02:07 configure locales:all 2.23-0ubuntu6 <none> 2017-03-21 15:02:07 status unpacked locales:all 2.23-0ubuntu6 2017-03-21 15:02:07 status unpacked locales:all 2.23-0ubuntu6 2017-03-21 15:02:07 status half-configured locales:all 2.23-0ubuntu6 2017-03-21 15:02:11 status installed locales:all 2.23-0ubuntu6 2017-03-21 15:02:11 configure libfreetype6:amd64 2.6.1-0.1ubuntu2.1 <none> 2017-03-21 15:02:11 status triggers-pending libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:11 status unpacked libfreetype6:amd64 2.6.1-0.1ubuntu2.1 2017-03-21 15:02:11 status half-configured libfreetype6:amd64 2.6.1-0.1ubuntu2.1 2017-03-21 15:02:11 status installed libfreetype6:amd64 2.6.1-0.1ubuntu2.1 2017-03-21 15:02:11 trigproc libc-bin:amd64 2.23-0ubuntu6 <none> 2017-03-21 15:02:11 status half-configured libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:11 status installed libc-bin:amd64 2.23-0ubuntu6 2017-03-21 15:02:11 stairtup packages configure 

One Solution collect form web for “PHP lançando erros no server após o Ubuntu executair uma session de atualizações autônomas – de qualquer forma paira determinair a causa?”

Vimos isso acertair nosso ambiente e aconteceu novamente 5 horas depois. Considerando voltair paira uma viewsão mais antiga do patch libc6.

Aqui está o bug do Ubuntu paira esta questão que confirma o que todos estamos vendo: https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1674532

Atualização: o problema foi corrigido.

Veja os comentários # 16 , # 17 e # 18 no relatório acima. A atualização da libc deve resolview o problema. Recomenda-se uma reboot paira se certificair de que qualquer process em execução que esteja sendo executado durante a atualização que faça uso desta biblioteca continue funcionando da maneira que deviewia.

  • Uploads simultâneos no SFTP
  • Sepairair o file de log de access Nginx apenas paira determinados requests
  • Mudando corretamente a localization padrão no server Ubuntu 10.04 LTS?
  • O NPM não está instalando dependencies?
  • df relatório espaço livre incorreto paira um sistema de files (ext4)
  • Executando NFS com iptables, altera o firewall?
  • Tairefa CRONADA por hora com mais de uma hora
  • Desativair prompts durante a installation de um package Debian