FreeBSD 14.4 - pkg is slow to update database

So I have just installed FreeBSD 14.4-release-p7 (ok, I installed 14.4-release and used freebsd-update to get to -p7) on a new partition on the SSD of my workstation.
And suddenly, pkg is slow to update it's database (the "processing entries" part), fetching takes a little less than ten seconds, but look at this
Code:
root@kg-core2:~ # time pkg upgrade -n
Updating FreeBSD repository catalogue...
Fetching data: 100%   540 MiB  62.9 MB/s    00:09    
Processing entries:  76%
Unable to update repository FreeBSD
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
Error updating repositories!
Checking for upgrades (4 candidates): 100%
Processing candidates (4 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
      224.94 real       199.95 user         6.56 sys
that's around 3 minutes!
And it complains that it can't update the FreeBSD repository. What gives?
It wasn't that slow when I installed, it has just become slow now.
Recap:
Code:
root@kg-core2:~ # freebsd-version -ku
14.4-RELEASE-p7
14.4-RELEASE-p7
root@kg-core2:~ # uname -a
FreeBSD kg-core2.kg4.no 14.4-RELEASE-p7 FreeBSD 14.4-RELEASE-p7 #0 -dirty: Tue Jun 30 08:53:56 UTC 2026     root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
root@kg-core2:~ # pkg info pkg\*
pkg-2.7.5
pkgconf-2.4.3_1,1
date and time is synced
Code:
root@kg-core2:~ # ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*kg-omni1.kg4.no 192.36.143.130   2 u  114  128  377    0.064   +2.125   0.108
and I did 'certctl rehash' (it shouldn't matter, it fetches files all right)
the repo directories
Code:
root@kg-core2:~ # ls -l /var/db/pkg /var/db/pkg/repos
/var/db/pkg:
total 106788
-rw-r--r--  1 root wheel 109289472 Jul 21 23:19 local.sqlite
drwxr-xr-x  4 root wheel       512 Jul 21 19:30 repos

/var/db/pkg/repos:
total 8
drwxr-xr-x  2 root wheel 512 Jul 21 23:37 FreeBSD
drwxr-xr-x  2 root wheel 512 Jul 21 19:30 FreeBSD-kmods
this one is new for me.
 
I am seeing this as well, maybe even more so. Just ran pkg update, and the download took much more time, as did the processing. It seems now the download was 540MiB, and the processing did not finish successfully:
Code:
Updating FreeBSD repository catalogue...
Fetching data: 100%   540 MiB   2.4 MB/s    03:52    
Processing entries:  76%
Unable to update repository FreeBSD
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
Error updating repositories!

On a different host, same command but different error (oops, ran out of space on /tmp):
Code:
Updating FreeBSD repository catalogue...
Fetching data: 100%   540 MiB   5.4 MB/s    01:44    

/tmp: write failed, filesystem is full
pkg: Error extracting the archive: 'Write error'
pkg: No signature found
Fetching packagesite: 100%   540 MiB   3.9 MB/s    02:24    

/tmp: write failed, filesystem is full
pkg: Error extracting the archive: 'Write error'
pkg: No signature found
Unable to update repository FreeBSD
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
Error updating repositories!

Both systems are 14.4-RELEASE-p7

What's up with the repository?
 
I got almost exactly the same as both posters first screenshots - 540 MiB, processing stopped at 76% (FreeBSD 14.4 p7) - (to state the obvious) something's not right at the moment:

Code:
# pkg upgrade
Updating FreeBSD repository catalogue...
Fetching data: 100%   540 MiB   6.3 MB/s    01:30  
Processing entries:  76%
Unable to update repository FreeBSD
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
Error updating repositories!
Checking for upgrades (14 candidates): 100%
Processing candidates (14 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
 
Same with FreeBSD 15.1 thick jail. It is painfully slow even though everything was working just fine when I tried it 2-3h ago.

Code:
freebsd 15.1 op@bsd:~ % freebsd-version
15.1-RELEASE-p1

freebsd 15.1 op@bsd:~ % pkg repos
FreeBSD-ports: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/latest",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
FreeBSD-ports-kmods: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/kmods_quarterly_1",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkg"
  }
FreeBSD-base: {
    url             : "pkg+https://pkg.FreeBSD.org/FreeBSD:15:amd64/base_release_1",
    enabled         : yes,
    priority        : 0,
    mirror_type     : "SRV",
    signature_type  : "FINGERPRINTS",
    fingerprints    : "/usr/share/keys/pkgbase-15"
  }

freebsd 15.1 op@bsd:~ % time doas pkg update
Updating FreeBSD-ports repository catalogue...
[bsd.lab.net] Fetching meta.conf: 100%     168 B   0.2 kB/s    00:01
[bsd.lab.net] Fetching data: 100%   716 MiB  23.5 MB/s    00:32
Processing entries:  86%
Unable to update repository FreeBSD-ports
Updating FreeBSD-ports-kmods repository catalogue...
FreeBSD-ports-kmods repository is up to date.
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
Error updating repositories!
552.804u 14.912s 9:57.86 94.9%  2989+208k 0+163332io 886pf+0w
 
Back
Top