From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sCu2HSVPrmEbegEAgWs5BA (envelope-from ) for ; Mon, 06 Dec 2021 18:57:57 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id WJ14GSVPrmHYZgAA1q6Kng (envelope-from ) for ; Mon, 06 Dec 2021 17:57:57 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 4089A3D023 for ; Mon, 6 Dec 2021 18:57:57 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A1A2F29159; Mon, 6 Dec 2021 12:57:51 -0500 (EST) Received: from pmade.com (mail.pmade.com [45.33.113.117]) by mail.notmuchmail.org (Postfix) with ESMTPS id 3F20D2914F for ; Mon, 6 Dec 2021 12:57:49 -0500 (EST) Received: from medusa (unknown [IPv6:2600:8800:1701:e52a::1f7c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) (Authenticated sender: pjones@pmade.com) by pmade.com (Postfix) with ESMTPSA id A84E0120677; Mon, 6 Dec 2021 17:57:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=pmade.com; s=20150827; t=1638813438; bh=IPVzMY2IcyQrnh91/6+xoTOMThp/ckUTrSdayAvOq98=; h=From:To:Subject:In-Reply-To:References:Date:From; b=a4bgUYc/jBEteABZxC7yoWAfpXRT+P1HTmYiIC/xmYFdG3tfCCF7kE76xU9P/WCY9 dvcjQbpj2F1/YTGKnvam/zklNBbEPPzkGjDEzCQYRxb4ulL3w0y5AHp5unEWxGo3E+ oUsddBnZhT/Kopp+Jg4ZVOTnhzI3W/l5UgRMo4gk= From: Peter J. Jones To: David Bremner , notmuch@notmuchmail.org Subject: Re: notmuch insert: Cannot open Xapian database (0.34.1) In-Reply-To: <878rx0ry7g.fsf@tethera.net> References: <87mtlg8bow.fsf@devalot.com> <878rx0ry7g.fsf@tethera.net> User-Agent: Notmuch/0.31.4 (https://notmuchmail.org) Emacs/27.2 (x86_64-pc-linux-gnu) Date: Mon, 06 Dec 2021 10:57:11 -0700 Message-ID: <87ee6p39c8.fsf@devalot.com> MIME-Version: 1.0 X-Rspamd-Server: moriarty X-Spamd-Result: default: False [-0.10 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:22773, ipnet:2600:8800::/32, country:US] X-Rspamd-Queue-Id: A84E0120677 Message-ID-Hash: SPE5ALP3R2JKDEQOGOYWPJVEYG5NOO7C X-Message-ID-Hash: SPE5ALP3R2JKDEQOGOYWPJVEYG5NOO7C X-MailFrom: pjones@pmade.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: FR ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638813477; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1H0n7o4thlh54ABFSDlAMZXKC5cMPtegAgmh6Y21G/A=; b=ktzbNwsQv8XvMD31VcMD0Bdqgf5xvAmJcW5QowK2qPW8iB5G8jC/YI7gD0xpRasrUKQVo0 vr5oC05MmbpCqtgSWXvMdPVanhT25o/cxjKErRdLmZsaWIL2AmMy7r3Fo9J1fbcnNIc/Ac X1JP2Rr3RYA9I4wFJxA2IpTKEd3Xi/pmtq+0y3aA6aSPuUj7+xf6c0CRx2VyXmRHhtmo6Q vy0DWwKXovnIgn3rm8uyxjTK2PVKnmecyv6LokSDk1YEeqr6nVQvGKwcXFR41YUQWYKnez IepdWf4gRWfiLUYDZiSqkLzjCJ3i2MbOyZ9iMMM7b4Adn9jk9sfS3uzDRvEQRQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638813477; a=rsa-sha256; cv=none; b=Jhy57qHwyJU9IiHQ0sHaNyI4d6PL4LsCqJkp5J/EN4UvoXQKG0OaLy3OUTUN++DRCp0uqN Fwm0P1AAn/3aefemW8BrxLsMdcDEMn79Q6t6WrIQyWTz3XehanzECpvxRgmyuofdHiYsNH VIsR+H4hbCqOg7z/u8pqeLL0F+yE7uM0aKWqcrMjW1vVqqNy2ORCFck8M6/Z/+/0/OaGiJ w/0DR8CVe0P/Z93+IxyzvK0CoNnm04ug/+JqHBBHy51G3q/3Wv6r8VusLM6wfEMLFIpXvV jQyiOU5NbR1UE9DgyS6JUT+cuaClBNVG1NL7HYxv1lldkPXF+skusn6llYhadw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=pmade.com header.s=20150827 header.b="a4bgUYc/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=pmade.com (policy=quarantine); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 6.00 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=pmade.com header.s=20150827 header.b="a4bgUYc/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=pmade.com (policy=quarantine); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 4089A3D023 X-Spam-Score: 6.00 X-Migadu-Spam: Yes X-Migadu-Scanner: scn0.migadu.com X-TUID: rJfOxrSxA7xe On Sat, Dec 04 2021, David Bremner wrote: > "Peter J. Jones" writes: >> >> In my tests I bootstrap a new VM with an account that has no mail yet. >> Then mail comes in via Dovecot which is handed off to `notmuch insert`, >> which fails. On my end I can fix the test by running `notmuch new` >> before Dovecot calls `notmuch insert`. >> >> The second issue is that if the `.notmuch` directory exists, but the >> `.notmuch/xapian` directory doesn't, `notmuch new/insert` will fail: >> files first, then notmuch is run to test mail delivery and indexing. >> >> This seemed to work in 0.31 (notmuch would just create a new database). >> >> Would it be okay to change `notmuch_database_create_with_config` to >> create a new database if `.notmuch` exists but `.notmuch/xapian` >> doesn't? > > There is many different options for database location possible in 0.32 > that were not possible in 0.31. It might be a bit trickier to make this > change (without compromising something else) than the previous one. > > Perhaps migrating to XDG database locations (see notmuch-config(1) for > details) would be an option for you? Thanks for the pointer. I was able to resolve this issue by moving my hook scripts out of `database.path` thanks to `database.hook_dir`. -- Peter Jones