Vsch07CGt6gbTogPoCvpiAeFqnEr3Osfe61i uAglxIFefEAFz9kXj7K/EeIo4AEy3rsfEmPe9zK41PTgVtnNWvw2oc8vqo7OKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4dqFgN2PjBz15PF for ; Mon, 12 Jan 2026 01:49:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 60C1nqrp096745 for ; Mon, 12 Jan 2026 01:49:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 60C1nqpg096744 for pkg@FreeBSD.org; Mon, 12 Jan 2026 01:49:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 292214] ports-mgmt/pkg sqlite error Date: Mon, 12 Jan 2026 01:49:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: dan.with@protonmail.com X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D292214 --- Comment #16 from Dan With --- Additional info for arm64 Quarterly: it appears to be the FreeBSD-ports repo having problems. The kmods and base are fine as of Mon Jan 12 01:28:14 UTC 2026. FreeBSD-ports: { url: "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes } Output matching original post's problem: root@alderaan-bsd:~ # cd /var/db/pkg root@alderaan-bsd:/var/db/pkg # rm -vfR * local.sqlite repos/FreeBSD-base/db repos/FreeBSD-base/meta repos/FreeBSD-base/lock repos/FreeBSD-base/db-journal repos/FreeBSD-base repos/FreeBSD-ports/db-journal repos/FreeBSD-ports/lock repos/FreeBSD-ports/meta repos/FreeBSD-ports repos/FreeBSD-ports-kmods/db-journal repos/FreeBSD-ports-kmods/db repos/FreeBSD-ports-kmods/meta repos/FreeBSD-ports-kmods/lock repos/FreeBSD-ports-kmods repos root@alderaan-bsd:/var/db/pkg # pkg-static install -f pkg Updating FreeBSD-ports repository catalogue... Fetching meta.conf: 100% 179 B 0.2kB/s 00:01 Fetching data.pkg: 100% 10 MiB 1.7MB/s 00:06 Processing entries: 99% pkg-static: sqlite error while executing grmbl in file update.c:154: NOT NU= LL constraint failed: packages.path pkg-static: sqlite error while executing grmbl in file update.c:154: NOT NU= LL constraint failed: packages.path pkg-static: sqlite error while executing INSERT OR REPLACE INTO packages (origin, name, version, comment, desc, arch, maintainer, www, prefix, pkgsi= ze, 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-ports Updating FreeBSD-ports-kmods repository catalogue... Fetching meta.conf: 100% 179 B 0.2kB/s 00:01 Fetching data.pkg: 100% 14 KiB 14.5kB/s 00:01 Processing entries: 100% FreeBSD-ports-kmods repository update completed. 61 packages processed. Updating FreeBSD-base repository catalogue... Fetching meta.conf: 100% 179 B 0.2kB/s 00:01 Fetching data.pkg: 100% 78 KiB 80.3kB/s 00:01 Processing entries: 100% FreeBSD-base repository update completed. 489 packages processed. Error updating repositories! pkg-static: Repository FreeBSD-ports cannot be opened. 'pkg update' required Checking integrity... done (0 conflicting) The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: pkg: 2.4.2 [FreeBSD-base] Number of packages to be installed: 1 The process will require 52 MiB more space. Proceed with this action? [y/N]: y [1/1] Installing pkg-2.4.2... [1/1] Extracting pkg-2.4.2: 100% root@alderaan-bsd:/var/db/pkg # pkg update -f Updating FreeBSD-ports repository catalogue... Fetching meta.conf: 100% 179 B 0.2kB/s 00:01 Fetching data.pkg: 100% 10 MiB 1.7MB/s 00:06 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, flats= ize, 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-ports Updating FreeBSD-ports-kmods repository catalogue... Fetching meta.conf: 100% 179 B 0.2kB/s 00:01 Fetching data.pkg: 100% 14 KiB 14.5kB/s 00:01 Processing entries: 100% FreeBSD-ports-kmods repository update completed. 61 packages processed. Updating FreeBSD-base repository catalogue... Fetching meta.conf: 100% 179 B 0.2kB/s 00:01 Fetching data.pkg: 100% 78 KiB 80.3kB/s 00:01 Processing entries: 100% FreeBSD-base repository update completed. 489 packages processed. Error updating repositories! root@alderaan-bsd:/var/db/pkg # pkg upgrade Updating FreeBSD-ports repository catalogue... Fetching meta.conf: 100% 179 B 0.2kB/s 00:01 Fetching data.pkg: 100% 10 MiB 1.5MB/s 00:07 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, flats= ize, 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-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! pkg: Repository FreeBSD-ports cannot be opened. 'pkg update' required Checking for upgrades (0 candidates): 100% Processing candidates (0 candidates): 100% Checking integrity... done (0 conflicting) Your packages are up to date. root@alderaan-bsd:/var/db/pkg # --=20 You are receiving this mail because: You are the assignee for the bug.=