Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 May 2017 11:28:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   [Bug 213611] ports-mgmt/pkg: 1.9.1 pkgdb locking doesn't work on NFS
Message-ID:  <bug-213611-32340-jEIBbV9Cl2@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-213611-32340@https.bugs.freebsd.org/bugzilla/>
References:  <bug-213611-32340@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213611

--- Comment #8 from Markus Wennrich <mwennrich@gmail.com> ---
Just saw in the commit
https://github.com/freebsd/pkg/commit/6ed10aa80256b340b4e5c422438c435e7aa70=
c45
that you have to set "NFS_WITH_PROPER_LOCKING" for the fix to work.


    root@server:/ # pkg info
    pkg: sqlite error while executing PRAGMA user_version; in file
pkgdb.c:2442: database is locked

    root@server:/ # echo "NFS_WITH_PROPER_LOCKING =3D true;" >>
/usr/local/etc/pkg.conf

    root@server:/ # pkg info
    autoconf-2.69_1                Automatically configure source code on m=
any
Un*x platforms
    (...)

=3D=3D> I can confirm, that with "NFS_WITH_PROPER_LOCKING" set, pkg locking=
 on NFS
works as expected.=20

But honestly, I don't see a reason for keeping the unix-dotfile code, since=
 it
doesn't work with drop_privileges. As far as I can see, everbody who runs i=
nto
the unix-dotfile part has to set NFS_WITH_PROPER_LOCKING anyway. No?

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-213611-32340-jEIBbV9Cl2>