You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system and platform (e.g. uname -a): OSX
Other relevant info you may wish to add:
Experienced when using Logstash
User reported the following error in Logstash: (Formatted for easier reading)
{:message=>“send: name or service not known”, :exception=>“SocketError”, :backtrace=>[
“org/jruby/ext/socket/RubyUDPSocket.java:318:in `send'",
"/Users/chuacw/Desktop/Elastic/logstash-5.0.0/vendor/jruby/lib/ruby/1.9/resolv.rb:763:in `send’“,
“/Users/chuacw/Desktop/Elastic/logstash-5.0.0/vendor/jruby/lib/ruby/1.9/resolv.rb:652:in `request'",
"/Users/chuacw/Desktop/Elastic/logstash-5.0.0/vendor/jruby/lib/ruby/1.9/resolv.rb:512:in `each_resource’“,
“/Users/chuacw/Desktop/Elastic/logstash-5.0.0/vendor/jruby/lib/ruby/1.9/resolv.rb:1036:in
...
I worked with the user to patch resolv.rb to print the host and port:
DNS LOOKUP: host: fe80::b675:eff:fef9:4775 - port: 53 - msg: “\xC2\x05\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x06stream\atwitter\x03com\x00\x00\x01\x00\x01”
The user's laptop (OSX) has resolver entries for both ipv6 and ipv4, and JRuby picked the ipv6 resolver. This is an OK choice, but if you look at the host fe80::b675:eff:fef9:4775 it is missing the interface which is required for link-local ipv6 addresses (as I understand it).
Environment
Provide at least:
uname -a
): OSXOther relevant info you may wish to add:
Experienced when using Logstash
User reported the following error in Logstash: (Formatted for easier reading)
I worked with the user to patch
resolv.rb
to print the host and port:(line 763 of lib/ruby/1.9/resolv.rb)
Output:
The user's laptop (OSX) has resolver entries for both ipv6 and ipv4, and JRuby picked the ipv6 resolver. This is an OK choice, but if you look at the host
fe80::b675:eff:fef9:4775
it is missing the interface which is required for link-local ipv6 addresses (as I understand it).The user ran
scutil --dns
and gave me the output:I realize this is an older/eol JRuby. I have not yet tried to reproduce under JRuby 9k or master.
The text was updated successfully, but these errors were encountered: