Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Aug 2016 14:28:55 +0200
From:      David Demelier <demelier.david@gmail.com>
To:        Matthew Seaman <matthew@freebsd.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: jail -r does not remove a jail
Message-ID:  <CAO%2BPfDeF9VA7ggCSv9h3yFry4c2Jifsp1ndQCOHOrFZa5i6Xpw@mail.gmail.com>
In-Reply-To: <bf71ecd3-e0a9-42bc-3ffb-3f97f2700d5d@FreeBSD.org>
References:  <CAO%2BPfDdQxMQNTH-TbhZWSrB4zoKg=%2BTjtfeM_S9eXSkwT69abA@mail.gmail.com> <bf71ecd3-e0a9-42bc-3ffb-3f97f2700d5d@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
2016-08-20 13:02 GMT+02:00 Matthew Seaman <matthew@freebsd.org>:
> On 20/08/2016 09:36, David Demelier wrote:
>> I had a jail that can not be removed after a poudriere jailure:
>>
>> # jls
>>    JID  IP Address      Hostname                      Path
>>     50  127.0.0.1       desktop-103-amd64-default-job
>> /poudriere/data/.m/desktop-103-amd64-default/03
>> # jail -r 50
>> 50: removed
>> # jls
>>    JID  IP Address      Hostname                      Path
>>     50  127.0.0.1       desktop-103-amd64-default-job
>> /poudriere/data/.m/desktop-103-amd64-default/03
>>
>> Why does it say removed and it's not? What can I do without rebooting
>> to kill this jail?
>
> Do you have a stuck process still within that jail?  Try:
>
>    % ps -J 50 -ax
>
> If you have such processes, killing them should allow the jail to shut down.
>
> Failing that, does 'poudriere status' show anything still running?  Can
> you use 'poudriere jail -j jailname -k' to shut it down?
>


The jail that was causing problem was building www/npm, and I just
discovered this bug:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209158

So I was indeed completely hit by this bug as well. Unfortunately I
needed to do a hard reboot.

-- 
Demelier David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAO%2BPfDeF9VA7ggCSv9h3yFry4c2Jifsp1ndQCOHOrFZa5i6Xpw>