Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699524 - app-portage/pfl - /usr/bin/pfl fails on an IPv6-only host
Summary: app-portage/pfl - /usr/bin/pfl fails on an IPv6-only host
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-07 13:01 UTC by Alarig Le Lay
Modified: 2020-04-12 17:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alarig Le Lay 2019-11-07 13:01:55 UTC
app-portage/pfl cron uses upload.portagefilelist.de, which is IPv4-only. Thus, on an IPv6-only host, it fails:

HTTPConnectionPool(host='upload.portagefilelist.de', port=80): Max retries exceeded with url: /data.php (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5c1412ec50>: Failed to establish a new connection: [Errno 101] Network is unreachable',))

alarig@bulbizarre ~ $ telnet upload.portagefilelist.de 80
Trying 89.238.76.29...
telnet: connect to address 89.238.76.29: Network is unreachable
alarig@bulbizarre ~ $ ip route get 89.238.76.29
RTNETLINK answers: Network is unreachable
alarig@bulbizarre ~ $ ip route sh
alarig@bulbizarre ~ $ 

IPv6-enabled sites work very well:

alarig@bulbizarre ~ $ telnet www.gentoo.org 80
Trying 2001:41c8:0:936::136...
Connected to www.gentoo.org.
Escape character is '^]'.
^]
telnet> quit
Connection closed.
alarig@bulbizarre ~ $ ip route get 2001:41c8:0:936::136
2001:41c8:0:936::136 from :: via fe80::20d:b9ff:fe48:c1c2 dev eth0 proto ra src 2001:4640:a14f:3:ae6e:4521:f1f6:ee39 metric 4 pref medium
alarig@bulbizarre ~ $ ip -6 route sh
2001:4640:a14f:3::/64 dev eth0 proto ra metric 4 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via fe80::20d:b9ff:fe48:c1c2 dev eth0 proto ra metric 4 pref medium


upload.portagefilelist.de is hosted on AS34240 and it announces a /32:

lg.grifon.fr> show ip bgp source-as 34240
I*>     N 2a00:1828::/32       2a00:5884::1       100    10 34019 42652 34240 i

And their website is IPv6-capable: https://www.manitu.de/

So all is in place for IPv6, but their is no AAAA record.

Reproducible: Always

Steps to Reproduce:
1. Use an IPv6-only host (or disable the IPv4 stack)
2. Run the cron: pfl >/dev/null
3. It fails
Actual Results:  
HTTPConnectionPool(host='upload.portagefilelist.de', port=80): Max retries exceeded with url: /data.php (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f5922344b00>: Failed to establish a new connection: [Errno 101] Network is unreachable',))

Expected Results:  
Connection to the website
Comment 1 bugs 2020-04-07 20:33:56 UTC
Hi,
I recently changed the DNS recrods. Now, they all have A and AAAA records in place. Could you please test again?

Thanks
Daniel
Comment 2 Alarig Le Lay 2020-04-08 09:14:36 UTC
I works here, thanks!

bulbizarre ~ # ip r
bulbizarre ~ # ip -6 r
2001:4640:a14f:3::/64 dev eth0 proto ra metric 4 pref medium
fe80::/64 dev eth0 proto kernel metric 256 pref medium
default via fe80::20d:b9ff:fe48:c1c2 dev eth0 proto ra metric 4 pref medium
bulbizarre ~ # cat /etc/cron.weekly/pfl                                                                                 
#!/bin/sh                                                
setpriv --reuid=portage --regid=portage --clear-groups nice /usr/bin/pfl >/dev/null
bulbizarre ~ # setpriv --reuid=portage --regid=portage --clear-groups nice /usr/bin/pfl
new PFL version - I will collect all packages             
writing xml file /tmp/pflkxu8gi87.xml ...                
working on (1 of 641) app-shells/bash-completion-2.10     
working on (2 of 641) app-shells/gentoo-bashcomp-20180302 
working on (3 of 641) app-shells/quoter-3.0_p2-r1      
working on (4 of 641) app-shells/bash-4.4_p23-r1
Comment 3 Daniel Pielmeier gentoo-dev 2020-04-12 17:35:57 UTC
Should be fixed wit pfl-3.1. Please reopen if this is still an issue.