pkg icon indicating copy to clipboard operation
pkg copied to clipboard

while updating repos, pkg: sqlite error while executing grmbl in file update.c:154: NOT NULL constraint failed: packages.path

Open kfreidank opened this issue 10 months ago • 8 comments

similar to #2575 Full error:

# pkg update
Updating FreeBSD repository catalogue...
Fetching data.pkg: 100%   10 MiB   3.6MB/s    00:03
Processing entries:  99%
pkg: sqlite error while executing grmbl in file update.c:154: NOT NULL constraint failed: packages.path
pkg: sqlite error while executing grmbl in file update.c:154: NOT NULL constraint failed: packages.path
pkg: sqlite error while executing INSERT OR REPLACE INTO packages (origin, name, version, comment, desc, arch, maintainer, www, prefix, pkgsize, flatsize, licenselogic, cksum, path, manifestdigest, olddigest, vital)VALUES (?1, ?2, ?3, ?4, ?5, ?6, ?7, ?8, ?9, ?10, ?11, ?12, ?13, ?14, ?15, ?16, ?17) in file update.c:158: not an error
Processing entries:  99%
Unable to update repository FreeBSD
Updating FreeBSD-kmods repository catalogue...
FreeBSD-kmods repository is up to date.
Error updating repositories!

Release: FreeBSD 14.3-RELEASE-p7 GENERIC amd64 Using pkg quarterly

Tried the following, but same error persists:

# rm -f /var/db/pkg/repo-FreeBSD.sqlite
# pkg update -f

# rm -rf /var/db/pkg/*
# pkg update -f

# pkg bootstrap -f
# pkg update -f

kfreidank avatar Jan 06 '26 04:01 kfreidank

I just hit the same bug, though on 15.0-RELEASE-p1 amd64 w/ quarterly:

Log with -ddd: https://gist.githubusercontent.com/herrhotzenplotz/2f43e4144893b638919da2d0dc1ed3df/raw/593ac5757ffacc8271b26f242a060c5356ce131c/log.txt

herrhotzenplotz avatar Jan 06 '26 09:01 herrhotzenplotz

Ditto here... Same issue with same conditions with "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly" - works ok with pkg+https://pkg.FreeBSD.org/${ABI}/latest

akripo avatar Jan 06 '26 12:01 akripo

Same here, running on 15.0-RELEASE-p1 with quarterly.

gahr avatar Jan 06 '26 20:01 gahr

Also having this issue, yay

rapidradiance avatar Jan 06 '26 22:01 rapidradiance

the repos have been rebuilt and fixed.

bapt avatar Jan 07 '26 09:01 bapt

As far as I can see, this is still happening on FreeBSD:15:aarch64/quarterly. Are those repos also being rebuilt? Works on latest though.

dstapp avatar Jan 09 '26 15:01 dstapp

yes this is being rebuild

bapt avatar Jan 09 '26 15:01 bapt

Thanks for jumping on this. Nice work.

kfreidank avatar Jan 11 '26 14:01 kfreidank