Skip to content

Instantly share code, notes, and snippets.

@aalvesjr
Created May 5, 2015 23:35
Show Gist options
  • Save aalvesjr/91cc4f361b80ca580ab4 to your computer and use it in GitHub Desktop.
Save aalvesjr/91cc4f361b80ca580ab4 to your computer and use it in GitHub Desktop.
Net::OpenTimeout (execution expired) exception with Rails mailer
Quando ocorrer esse erro:
altere:
# /etc/sysctl.conf
e acrescente as linhas:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
execute o comando abaixo para verificar se as alterações foram salvas
$ sysctl -p
Remova os DNS de IPv6 DNS do arquivo:
/etc/resolv.conf:
nameserver 2001:4860:4860::8844 # remover ou comentar
nameserver 8.8.8.8 # não precisa alterar
Restartar a aplicação e o server (opcional)
--------------------------------------------------não foi necessário-------------------------------------------
descomentar a linha abaixo no arquivo: /etc/gai.conf to prefer IPv4:
precedence ::ffff:0:0/96 100
---------------------------------------------------------------------------------------------------------------
link: http://stackoverflow.com/questions/26388090/netopentimeout-execution-expired-exception-with-rails-mailer
link: http://stackoverflow.com/questions/16040158/rails-mailer-netopentimeout-execution-expired-exception-on-production-serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment