From owner-freebsd-questions@freebsd.org Sat Aug 20 12:28:57 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3FF64BC06E3 for ; Sat, 20 Aug 2016 12:28:57 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: from mail-ua0-x236.google.com (mail-ua0-x236.google.com [IPv6:2607:f8b0:400c:c08::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EF3D31A1A; Sat, 20 Aug 2016 12:28:56 +0000 (UTC) (envelope-from demelier.david@gmail.com) Received: by mail-ua0-x236.google.com with SMTP id 74so121437338uau.0; Sat, 20 Aug 2016 05:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=P09E3GjFRA0HKp/jxU1mr9dUVxo9a8nTUu/55+qlg8c=; b=S3XmCaG81e64NMODSXRdrjXFMpjs/tON7eESyZGzGN2gtrWK+91V11O//WiNj1tqZY 6SzcEdT05K33hB9h1EcFo0scy6HCanRzX1w/N/gJ8AdyfmxJWG37ts/QEswZ67Mw/oCS LjJcoDMKtBrRJbhZTFnDL0GS3oCXvqKTqfJyU8Rs96nb3kjOdGrSo1Ny8yrGn7KVxeZ8 Yb0Sz9hLSTk/5U3MOl20kVlUcppIxmqIkvi+Foqo2TKkNBwgIpG0WtFebaPEqxQJ7PEd RgTTTbzclcarPfDWUi/a/YUzfx1E2wXpXK/MHc2W8UyTR73M1MB65MWBiBUuYwuTOig6 +zgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=P09E3GjFRA0HKp/jxU1mr9dUVxo9a8nTUu/55+qlg8c=; b=cGYb679A5OXCMgir+Xp7vikM9nXH44CbZIIlmoHbVofDpjxN0e+u9H26A3Zr62BTxT b8E2fzmbPR9beUYzsW1jcwJvY8jtHnd7a/XuOEHrPT6cwKo1BesbDYVEo2R1qSx4L6Wp wFHXkA6XWSERfEJhS+FAdmtyLb3YCJ5paQZv3aQGIZvh9R5CVoJmdJ5z5TT1/IarUhFJ d+uhuswzRl2PZDTNdE4gPPjB7p2Rt4RhrCtJTkSJGJ5L15tdtRAvwWy/9BhkZnXHMZO/ 72B/HASOQn31ALJr/2cnmRm4BWhA4ahuVpAFrlvV7zO9KKgy4PuLQv8PKImu+4bnz2w0 qqiw== X-Gm-Message-State: AEkoouuT9atwlrCdVC/F3IQidcD534sKeNbe0Lp5/zGeSruBQwtnsC8RReA2MbmT/7cLgUowKz1UnpkdcItUeA== X-Received: by 10.31.86.2 with SMTP id k2mr601115vkb.135.1471696136055; Sat, 20 Aug 2016 05:28:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.75.79 with HTTP; Sat, 20 Aug 2016 05:28:55 -0700 (PDT) In-Reply-To: References: From: David Demelier Date: Sat, 20 Aug 2016 14:28:55 +0200 Message-ID: Subject: Re: jail -r does not remove a jail To: Matthew Seaman Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2016 12:28:57 -0000 2016-08-20 13:02 GMT+02:00 Matthew Seaman : > 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