From owner-freebsd-ports@freebsd.org Thu Oct 12 05:47:14 2017 Return-Path: Delivered-To: freebsd-ports@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 87AFFE44854 for ; Thu, 12 Oct 2017 05:47:14 +0000 (UTC) (envelope-from vidar@karlsen.tech) Received: from nivlheim.sentralbanken.no (nivlheim.sentralbanken.no [178.62.212.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48A2666F92 for ; Thu, 12 Oct 2017 05:47:13 +0000 (UTC) (envelope-from vidar@karlsen.tech) Received: from air.karlsen.tech (95.63.34.95.customer.cdi.no [95.34.63.95]) by nivlheim.sentralbanken.no (Postfix) with ESMTPSA id 72AD8895F9; Thu, 12 Oct 2017 07:39:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=karlsen.tech; s=mail; t=1507786761; bh=5AaHpw+Fq+WTlOVGoL0FL/R7T3ye8R/Am9QkY7GSuuQ=; h=From:Subject:Date:In-Reply-To:Cc:To:References; b=tKAb2SYKhEwThhscurlesTsKcC8dq7quUxYB+MP3DUO3iX1mjhQTpfwQUJ9wxtE3p RIa/vr0zuJD+wal4d86sQWyZi3KIQA4YDapBx+pV+6jN56/JebT74S0h8lvqS9DU2H FclAppLJtX84AQghHYBosLCPbOarCMoRoPU0gEOw= From: Vidar Karlsen Message-Id: <8E4C5B17-EB78-437F-9FBE-C0CD74333CB0@karlsen.tech> Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: pkg: sqlite error while executing sqlite open in file pkgdb.c:1126: unable to open database file Date: Thu, 12 Oct 2017 07:39:19 +0200 In-Reply-To: Cc: FreeBSD Ports ML , Kevin Oberman To: Jos Chrispijn References: X-Mailer: Apple Mail (2.3273) X-Virus-Scanned: clamav-milter 0.99.2 at nivlheim.sentralbanken.no X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (nivlheim.sentralbanken.no [0.0.0.0]); Thu, 12 Oct 2017 07:39:21 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2017 05:47:14 -0000 > On 12 Oct 2017, at 01:15, Kevin Oberman wrote: >=20 > On Wed, Oct 11, 2017 at 11:15 AM, Jos Chrispijn = > > wrote: >=20 >> Dear group, >>=20 >> Apparently I have an issue when finalizing the ports with = portmanager. -snip- >> =3D=3D=3D>>> Returning to update check of installed ports >> =3D=3D=3D>>> Update check of installed ports complete >> pkg: sqlite error while executing sqlite open in file pkgdb.c:1126: = unable >> to open database file -snip- > While you are using portmaster(8), portmaster, in turn, uses pkg and = the > pkg database which is sqlite So the pkg suggestions are likely = reasonable. > It looks like the db is missing, seriously damaged, has protections = that > keep portmaster from accessing it, or your db is not in the right pkg = is > looking for it. Also check if your current work dir has been deleted, say, as a = consequence of running portsnap update for example. That can also trigger this error: vidar@cube ~% mkdir -p one/two vidar@cube ~% cd one/two vidar@cube ~/one/two% rm -rf ~/one vidar@cube ~/one/two% pkg info pkg: sqlite error while executing sqlite open in file pkgdb.c:1126: = unable to open database file =E2=80=94=20 Vidar Karlsen=