Poudriere, new jail: "[ERROR] Unhandled error!"

Hi there,

Just created a new jail for 14.3 and trying to build it, receiving error [ERROR] Unhandled error!.
Previous jails had no errors. -v and -vv doesn't seems to produce any additional info... :

Code:
 # poudriere bulk -j freebsd_14_3_amd64_nox -p default -f /usr/local/etc/poudriere.d/port-list
[00:00:00] Creating the reference jail... done
[00:00:00] Mounting system devices for freebsd_14_3_amd64_nox-default
[00:00:00] Warning: Using packages from previously failed, or uncommitted, build: /usr/local/poudriere/data/packages/freebsd_14_3_amd64_nox-default/.building
[00:00:00] Mounting ccache from: /var/cache/ccache
[00:00:00] Mounting ports from: /usr/local/poudriere/ports/default
[00:00:00] Mounting packages from: /usr/local/poudriere/data/packages/freebsd_14_3_amd64_nox-default
[00:00:00] Mounting distfiles from: /usr/ports/distfiles
[00:00:00] Copying /var/db/ports from: /usr/local/etc/poudriere.d/default-options
[00:00:00] Appending to make.conf: /usr/local/etc/poudriere.d/make.conf
/etc/resolv.conf -> /usr/local/poudriere/data/.m/freebsd_14_3_amd64_nox-default/ref/etc/resolv.conf
[00:00:00] Starting jail freebsd_14_3_amd64_nox-default
Updating /var/run/os-release done.
[00:00:00] Will build as nobody:nobody (65534:65534)
[00:00:01] Logs: /usr/local/poudriere/data/logs/bulk/freebsd_14_3_amd64_nox-default/2025-09-29_11h26m23s
[00:00:01] WWW: http://10.51.0.72//build.html?mastername=freebsd_14_3_amd64_nox-default&build=2025-09-29_11h26m23s
[00:00:01] Loading MOVED for /usr/local/poudriere/data/.m/freebsd_14_3_amd64_nox-default/ref/usr/ports
[00:00:01] Ports supports: FLAVORS SUBPACKAGES SELECTED_OPTIONS
[00:00:01] Inspecting ports tree for modifications to git checkout... no
[00:00:03] Ports top-level git hash: c33efeef8
[00:00:03] Gathering ports metadata
[00:00:30] Calculating ports order and dependencies
[00:00:34] Trimming IGNORED and blacklisted ports
[00:00:34] Package fetch: Looking for missing packages to fetch from pkg+http://pkg.FreeBSD.org/${ABI}/latest
[00:00:34] Packge fetch: bootstrapping pkg
Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
[freebsd_14_3_amd64_nox-default] Installing pkg-2.2.2...
[freebsd_14_3_amd64_nox-default] Extracting pkg-2.2.2: 100%
Updating FreeBSD repository catalogue...
[freebsd_14_3_amd64_nox-default] Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
[freebsd_14_3_amd64_nox-default] Fetching data.pkg: 100%   10 MiB 485.5kB/s    00:22
Processing entries: 100%
FreeBSD repository update completed. 36568 packages processed.
FreeBSD is up to date.
[ERROR] Unhandled error!
[00:01:41] Cleaning up
[00:01:41] Unmounting file systems
Exiting with status 1

Thanks in advance.
 
I've done quite a few builds the past couple of months with a 14.3-RELEASE jail, no problems. Try throwing the jail away and recreating it, maybe something got corrupted in it.
 
nope, same results:
Code:
# delete
poudriere jail -j freebsd_14_3_amd64_nox -C all -d
# create fresh jail
poudriere jail -c -j freebsd_14_3_amd64_nox -v 14.3-RELEASE

# bulk build
poudriere bulk -j freebsd_14_3_amd64_nox -p default -f /usr/local/etc/poudriere.d/port-list
[00:00:00] Creating the reference jail... done
[00:00:01] Mounting system devices for freebsd_14_3_amd64_nox-default
[00:00:01] Converting package repository to new format
[00:00:01] Stashing existing package repository
[00:00:01] Mounting ccache from: /var/cache/ccache
[00:00:01] Mounting ports from: /usr/local/poudriere/ports/default
[00:00:01] Mounting packages from: /usr/local/poudriere/data/packages/freebsd_14_3_amd64_nox-default
[00:00:01] Mounting distfiles from: /usr/ports/distfiles
[00:00:01] Copying /var/db/ports from: /usr/local/etc/poudriere.d/default-options
[00:00:01] Appending to make.conf: /usr/local/etc/poudriere.d/make.conf
/etc/resolv.conf -> /usr/local/poudriere/data/.m/freebsd_14_3_amd64_nox-default/ref/etc/resolv.conf
[00:00:01] Starting jail freebsd_14_3_amd64_nox-default
Updating /var/run/os-release done.
[00:00:01] Will build as nobody:nobody (65534:65534)
[00:00:01] Logs: /usr/local/poudriere/data/logs/bulk/freebsd_14_3_amd64_nox-default/2025-09-29_12h44m30s
[00:00:01] WWW: http://10.51.0.72//build.html?mastername=freebsd_14_3_amd64_nox-default&build=2025-09-29_12h44m30s
[00:00:01] Loading MOVED for /usr/local/poudriere/data/.m/freebsd_14_3_amd64_nox-default/ref/usr/ports
[00:00:02] Ports supports: FLAVORS SUBPACKAGES SELECTED_OPTIONS
[00:00:02] Inspecting ports tree for modifications to git checkout... no
[00:00:03] Ports top-level git hash: c33efeef8
[00:00:03] Gathering ports metadata
[00:00:29] Calculating ports order and dependencies
[00:00:32] Trimming IGNORED and blacklisted ports
[00:00:32] Package fetch: Looking for missing packages to fetch from pkg+http://pkg.FreeBSD.org/${ABI}/latest
[00:00:32] Packge fetch: bootstrapping pkg
Bootstrapping pkg from pkg+https://pkg.FreeBSD.org/FreeBSD:14:amd64/quarterly, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
[freebsd_14_3_amd64_nox-default] Installing pkg-2.2.2...
[freebsd_14_3_amd64_nox-default] Extracting pkg-2.2.2: 100%
Updating FreeBSD repository catalogue...
[freebsd_14_3_amd64_nox-default] Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
[freebsd_14_3_amd64_nox-default] Fetching data.pkg: 100%   10 MiB 356.1kB/s    00:30
Processing entries: 100%
FreeBSD repository update completed. 36568 packages processed.
FreeBSD is up to date.
[ERROR] Unhandled error!
[00:01:32] Cleaning up
[00:01:32] Unmounting file systems
Exiting with status 1
 
Code:
[00:00:00] Will build as nobody:nobody (65534:65534)
Oh, this might be the problem. That nobody user isn't allowed to update the package database, that might be the issue here. It appears to fail right after pkg(8) attempted to update the locally cached repository data.
Code:
[freebsd_14_3_amd64_nox-default] Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
[freebsd_14_3_amd64_nox-default] Fetching data.pkg: 100%   10 MiB 485.5kB/s    00:22
Processing entries: 100%
FreeBSD repository update completed. 36568 packages processed.
FreeBSD is up to date.
[ERROR] Unhandled error!

Try setting BUILD_AS_NON_ROOT=no in poudriere.conf.
 
Try setting BUILD_AS_NON_ROOT=no in poudriere.conf.
setting this in
/usr/local/etc/poudriere.conf
has produced the same
Code:
[00:00:00] Will build as nobody:nobody (65534:65534)
with same error while bulk building

Found this bug: https://github.com/gershwin-desktop/gershwin-unstable-ports/issues/2

I have tried to build a single port - with dependency not requiring fetching, success ....

now I have to recall how did I manage to enable fetching ports with default compile options ...
 
Finally, to address this issue for FreeBSD14.3 jails, my solution - completely disable PACKAGE_FETCH support:

in file: /usr/local/etc/poudriere.conf comment or set to "off" PACKAGE_FETCH_BRANCH option
Code:
#PACKAGE_FETCH_BRANCH=latest
 
That's what I was thinking too, but I expected that option to only enable if you added -b <branch> on the poudriere-bulk(8) command (which you didn't have).
 
Back
Top