Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Apr 2024 11:01:41 +0200
From:      Michael Gmelin <freebsd@grem.de>
To:        Andrea Venturoli <ml@netfence.it>
Cc:        bdrewery@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: Poudriere 3.4.1 regression: can't run in a jail
Message-ID:  <A3D73352-DD9A-4A6D-9AC3-FC1743F4267F@grem.de>
In-Reply-To: <b7198eab-2357-4868-8f29-221d24adb97a@netfence.it>
References:  <b7198eab-2357-4868-8f29-221d24adb97a@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail-AABF1012-E7DD-405D-8E80-05190B94ED55
Content-Type: text/plain;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable



> On 27. Apr 2024, at 08:56, Andrea Venturoli <ml@netfence.it> wrote:
>=20
> =EF=BB=BFHello.
>=20
> First of all, thanks for your work.
>=20
> I've got a 14.0/amd64 system where I run Poudriere in a jail, but if I upg=
rade it from 3.4.0 to 3.4.1_1 it stops working.
> E.g.
>=20
>> # poudriere bulk -f /root/133amd64.lst -v -j 133amd64
>> [00:00:00] Creating the reference jail... done
>> [00:00:01] Mounting system devices for 133amd64-default
>> [00:00:01] Stashing existing package repository
>> [00:00:01] Mounting ccache from: /ccache
>> [00:00:01] Mounting ports from: /usr/ports/
>> [00:00:01] Mounting packages from: /usr/local/poudriere/data/packages/133=
amd64-default
>> [00:00:01] Mounting distfiles from: /usr/ports/distfiles
>> [00:00:01] Copying /var/db/ports from: /usr/local/etc/poudriere.d/options=

>> [00:00:01] Appending to make.conf: /usr/local/etc/poudriere.d/make.conf
>> /etc/resolv.conf -> /usr/local/poudriere/data/.m/133amd64-default/ref/etc=
/resolv.conf
>> [00:00:01] Starting jail 133amd64-default
>> jail: jail_set: Operation not permitted
>> [ERROR] Unhandled error!
>> [00:00:01] Cleaning up
>> [00:00:01] Unmounting file systems
>> Exiting with status 1
>=20
> Is this a bug?
> Is there anything that must be altered in the setup?
> Anything to check?
>=20
> bye & Thanks
>    av.
>=20

You need to add allow.mlock to your jail config, see https://bugs.freebsd.or=
g/bugzilla/show_bug.cgi?id=3D276176#c4

-m


--Apple-Mail-AABF1012-E7DD-405D-8E80-05190B94ED55
Content-Type: text/html;
	charset=utf-8
Content-Transfer-Encoding: quoted-printable

<html><head><meta http-equiv=3D"content-type" content=3D"text/html; charset=3D=
utf-8"></head><body dir=3D"auto"><div dir=3D"ltr"></div><div dir=3D"ltr"><br=
></div><div dir=3D"ltr"><br><div dir=3D"ltr"></div><blockquote type=3D"cite"=
>On 27. Apr 2024, at 08:56, Andrea Venturoli &lt;ml@netfence.it&gt; wrote:<b=
r><br></blockquote></div><blockquote type=3D"cite"><div dir=3D"ltr">=EF=BB=BF=
<span>Hello.</span><br><span></span><br><span>First of all, thanks for your w=
ork.</span><br><span></span><br><span>I've got a 14.0/amd64 system where I r=
un Poudriere in a jail, but if I upgrade it from 3.4.0 to 3.4.1_1 it stops w=
orking.</span><br><span>E.g.</span><br><span></span><br><blockquote type=3D"=
cite"><span># poudriere bulk -f /root/133amd64.lst -v -j 133amd64</span><br>=
</blockquote><blockquote type=3D"cite"><span>[00:00:00] Creating the referen=
ce jail... done</span><br></blockquote><blockquote type=3D"cite"><span>[00:0=
0:01] Mounting system devices for 133amd64-default</span><br></blockquote><b=
lockquote type=3D"cite"><span>[00:00:01] Stashing existing package repositor=
y</span><br></blockquote><blockquote type=3D"cite"><span>[00:00:01] Mounting=
 ccache from: /ccache</span><br></blockquote><blockquote type=3D"cite"><span=
>[00:00:01] Mounting ports from: /usr/ports/</span><br></blockquote><blockqu=
ote type=3D"cite"><span>[00:00:01] Mounting packages from: /usr/local/poudri=
ere/data/packages/133amd64-default</span><br></blockquote><blockquote type=3D=
"cite"><span>[00:00:01] Mounting distfiles from: /usr/ports/distfiles</span>=
<br></blockquote><blockquote type=3D"cite"><span>[00:00:01] Copying /var/db/=
ports from: /usr/local/etc/poudriere.d/options</span><br></blockquote><block=
quote type=3D"cite"><span>[00:00:01] Appending to make.conf: /usr/local/etc/=
poudriere.d/make.conf</span><br></blockquote><blockquote type=3D"cite"><span=
>/etc/resolv.conf -&gt; /usr/local/poudriere/data/.m/133amd64-default/ref/et=
c/resolv.conf</span><br></blockquote><blockquote type=3D"cite"><span>[00:00:=
01] Starting jail 133amd64-default</span><br></blockquote><blockquote type=3D=
"cite"><span>jail: jail_set: Operation not permitted</span><br></blockquote>=
<blockquote type=3D"cite"><span>[ERROR] Unhandled error!</span><br></blockqu=
ote><blockquote type=3D"cite"><span>[00:00:01] Cleaning up</span><br></block=
quote><blockquote type=3D"cite"><span>[00:00:01] Unmounting file systems</sp=
an><br></blockquote><blockquote type=3D"cite"><span>Exiting with status 1</s=
pan><br></blockquote><span></span><br><span>Is this a bug?</span><br><span>I=
s there anything that must be altered in the setup?</span><br><span>Anything=
 to check?</span><br><span></span><br><span> bye &amp; Thanks</span><br><spa=
n> &nbsp; &nbsp;av.</span><br><span></span><br></div></blockquote><br><div>Y=
ou need to add allow.mlock to your jail config, see&nbsp;<a href=3D"https://=
bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276176#c4">https://bugs.freebsd.=
org/bugzilla/show_bug.cgi?id=3D276176#c4</a></div><div><br></div><div>-m</di=
v><div><br></div></body></html>=

--Apple-Mail-AABF1012-E7DD-405D-8E80-05190B94ED55--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A3D73352-DD9A-4A6D-9AC3-FC1743F4267F>