Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Aug 2016 14:46:21 -0400
From:      Thomas Thompson <sdb.tomcat@gmail.com>
To:        freebsd-jail@freebsd.org
Subject:   pkg install fails in jail with v 1.8.7
Message-ID:  <CAJj8NsHXUFQVr-x-fArUzOWr10B00MZyJ3_ChmzciuAiO=dUDQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJj8NsHXUFQVr-x-fArUzOWr10B00MZyJ3_ChmzciuAiO=dUDQ>