From owner-freebsd-jail@freebsd.org Mon Aug 22 18:46:25 2016 Return-Path: Delivered-To: freebsd-jail@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 B00D7BC2A82 for ; Mon, 22 Aug 2016 18:46:25 +0000 (UTC) (envelope-from sdb.tomcat@gmail.com) Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) (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 363B51DD1 for ; Mon, 22 Aug 2016 18:46:25 +0000 (UTC) (envelope-from sdb.tomcat@gmail.com) Received: by mail-lf0-x22d.google.com with SMTP id f93so84594175lfi.2 for ; Mon, 22 Aug 2016 11:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=Rx7jhPpUzNszqKLSK+WUkNJsYhrnYMRa6JxuIc9C9a0=; b=qw0XawC0gh3QzhJ0Nu565tLrR0D4Hq4xdxNf/nTCBiSN7SHc8qGSMD4/HpNhXnM6Kj nEeiuQLeVZ+9gDlOnnoPl/kaYYoNtUxOY2jmCTORbyz4pmCJiRygc/51XgvWIsn6+XWQ EDf2mFyZXxN+52ZKqqyOsbbxEcr+dwHBRWOON4OuqrkksNkCmipWhvRlqU5FARSkcFTO QLY3To2i6Mj4MO9wT/XF9e5rzwJC+ppBiiCupO3aEYExOfxM28TrFFpujulIloMI96z7 +gAp8RPjql5UAgui1Snlw9OKWxxSvdGk4oNwUiE3B6OUJKjeGKpW3BzkkvKKBP8uhDeF ZmvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Rx7jhPpUzNszqKLSK+WUkNJsYhrnYMRa6JxuIc9C9a0=; b=UyUkUFv4nIFf6ss+9G0nq2k0Fttn8qu6B3gAR54iVSSqpG/uBah9yjOMACsExxczLf Cg9fZW/DjrT71VWQb00FHenR8MbS4wIHL/8MkjSnpK3+YGY0XiLIy00+0ook/7EXnlmp IjwKPA4KI5SzsXS6NHtQ6lhHqGhDaYZi4iowtPqwvhLc4FuOcZiYvODt81h95KaaakHt TRUKNNGQUx8mNCNgGcyyecmJGdUALni+39I8IJWEjO6m+qwwZoW/CBW9+4iD//AroBM/ X+/RwHhjJLdhYWfHLghnAB4oLu+4D/QArPdKBa/GNoDFuWN1EFMWDhHLN8/bvcf4E6/C GpgA== X-Gm-Message-State: AEkooutmhgXxYf+xj5deAymPPqHWYg/orVWaHuZRCxTPSjrSLGQYC8Z5Np/npURSpBhnM2diYjxP02PklpIcsA== X-Received: by 10.25.216.163 with SMTP id r35mr4868838lfi.173.1471891582833; Mon, 22 Aug 2016 11:46:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.183.103 with HTTP; Mon, 22 Aug 2016 11:46:21 -0700 (PDT) From: Thomas Thompson Date: Mon, 22 Aug 2016 14:46:21 -0400 Message-ID: Subject: pkg install fails in jail with v 1.8.7 To: freebsd-jail@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2016 18:46:25 -0000 Hello, I've run into an odd problem with pkg v 1.8.7 and jails on a FreeBSD 9.3 server. I'm getting the same error as described in this thread from the forums: https://forums.freebsd.org/threads/56490/ where package installs fail and report two errors (snipped from jail install logs): pkg: dup2(rootfd): Invalid argument pkg: Fail to create /usr: Bad file descriptor It's not an FS issue as far as I can tell (fsck returns clean), and it goes away if I lock the pkg version in the ezjail.current file before doing updates and installing new packages: pkg lock -y pkg pkg 1.8.7 works fine on another server, and my google-fu isn't finding anything obvious. Any help / pointers here would be greatly appreciated. For reference / on the server is ufs. -T.J.