* [ruby-core:60442] [Backport21 - Backport #9477] [Open] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
@ 2014-02-04 11:30 ` bjoern
2014-02-04 23:22 ` [ruby-core:60447] [ruby-trunk - Bug #9477] " drbrain
` (13 subsequent siblings)
14 siblings, 0 replies; 15+ messages in thread
From: bjoern @ 2014-02-04 11:30 UTC (permalink / raw
To: ruby-core
Issue #9477 has been reported by Bjoern Rennhak.
----------------------------------------
Backport #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477
* Author: Bjoern Rennhak
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60447] [ruby-trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
2014-02-04 11:30 ` [ruby-core:60442] [Backport21 - Backport #9477] [Open] Address family not supported by protocol - socket(2) - udp bjoern
@ 2014-02-04 23:22 ` drbrain
2014-02-05 3:39 ` [ruby-core:60486] " akr
` (12 subsequent siblings)
14 siblings, 0 replies; 15+ messages in thread
From: drbrain @ 2014-02-04 23:22 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Eric Hodel.
Tracker changed from Backport to Bug
Project changed from Backport21 to ruby-trunk
What is the output of:
ruby -rresolv -e 'puts Resolv::DNS.new.getresource("_rubygems._tcp.rubygems.org", Resolv::DNS::Resource::IN::SRV).target'
This is the code in the backtrace listed above.
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-44910
* Author: Bjoern Rennhak
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport:
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60486] [ruby-trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
2014-02-04 11:30 ` [ruby-core:60442] [Backport21 - Backport #9477] [Open] Address family not supported by protocol - socket(2) - udp bjoern
2014-02-04 23:22 ` [ruby-core:60447] [ruby-trunk - Bug #9477] " drbrain
@ 2014-02-05 3:39 ` akr
2014-02-06 16:24 ` [ruby-core:60537] " bjoern
` (11 subsequent siblings)
14 siblings, 0 replies; 15+ messages in thread
From: akr @ 2014-02-05 3:39 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Akira Tanaka.
Does the host supports IPv6?
(I guess it doesn't because vserver needs a patch to use IPv6: http://linux-vserver.org/IPv6 )
Would you please show us /etc/resolv.conf.
(I guess it contains IPv6 address for some reason.)
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-44952
* Author: Bjoern Rennhak
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport:
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60537] [ruby-trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
` (2 preceding siblings ...)
2014-02-05 3:39 ` [ruby-core:60486] " akr
@ 2014-02-06 16:24 ` bjoern
2014-02-06 16:27 ` [ruby-core:60538] " bjoern
` (10 subsequent siblings)
14 siblings, 0 replies; 15+ messages in thread
From: bjoern @ 2014-02-06 16:24 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Bjoern Rennhak.
~% ruby -rresolv -e 'puts Resolv::DNS.new.getresource("_rubygems._tcp.rubygems.org", Resolv::DNS::Resource::IN::SRV).target'
Output is
/usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744:in `initialize': Address family not supported by protocol - socket(2) - udp (Errno::EAFNOSUPPORT)
from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744:in `new'
from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744:in `block in initialize'
from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:735:in `each'
from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:735:in `initialize'
from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:561:in `new'
from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:561:in `make_udp_requester'
from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:517:in `fetch_resource'
from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:510:in `each_resource'
from /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:491:in `getresource'
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-44993
* Author: Bjoern Rennhak
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport:
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60538] [ruby-trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
` (3 preceding siblings ...)
2014-02-06 16:24 ` [ruby-core:60537] " bjoern
@ 2014-02-06 16:27 ` bjoern
2014-02-06 21:42 ` [ruby-core:60545] " akr
` (9 subsequent siblings)
14 siblings, 0 replies; 15+ messages in thread
From: bjoern @ 2014-02-06 16:27 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Bjoern Rennhak.
No, vserver doesn't hasn't ipv6 patch enabled. Hosts is
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Even after removing all ipv6 entries and restarting vserver guest, error still persists.
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-44994
* Author: Bjoern Rennhak
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport:
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60545] [ruby-trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
` (4 preceding siblings ...)
2014-02-06 16:27 ` [ruby-core:60538] " bjoern
@ 2014-02-06 21:42 ` akr
2014-02-07 14:23 ` [ruby-core:60560] " bjoern
` (8 subsequent siblings)
14 siblings, 0 replies; 15+ messages in thread
From: akr @ 2014-02-06 21:42 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Akira Tanaka.
Please show us /etc/resolv.conf, not /etc/hosts.
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-45001
* Author: Bjoern Rennhak
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport:
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60560] [ruby-trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
` (5 preceding siblings ...)
2014-02-06 21:42 ` [ruby-core:60545] " akr
@ 2014-02-07 14:23 ` bjoern
2014-02-07 15:03 ` [ruby-core:60561] [ruby-trunk - Bug #9477] [Closed] " akr
` (7 subsequent siblings)
14 siblings, 0 replies; 15+ messages in thread
From: bjoern @ 2014-02-07 14:23 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Bjoern Rennhak.
Sorry for that, misread that.
```sh
% cat /etc/resolv.conf
nameserver 213.133.99.99
nameserver 213.133.100.100
nameserver 213.133.98.98
nameserver 2a01:4f8:0:a111::add:9898
nameserver 2a01:4f8:0:a102::add:9999
nameserver 2a01:4f8:0:a0a1::add:1010
```
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-45013
* Author: Bjoern Rennhak
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport:
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60561] [ruby-trunk - Bug #9477] [Closed] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
` (6 preceding siblings ...)
2014-02-07 14:23 ` [ruby-core:60560] " bjoern
@ 2014-02-07 15:03 ` akr
2014-02-07 15:09 ` [ruby-core:60562] [ruby-trunk - Bug #9477] " akr
` (6 subsequent siblings)
14 siblings, 0 replies; 15+ messages in thread
From: akr @ 2014-02-07 15:03 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Akira Tanaka.
Status changed from Open to Closed
% Done changed from 0 to 100
Applied in changeset r44880.
----------
* lib/resolv.rb: Ignore name servers which cause EAFNOSUPPORT on
socket creation.
Reported by Bjoern Rennhak. [ruby-core:60442] [Bug #9477]
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-45014
* Author: Bjoern Rennhak
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport:
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60562] [ruby-trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
` (7 preceding siblings ...)
2014-02-07 15:03 ` [ruby-core:60561] [ruby-trunk - Bug #9477] [Closed] " akr
@ 2014-02-07 15:09 ` akr
2014-02-07 23:00 ` [ruby-core:60568] " drbrain
` (5 subsequent siblings)
14 siblings, 0 replies; 15+ messages in thread
From: akr @ 2014-02-07 15:09 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Akira Tanaka.
Thank you.
resolv.conf contains IPv6 address.
So resolv.rb try to create an IPv6 socket but vserver linux kernel return the error.
I committed r44880 on trunk to ignore name servers which is impossible to create a socket.
I hope it solves this issue.
I didn't test the patch because I can't reproduce the problem, though.
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-45015
* Author: Bjoern Rennhak
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport:
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60568] [ruby-trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
` (8 preceding siblings ...)
2014-02-07 15:09 ` [ruby-core:60562] [ruby-trunk - Bug #9477] " akr
@ 2014-02-07 23:00 ` drbrain
2014-02-14 4:06 ` [ruby-core:60694] " usa
` (4 subsequent siblings)
14 siblings, 0 replies; 15+ messages in thread
From: drbrain @ 2014-02-07 23:00 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Eric Hodel.
Backport set to 1.9.3: UNKNOWN, 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-45018
* Author: Bjoern Rennhak
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport: 1.9.3: UNKNOWN, 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60694] [ruby-trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
` (9 preceding siblings ...)
2014-02-07 23:00 ` [ruby-core:60568] " drbrain
@ 2014-02-14 4:06 ` usa
2014-02-14 6:57 ` [ruby-core:60715] " usa
` (3 subsequent siblings)
14 siblings, 0 replies; 15+ messages in thread
From: usa @ 2014-02-14 4:06 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Usaku NAKAMURA.
Backport changed from 1.9.3: UNKNOWN, 2.0.0: REQUIRED, 2.1: REQUIRED to 1.9.3: REQUIRED, 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-45116
* Author: Bjoern Rennhak
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport: 1.9.3: REQUIRED, 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60715] [ruby-trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
` (10 preceding siblings ...)
2014-02-14 4:06 ` [ruby-core:60694] " usa
@ 2014-02-14 6:57 ` usa
2014-02-15 15:02 ` [ruby-core:60764] " nagachika00
` (2 subsequent siblings)
14 siblings, 0 replies; 15+ messages in thread
From: usa @ 2014-02-14 6:57 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Usaku NAKAMURA.
Backport changed from 1.9.3: REQUIRED, 2.0.0: REQUIRED, 2.1: REQUIRED to 1.9.3: DONE, 2.0.0: REQUIRED, 2.1: REQUIRED
backported into ruby_1_9_3 at r44949.
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-45137
* Author: Bjoern Rennhak
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport: 1.9.3: DONE, 2.0.0: REQUIRED, 2.1: REQUIRED
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60764] [ruby-trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
` (11 preceding siblings ...)
2014-02-14 6:57 ` [ruby-core:60715] " usa
@ 2014-02-15 15:02 ` nagachika00
2014-02-22 5:20 ` [ruby-core:60975] " naruse
2015-04-20 15:00 ` [ruby-core:68940] [Ruby trunk " sirl33tname
14 siblings, 0 replies; 15+ messages in thread
From: nagachika00 @ 2014-02-15 15:02 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Tomoyuki Chikanaga.
Backport changed from 1.9.3: DONE, 2.0.0: REQUIRED, 2.1: REQUIRED to 1.9.3: DONE, 2.0.0: DONE, 2.1: REQUIRED
r44880 was backported to ruby_2_0_0 at r44977.
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-45181
* Author: Bjoern Rennhak
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport: 1.9.3: DONE, 2.0.0: DONE, 2.1: REQUIRED
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:60975] [ruby-trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
` (12 preceding siblings ...)
2014-02-15 15:02 ` [ruby-core:60764] " nagachika00
@ 2014-02-22 5:20 ` naruse
2015-04-20 15:00 ` [ruby-core:68940] [Ruby trunk " sirl33tname
14 siblings, 0 replies; 15+ messages in thread
From: naruse @ 2014-02-22 5:20 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Yui NARUSE.
Backport changed from 1.9.3: DONE, 2.0.0: DONE, 2.1: REQUIRED to 1.9.3: DONE, 2.0.0: DONE, 2.1: DONE
r45110
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-45378
* Author: Bjoern Rennhak
* Status: Closed
* Priority: Normal
* Assignee:
* Category:
* Target version:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport: 1.9.3: DONE, 2.0.0: DONE, 2.1: DONE
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
* [ruby-core:68940] [Ruby trunk - Bug #9477] Address family not supported by protocol - socket(2) - udp
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
` (13 preceding siblings ...)
2014-02-22 5:20 ` [ruby-core:60975] " naruse
@ 2015-04-20 15:00 ` sirl33tname
14 siblings, 0 replies; 15+ messages in thread
From: sirl33tname @ 2015-04-20 15:00 UTC (permalink / raw
To: ruby-core
Issue #9477 has been updated by Sir l33tname.
I guess it's not really fixed I can reproduce a bug which looks for me very similar (I guess it's the same problem)
**Ruby 2.2**
~~~
root@l33t:~ # ruby22 --version
ruby 2.2.2p95 (2015-04-13 revision 50295) [amd64-freebsd10]
root@l33t:~ # ruby22 -rresolv -e 'puts Resolv::DNS.new.getresource("_rubygems._tcp.rubygems.org", Resolv::DNS::Resource::IN::SRV).target'
/usr/local/lib/ruby/2.2/resolv.rb:747:in `initialize': Protocol not supported - socket(2) - udp (Errno::EPROTONOSUPPORT)
from /usr/local/lib/ruby/2.2/resolv.rb:747:in `new'
from /usr/local/lib/ruby/2.2/resolv.rb:747:in `block in initialize'
from /usr/local/lib/ruby/2.2/resolv.rb:737:in `each'
from /usr/local/lib/ruby/2.2/resolv.rb:737:in `initialize'
from /usr/local/lib/ruby/2.2/resolv.rb:561:in `new'
from /usr/local/lib/ruby/2.2/resolv.rb:561:in `make_udp_requester'
from /usr/local/lib/ruby/2.2/resolv.rb:516:in `fetch_resource'
from /usr/local/lib/ruby/2.2/resolv.rb:509:in `each_resource'
from /usr/local/lib/ruby/2.2/resolv.rb:490:in `getresource'
from -e:1:in `<main>'
~~~
**Ruby 2.1**
~~~
root@l33t:~ # ruby --version
ruby 2.1.6p336 (2015-04-13 revision 50298) [amd64-freebsd10]
root@l33t:~ # ruby -rresolv -e 'puts Resolv::DNS.new.getresource("_rubygems._tcp.rubygems.org", Resolv::DNS::Resource::IN::SRV).target'
/usr/local/lib/ruby/2.1/resolv.rb:748:in `initialize': Protocol not supported - socket(2) - udp (Errno::EPROTONOSUPPORT)
from /usr/local/lib/ruby/2.1/resolv.rb:748:in `new'
from /usr/local/lib/ruby/2.1/resolv.rb:748:in `block in initialize'
from /usr/local/lib/ruby/2.1/resolv.rb:738:in `each'
from /usr/local/lib/ruby/2.1/resolv.rb:738:in `initialize'
from /usr/local/lib/ruby/2.1/resolv.rb:562:in `new'
from /usr/local/lib/ruby/2.1/resolv.rb:562:in `make_udp_requester'
from /usr/local/lib/ruby/2.1/resolv.rb:517:in `fetch_resource'
from /usr/local/lib/ruby/2.1/resolv.rb:510:in `each_resource'
from /usr/local/lib/ruby/2.1/resolv.rb:491:in `getresource'
from -e:1:in `<main>'
~~~
As you can see I run it on FreeBSD, inside a jail.
----------------------------------------
Bug #9477: Address family not supported by protocol - socket(2) - udp
https://bugs.ruby-lang.org/issues/9477#change-52203
* Author: Bjoern Rennhak
* Status: Closed
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-linux]
* Backport: 1.9.3: DONE, 2.0.0: DONE, 2.1: DONE
----------------------------------------
On a fresh Debian GNU/Linux VServer guest running the latest RVM HEAD I experienced the following error:
```
Exception `LoadError' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:169 - LoadError
Exception `Errno::EAFNOSUPPORT' at /usr/local/rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/resolv.rb:744 - Address family not supported by protocol - socket(2) - udp
ERROR: While executing gem ... (Errno::EAFNOSUPPORT)
Address family not supported by protocol - socket(2) - udp
```
(Please see gist below for entire stacktrace).
After discussion on irc.freenode.org #rvm with mpapis (rvm maintainer) it turns out
```
rvm rubygems latest-2.0
```
fixes the issue. ```rvm rubygems head``` did not work.
Not quite sure what went wrong here and if this affects anyone who isn't running vserver.
Reference:
https://gist.github.com/anonymous/483c42ce132495271fc2
https://github.com/rubygems/rubygems/issues/803#issuecomment-33835128
--
https://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2015-04-20 14:48 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <redmine.issue-9477.20140204113007@ruby-lang.org>
2014-02-04 11:30 ` [ruby-core:60442] [Backport21 - Backport #9477] [Open] Address family not supported by protocol - socket(2) - udp bjoern
2014-02-04 23:22 ` [ruby-core:60447] [ruby-trunk - Bug #9477] " drbrain
2014-02-05 3:39 ` [ruby-core:60486] " akr
2014-02-06 16:24 ` [ruby-core:60537] " bjoern
2014-02-06 16:27 ` [ruby-core:60538] " bjoern
2014-02-06 21:42 ` [ruby-core:60545] " akr
2014-02-07 14:23 ` [ruby-core:60560] " bjoern
2014-02-07 15:03 ` [ruby-core:60561] [ruby-trunk - Bug #9477] [Closed] " akr
2014-02-07 15:09 ` [ruby-core:60562] [ruby-trunk - Bug #9477] " akr
2014-02-07 23:00 ` [ruby-core:60568] " drbrain
2014-02-14 4:06 ` [ruby-core:60694] " usa
2014-02-14 6:57 ` [ruby-core:60715] " usa
2014-02-15 15:02 ` [ruby-core:60764] " nagachika00
2014-02-22 5:20 ` [ruby-core:60975] " naruse
2015-04-20 15:00 ` [ruby-core:68940] [Ruby trunk " sirl33tname
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).