From: A M. <men...@de...> - 2011-11-01 16:26:44
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000000"> Il 01/11/2011 15:49, Jason Tackaberry ha scritto: <blockquote cite="mid:4EB...@ur..." type="cite"> <meta http-equiv="Context-Type" content="text/html; charset=ISO-8859-1"> <br> kaa.Socket (which kaa.rpc uses) will prefer IPv6 over IPv4, but definitely shouldn't do that at the expense of breaking IPv4. There's something particular about your configuration that kaa.Socket isn't handling properly.<br> </blockquote> <blockquote cite="mid:4EB...@ur..." type="cite"> <br> Can you provide the output of:<br> <tt>$ ip addr ls<br> </tt></blockquote> <tt>1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN <br> </tt><tt> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00<br> </tt><tt> inet 127.0.0.1/8 scope host lo<br> </tt><tt> inet6 ::1/128 scope host <br> </tt><tt> valid_lft forever preferred_lft forever<br> </tt><tt>2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000<br> </tt><tt> link/ether 90:e6:ba:70:a8:3c brd ff:ff:ff:ff:ff:ff<br> </tt><tt> inet 192.168.0.23/24 brd 192.168.0.255 scope global eth0<br> </tt><tt> inet6 fe80::92e6:baff:fe70:a83c/64 scope link <br> </tt><tt> valid_lft forever preferred_lft forever<br> <br> </tt> <blockquote cite="mid:4EB...@ur..." type="cite"><tt>$ ip ro ls<br> </tt></blockquote> <tt># ip ro ls<br> 192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.23 <br> default via 192.168.0.1 dev eth0 <br> <br> </tt> <blockquote cite="mid:4EB...@ur..." type="cite"><tt>$ ip -6 ro ls<br> </tt></blockquote> <tt># ip -6 ro ls<br> fe80::/64 dev eth0 proto kernel metric 256 mtu 1500 advmss 1440 hoplimit 0<br> <br> </tt> <blockquote cite="mid:4EB...@ur..." type="cite"><tt>$ host localhost<br> </tt></blockquote> <tt># host -v localhost.<br> Trying "localhost"<br> Received 102 bytes from 8.8.4.4#53 in 49 ms<br> Trying "localhost"<br> Host localhost. not found: 3(NXDOMAIN)<br> Received 102 bytes from 8.8.4.4#53 in 47 ms<br> <br> </tt><i>(this is correct AFAIK : localhost is not something you should get from DNS, ever)</i><br> <tt><br> </tt> <blockquote cite="mid:4EB...@ur..." type="cite"><tt>$ cat /etc/hosts<br> </tt></blockquote> <tt>see attachment<br> </tt> <blockquote cite="mid:4EB...@ur..." type="cite"><tt>$ python -c 'import socket; print socket.getaddrinfo("localhost", 19999, socket.AF_INET6, socket.SOCK_STREAM, 0, socket.AI_V4MAPPED | socket.AI_ALL)'<br> </tt></blockquote> <tt><br> [(2, 1, 6, '', ('127.0.0.1', 19999))]<br> <br> </tt>but if in /etc/hosts I add 'localhost' to the line that starts '::1' ( where ip6-localhost is ) , then this changes to<tt><br> <br> [(10, 1, 6, '', ('::1', 19999, 0, 0)), (2, 1, 6, '', ('127.0.0.1', 19999))]<br> <br> </tt> <blockquote cite="mid:4EB...@ur..." type="cite"><tt>$ python -c 'import socket; print socket.getaddrinfo("127.0.0.1", 19999, socket.AF_INET6, socket.SOCK_STREAM, 0, socket.AI_V4MAPPED | socket.AI_ALL)'<br> <br> </tt></blockquote> <tt>[(10, 1, 6, '', ('::ffff:127.0.0.1', 19999, 0, 0))]</tt><br> <br> (and this does not change as above)<br> <blockquote cite="mid:4EB...@ur..." type="cite"> Thanks for the thorough troubleshooting! Hopefully the output of above will help converge on the problem.<br> </blockquote> I can also tell that the freevo-box is running Debian/squeeze/i386 , and uses Python 2.6.6<br> <br> thank you!<br> <br> a.<br> <br> </body> </html> |