mm2, public_suffix_list.dat
![](https://secure.gravatar.com/avatar/267565c6ab7816fe29beedf9a9cbcd44.jpg?s=120&d=mm&r=g)
Hi!
I noticed that my error log has quite a few entries like
Jun 18 15:59:10 2023 (1236) Unable to retrieve data from https://publicsuffix.org/list/public_suffix_list.dat: <urlopen error [Errno 101] Network is unreachable> Jun 18 18:32:56 2023 (1236) Unable to retrieve data from https://publicsuffix.org/list/public_suffix_list.dat: <urlopen error [Errno 101] Network is unreachable> Jun 18 18:35:07 2023 (1236) Unable to retrieve data from https://publicsuffix.org/list/public_suffix_list.dat: <urlopen error [Errno 101] Network is unreachable> Jun 18 18:45:58 2023 (1236) Unable to retrieve data from https://publicsuffix.org/list/public_suffix_list.dat: <urlopen error [Errno 101] Network is unreachable>
It could be one of the two issues here a) IPv6 b) not using the http proxy
I can download the file alright using curl/wget (environment variables are set correctly)
a) How can I force a download? b) Can I manually drop the file into /usr/share/publicsuffix/public_suffix_list.dat and force recreation of public_suffix_list.dafsa?
-- Ralf Hildebrandt Charité - Universitätsmedizin Berlin Geschäftsbereich IT | Abteilung Netzwerk
Campus Benjamin Franklin (CBF) Haus I | 1. OG | Raum 105 Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155 ralf.hildebrandt@charite.de https://www.charite.de
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 6/19/23 3:42 AM, Ralf Hildebrandt via Mailman-Users wrote:
It's neither of those. I forget exactly which package upgrade is involved, but it has to do with the way an https url is retrieved and an SSL issue involving that. Here's a patch I've used on mail.python.org. ``` === modified file 'Mailman/Utils.py' --- Mailman/Utils.py 2021-06-06 17:55:49 +0000 +++ Mailman/Utils.py 2023-05-25 01:07:55 +0000 @@ -1232,7 +1232,13 @@ syslog('error', 'Unable to retrieve data from %s: %s', url, e) - return + try: + d = open('/home/psf-users/msapiro/public_suffix_list.dat') + except Exception, e: + syslog('error', + 'Unable to retrieve data from %s: %s', + '/home/psf-users/msapiro/public_suffix_list.dat', e) + return for line in d.readlines(): if not line.strip() or line.startswith(' ') or line.startswith('//'): continue ```
I can download the file alright using curl/wget (environment variables are set correctly)
Download the file manually and replace '/home/psf-users/msapiro/public_suffix_list.dat' in the above patch with the path to the downloaded file. -- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
On 6/19/23 3:42 AM, Ralf Hildebrandt via Mailman-Users wrote:
It's neither of those. I forget exactly which package upgrade is involved, but it has to do with the way an https url is retrieved and an SSL issue involving that. Here's a patch I've used on mail.python.org. ``` === modified file 'Mailman/Utils.py' --- Mailman/Utils.py 2021-06-06 17:55:49 +0000 +++ Mailman/Utils.py 2023-05-25 01:07:55 +0000 @@ -1232,7 +1232,13 @@ syslog('error', 'Unable to retrieve data from %s: %s', url, e) - return + try: + d = open('/home/psf-users/msapiro/public_suffix_list.dat') + except Exception, e: + syslog('error', + 'Unable to retrieve data from %s: %s', + '/home/psf-users/msapiro/public_suffix_list.dat', e) + return for line in d.readlines(): if not line.strip() or line.startswith(' ') or line.startswith('//'): continue ```
I can download the file alright using curl/wget (environment variables are set correctly)
Download the file manually and replace '/home/psf-users/msapiro/public_suffix_list.dat' in the above patch with the path to the downloaded file. -- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Ralf Hildebrandt