Bug 267773

Summary: No address record for pkg0.pkt.freebsd.org
Product: Services Reporter: Graham Perrin <grahamperrin>
Component: FTP/WWW Sites & MirrorsAssignee: FreeBSD Mirror Admin <mirror-admin>
Status: Closed Works As Intended    
Severity: Affects Only Me CC: lwhsu, philip
Priority: ---    
Version: unspecified   
Hardware: Any   
OS: Any   
URL: https://cgit.freebsd.org/doc/commit/?id=c2be2185991937a4f2b86859b598a9ae8536272d
Attachments:
Description Flags
OpenStreetMap view of York, Brighton and Frankfurt none

Description Graham Perrin freebsd_committer freebsd_triage 2022-11-14 23:53:14 UTC
With my /usr/local/etc/pkg/repos/FreeBSD.conf set to use 

    url: "pkg+http://pkg0.pkt.freebsd.org/${ABI}/latest",

– I get: 


root@mowa219-gjp4-8570p-freebsd:~ # pkg update -r FreeBSD
Updating FreeBSD repository catalogue...
pkg: http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest/meta.txz: No address record
repository FreeBSD has no meta file, using default settings
pkg: http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest/packagesite.pkg: No address record
pkg: http://pkg0.pkt.freebsd.org/FreeBSD:14:amd64/latest/packagesite.txz: No address record
Unable to update repository FreeBSD
Error updating repositories!
root@mowa219-gjp4-8570p-freebsd:~ # 


% route show pkg0.pkt.freebsd.org
route: bad address: pkg0.pkt.freebsd.org
%
Comment 1 Graham Perrin freebsd_committer freebsd_triage 2022-11-14 23:54:44 UTC
Worked around as outlined below. 

% fastest_pkg -v
pkg0.nyi.freebsd.org: 100%
pkg0.nyi.freebsd.org: 2.5 MB/s
pkg0.tuk.freebsd.org: 18%
(28, 'Operation timed out after 5001 milliseconds with 1240105 out of 6717672 bytes received')

pkg0.tuk.freebsd.org: 247.9 kB/s
pkg0.bme.freebsd.org: 100%
pkg0.bme.freebsd.org: 6.4 MB/s
pkg0.isc.freebsd.org: 0%
(28, 'Failed to connect to pkg0.isc.freebsd.org port 80 after 2715 ms: Operation timed out')
pkg0.isc.freebsd.org: 0.0 B/s
pkg0.fra.freebsd.org: 2%
(28, 'Operation timed out after 5004 milliseconds with 199593 out of 6717672 bytes received')

pkg0.fra.freebsd.org: 39.9 kB/s

Fastest:
pkg0.bme.freebsd.org: 6.4 MB/s


Write configuration:
mkdir -p /usr/local/etc/pkg/repos/
echo 'FreeBSD: { url: "http://pkg0.bme.freebsd.org/${ABI}/latest" }' \
        > /usr/local/etc/pkg/repos/FreeBSD.conf


%
Comment 2 Li-Wen Hsu freebsd_committer freebsd_triage 2022-11-15 00:00:32 UTC
pkt site has been decommissioned. Please update your settings.

P.S. You can use `drill _http._tcp.pkg.freebsd.org SRV` to list all the mirrors.
Comment 3 Graham Perrin freebsd_committer freebsd_triage 2022-11-15 00:06:49 UTC
(In reply to Li-Wen Hsu from comment #2)

Thanks, I'm curious: was c2be2185991937a4f2b86859b598a9ae8536272d related, or coincidental? 

> Note that the EU mirror is now in Germany
> 
> clusteradm this weekend replaced the mirror in Amsterdam with a new one
> in Frankfurt.
Comment 4 Philip Paeps freebsd_committer freebsd_triage 2022-11-15 01:32:20 UTC
It was related.

The mirror that used to be in Amsterdam is now in Frankfurt.  Same sponsor.  Newer hardware.  Different data centre.
Comment 5 Philip Paeps freebsd_committer freebsd_triage 2022-11-15 01:33:44 UTC
Incidentally: does "pkg.freebsd.org" give you fra or bme?  In other words: do the GeoDNS and fastest_pkg agree for you? :)
Comment 6 Graham Perrin freebsd_committer freebsd_triage 2022-11-15 06:34:01 UTC
Created attachment 238085 [details]
OpenStreetMap view of York, Brighton and Frankfurt

(In reply to Philip Paeps from comment #5)

I'm on the south coast of England, not far from Brighton, with York <https://www.openstreetmap.org/#map=18/53.9590555/-1.0815361> geographically closer than Frankfurt. 

<https://pkg.freebsd.org/> gives me <http://pkg0.bme.freebsd.org/> "generously hosted by Bytemark in York, UK.". 

There's a little more to say, better elsewhere, I think. Should we aim for the freebsd-questions list?
Comment 7 Graham Perrin freebsd_committer freebsd_triage 2022-11-16 01:05:05 UTC
(In reply to Graham Perrin from comment #6)

(Discussion continued in private.)