From owner-freebsd-jail@freebsd.org Tue Aug 23 15:25:47 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 F0D03BC32E9 for ; Tue, 23 Aug 2016 15:25:47 +0000 (UTC) (envelope-from sdb.tomcat@gmail.com) Received: from mail-qk0-x22e.google.com (mail-qk0-x22e.google.com [IPv6:2607:f8b0:400d:c09::22e]) (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 B054A1F14 for ; Tue, 23 Aug 2016 15:25:47 +0000 (UTC) (envelope-from sdb.tomcat@gmail.com) Received: by mail-qk0-x22e.google.com with SMTP id l2so109886198qkf.3 for ; Tue, 23 Aug 2016 08:25:47 -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; bh=q77nRuNYf3v0Dx9rkX+bUhQiBajhqXgrp0ttkGul7G4=; b=yhKfVVv8Eyq7DxdCL0TZXWuIdCpMs1q/oi+9S7PiKstFSSMI21pND50gOeuVrZ+5ua AV63Yu0rfNCWUIBQKI249Z9QMB/qE6azuPNodkDUpDICoGPdqWBM8XL8XU8pmTWAJPXc 6NvXXbWW/5uYT+ZzhLCdvigGCy+QLML9ni9ZEvF3/tHgiq35n6o8s9+ZF1Qaa9gGsWmQ XNLCjs8hzkxlypnSM8GGgH5YrpRNBqKyTi9TejL4HyCWQ/jP+XnNu/fM88GqyFxktZbc R5nJ3oF8LxL372Jw0NF0Bs5DAlUcxBp3nefLOFbmBTPPUIkoexv6kvOHVeiumYn2F79A x9vQ== 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; bh=q77nRuNYf3v0Dx9rkX+bUhQiBajhqXgrp0ttkGul7G4=; b=JTEtmzYD6jgU9Ty9wl43HFM/B8fVYqDOgLErO4Bx/uWwqig1hsvYrSxLN2heI9SKUM DP75c/31y6mPcy6ktQVEHslYSc3MT9AM6kElF9rEzKah+cKo3o5jawk0wY8UXC8k5xH5 dk1dXhFj8WylR3YCXau79usiTUwexdMs2WpGOgt0S9Fuil9rdBX79Bqpi0Wo2psLlQfi gDvGY3hR3oTkPNp1UGliNiA3+Dpu2Cv2vMCk0AhsrhmqbiGdmYFlCw4/1e5exwnLMDAo kI0F51ErOPL4ARSn6/xEjQb5Ej9DWqGMD22gbIRp5aZpjsOUlG+yUnI0je8xITT7E6DN GWKg== X-Gm-Message-State: AE9vXwNmYPl6/LS6kAcfM/AxrOT6AxbeC6pPbJhUBcR/SYHmpEjVxHx3GhTFh5yvbKskAJ+DJqHc6mGBsVNWVQ== X-Received: by 10.55.31.41 with SMTP id f41mr30745344qkf.249.1471965946640; Tue, 23 Aug 2016 08:25:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.47.24 with HTTP; Tue, 23 Aug 2016 08:25:46 -0700 (PDT) In-Reply-To: References: From: Thomas Thompson Date: Tue, 23 Aug 2016 11:25:46 -0400 Message-ID: Subject: Re: 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: Tue, 23 Aug 2016 15:25:48 -0000 Found the issue. The server in question is running 9.1, while the other machines are @ 9.3. I expect the issues to be resolved once I bring the server up to date with the others. -T.J. On Mon, Aug 22, 2016 at 2:46 PM, Thomas Thompson wrote: > 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. >