From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uK6sBXYp4WI13gAAbAwnHQ (envelope-from ) for ; Wed, 27 Jul 2022 14:03:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id +JXfBXYp4WJLEAAA9RJhRA (envelope-from ) for ; Wed, 27 Jul 2022 14:03:02 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 6892331A3E for ; Wed, 27 Jul 2022 14:03:01 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 74CA35F35F; Wed, 27 Jul 2022 12:02:58 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id E338E5F343 for ; Wed, 27 Jul 2022 12:02:55 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id C520F5FBD0; Wed, 27 Jul 2022 08:02:54 -0400 (EDT) Received: (nullmailer pid 76146 invoked by uid 1000); Wed, 27 Jul 2022 12:02:53 -0000 From: David Bremner To: Sean Whitton , notmuch@notmuchmail.org Subject: Re: Database location bug when database does not already exist In-Reply-To: <87fsio4qq2.fsf@tethera.net> References: <87y1wqkw13.fsf@athena.silentflame.com> <87fsio4qq2.fsf@tethera.net> Date: Wed, 27 Jul 2022 09:02:53 -0300 Message-ID: <87ilniahle.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: QLYVSN7LITXC4SQIGPFQYWV6IHQ5RLOZ X-Message-ID-Hash: QLYVSN7LITXC4SQIGPFQYWV6IHQ5RLOZ X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header 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-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658923382; 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; bh=uiRNFY9x3oyWSRkg8Sb3R4SqfpIT6/SfPnLg1UtO9H8=; b=IuKorLIrkRbwuCGpZuayAFWsUJZvOfLKmTXcm1b9NvI5o8ReoYLunr+18JE/RIGxAmVWO2 SPXTZOpcAHYg9A5nCMOqOTp0wH+RsZoiXerABrfHXa4bynqQcaY/TKeVoCEVSWQB9a87mU j1dn07RwaF1STKl+Q0zJJy1z3Jj9PDePK8K4Ym7UfjTZ92zDjDrhUgSxA0isr5f9ISP2Qp hWWBNabhvplankwxq7anBcYARydLLtgrFHGFS18bggebiyHiK28X6zxqQ7S/0vj6Kly4J9 I40R7MJZpBEn8BKshOu/DA/UB3Rb5U9yDTB2Pfk943ESnZKSyQDlmskwKBSQRA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658923382; a=rsa-sha256; cv=none; b=k+cLXBUiM7belS4/XiTE0F5xk26aK3Dz6wKbmMPaSlDs2kz+D7s/9bOqR6CfkbX1Jo2fiv C6V0tbaLXQgxGzPBPIoOM6x8e99J+wbQ1KB1VBEfcX6iiSKZh6W58Itd2NpvORLTWZ1dpe MsUJCDiF8lJ5SDdThOya/mOmy0LGwJzluKq+p2rhmvLwObMhoJo9LW4t98TjUqhzdU16uc x+y+W+NSkEN6BAeqvKgdcDBW04Kk+cYUCXWThScv0kh4jApYcyI4du4KDEMTZRlPfkO+Q0 vfTm2m5eMMhg43HqDBtwJX+17bHYI6MJPQ8+BL4eQSOkPfNiZv3oYCtxMjrunw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.34 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 6892331A3E X-Spam-Score: -2.34 X-Migadu-Scanner: scn1.migadu.com X-TUID: IsPvl8QHaUEo David Bremner writes: > Sean Whitton writes: > >> Hello, >> >> In the following situation: >> >> - only notmuch config is ~/.notmuch-config >> - database.mail_root is set >> - database.path is not set >> - notmuch database does not yet exist >> >> then notmuch wants to create its db under mail_root/.notmuch, contrary >> to notmuch-config(1). >> > > Thanks for the report. It looks like the case database.mail_root being > set when database.path is not set is not as well tested as it should > be. I have updated T055-path-config.sh to remedy this [1]. Most things > seem to work, but database creating (and upgrading) seem broken. > Looking at this a bit more (and fixing a few bugs in those test changes) I realized the underlying issue is related to what the library internally callse the "database path" (parent of /xapian) exists. In particular if .local/share/notmuch/default (or replace default with your profile name) does not exist, notmuch does not create it. As a workaround for now you could try creating that directory first. d