jail -r does not remove a jail

David Demelier demelier.david at gmail.com
Sat Aug 20 12:28:57 UTC 2016


2016-08-20 13:02 GMT+02:00 Matthew Seaman <matthew at 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


More information about the freebsd-questions mailing list