Network error inside chroot

This happens in an old build system that uses a chroot directory with devfs mounted on /dev and several nullfs-mounts of source directories:

Code:
=> Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/libclc-15.0.7.src.tar.xz
fetch: http://distcache.FreeBSD.org/ports-distfiles/libclc-15.0.7.src.tar.xz: Transient resolver failure
=> Couldn't fetch it - please try to retrieve this

- It happens only with a few ports of hundreds. Others just download their distfile without errors.
- It doesn't happen on the real localhost outside of the chroot dir
- I know chroot is obsoleting but it's much work to change everything to a jail.
- It still happens if I copy the entire host /etc dir to the chroot.

It looks DNS-related but resolving web urls just works inside. What's a transient resolver failure?
 
Says who?

Don't think this has anything to do with a chroot(8), it's a filesystem separation, not process, not network, nothing else besides a filesystem limitation.
No idea where I have that from. It's probably based on lack of abstraction like a jail but I'm only using it as / replacement in an offline environment so that can't be a point.
I have this happening since a few minor releases. . After updating the portstree, I have to pull some distfiles manually from github and put them on their expected location with expected archive filename. It's libclc, spirv-llvm-translator and some others, mostly deps on imlib2. Always the same names that refuse to download.
Now doing a new clean run to look better at the problem. It might be something different than chroot.
 
Back
Top