Hi Ryan,

Thanks for the quick response.
I monitored and don't see the "501 Not Implemented" happening anymore. I will 
keep an eye on this.

Can you share what you did to fix it?

NB: I see another issue with the server, but I will open a new mail thread for 
it.

Regards,
Ronald.


Van: Ryan Steinmetz <[email protected]>
Datum: vrijdag, 9 januari 2026 17:58
Aan: Ronald Klop <[email protected]>
Onderwerp: Re: fetch from pkg.freebsd.org fails: Not Implemented

On (01/09/26 17:53), Ronald Klop wrote:
>Hi,
>
>I run my script every 3 hours and it fetches multiple data.pkg files. Most of 
them are successful, only a few give an error.
>
>The one below happened on: >+<<< Date: Fri, 09 Jan 2026 14:04:04 GMT
>
>The fetch command is:
>fetch -vv -o /data/FreeBSD:13:amd64_quarterly_data.pkg 
--if-modified-since=/data/FreeBSD:13:amd64_quarterly_data.pkg 
"https://pkg.freebsd.org/FreeBSD:13:amd64/quarterly/data.pkg";
>


Got it, thanks.  Can you monitor and let me know if you see it again?

-r


>I have output of a similar request for 
"https://pkg.freebsd.org/FreeBSD:14:amd64/quarterly/data.pkg"; at +<<< Date: Fri, 
09 Jan 2026 14:04:10 GMT.
>
>Oh, I can look back in my script runs. The first time this happened was in the run of 
"Thu, 08 Jan 2026 21:09:01 +0100".
>
>Regards,
>Ronald
>
>
>
>Van: Ryan Steinmetz <[email protected]>
>Datum: vrijdag, 9 januari 2026 16:24
>Aan: Ronald Klop <[email protected]>
>Onderwerp: Re: fetch from pkg.freebsd.org fails: Not Implemented
>>
>>If possible, can you share:
>>- Specific timestamps of when it was happy and when you experienced a    501?
>>- The exact fetch command you're using
>>
>>Thanks,
>>-r
>>
>>
>>On (01/09/26 15:28), Ronald Klop wrote:
>>>Hi,
>>>
>>>For a little tool (https://www.klop.ws/pkgstats/pkg-age.html) I regularly 
fetch some data from the pkg servers.
>>>Since a day or two I get spurious errors. I added -vv to my fetch command 
and got this output.
>>>
>>>Apparently the server sends HTTP 501 status code. And fetch exits with "Not 
Implemented".
>>>
>>>
>>>scheme:   "https"
>>>+user:     ""
>>>+password: ""
>>>+host:     "pkg.freebsd.org"
>>>+port:     "0"
>>>+document: "/FreeBSD:13:amd64/quarterly/data.pkg"
>>>+---> pkg.freebsd.org:443
>>>+resolving server address: pkg.freebsd.org:443
>>>+SSL options: 82004850
>>>+Peer verification enabled
>>>+Using OpenSSL default CA cert file and path
>>>+Verify hostname
>>>+TLSv1.3 connection established using TLS_AES_128_GCM_SHA256
>>>+Certificate subject: /CN=pkg.freebsd.org
>>>+Certificate issuer: /C=US/O=Certainly/CN=Certainly Intermediate R1
>>>+requesting https://pkg.freebsd.org/FreeBSD:13:amd64/quarterly/data.pkg
>>>+>>> GET /FreeBSD:13:amd64/quarterly/data.pkg HTTP/1.1
>>>+If-Modified-Since: Tue, 06 Jan 2026 15:22:51 GMT
>>>+>>> If-Modified-Since: Tue, 06 Jan 2026 15:22:51 GMT
>>>+>>> Host: pkg.freebsd.org
>>>+>>> Accept: */*
>>>+>>> User-Agent: fetch libfetch/2.0
>>>+>>> Connection: close
>>>+>>>
>>>+<<< HTTP/1.1 501 First fragment: unexpected status code
>>>
>>>+<<< Connection: close
>>>
>>>+<<< Content-Length: 0
>>>
>>>+<<< Via: 1.1 varnish, 1.1 varnish
>>>
>>>+content length: [0]
>>>+<<< ETag: "695d28cb-a3e396"
>>>
>>>+<<< Age: 0
>>>
>>>+<<< Accept-Ranges: bytes
>>>
>>>+<<< Date: Fri, 09 Jan 2026 14:04:04 GMT
>>>
>>>+<<< X-Served-By: cache-rtm-ehrd2290047-RTM
>>>
>>>+<<< X-Cache: MISS
>>>
>>>+<<< X-Cache-Hits: 0
>>>
>>>+<<< X-Timer: S1767967444.984756,VS0,VE111
>>>
>>>+<<< Cache-Control: no-cache,no-store,max-age=0
>>>
>>>+<<<
>>>
>>>+offset 0, length -1, size -1, clength 0
>>>+fetch: https://pkg.freebsd.org/FreeBSD:13:amd64/quarterly/data.pkg: Not 
Implemented
>>>
>>>
>>>
>>>The fetch in the script worked fine for about a year.
>>>Does this ring a bell to anybody?
>>>
>>>Regards,
>>>Ronald.
>>>
>>
>>-- >>Ryan Steinmetz
>>PGP: 4143 0BDC 21B0 B3D9 6D47  F0DA 504D C825 7FAD 8C58
>>
>>
>>
>
>

--
Ryan Steinmetz
PGP: 4143 0BDC 21B0 B3D9 6D47  F0DA 504D C825 7FAD 8C58




Reply via email to