Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Oct 2017 13:43:07 -0700
From:      Mel Pilgrim <list_freebsd@bluerosetech.com>
To:        Jos Chrispijn <bsdports@cloudzeeland.nl>, FreeBSD Ports ML <freebsd-ports@freebsd.org>
Subject:   Re: pkg: sqlite error while executing sqlite open in file pkgdb.c:1126: unable to open database file
Message-ID:  <64e38b1c-7d68-1504-1306-1c4cc4f9978a@bluerosetech.com>
In-Reply-To: <fc394181-fede-ce16-16d4-535306d59bfe@cloudzeeland.nl>
References:  <fc394181-fede-ce16-16d4-535306d59bfe@cloudzeeland.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/11/2017 11:15, Jos Chrispijn wrote:
> Dear group,
> 
> Apparently I have an issue when finalizing the ports with portmanager.
[...]
> pkg: sqlite error while executing sqlite open in file pkgdb.c:1126: 
> unable to open database file
> 
> I checked numerous solutions, but most of them refer to a solution done 
> with the pkg command, while I am using portmaster to upgrade.
> 
> Can someone tell me how I can solve this issue without risking my ports 
> collection being corrupted by some pkg command?

This is a known bug in pkg caused by pkg running with a CWD that either 
doesn't exist or it doesn't have permissions.

See https://github.com/freebsd/pkg/issues/1552

The workaround is making sure the directory you're in when you run pkg 
commands exists and has at least mode 0555.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64e38b1c-7d68-1504-1306-1c4cc4f9978a>