From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 6C4YIYCabGXGfwEAG6o9tA:P1 (envelope-from ) for ; Sun, 03 Dec 2023 16:10:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 6C4YIYCabGXGfwEAG6o9tA (envelope-from ) for ; Sun, 03 Dec 2023 16:10:56 +0100 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 585BE5754E for ; Sun, 3 Dec 2023 16:10:55 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=alyssa.is header.s=fm3 header.b=hz2Ilspr; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b="2u/jrgrt"; 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1701616256; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=i4z2VBo00tFeO4tQh0FVGvHy9QE+qyu8dmRCPzNOFdI=; b=GLEyAeWfA453YFH/XXixxZRF3a3YSNq4Ut24AybaBUmyUP36oZRNUXN6NQoebiwg6zM5Ai o/MHFL8qmZtbiQKoAlW51fKOu2H8wFLKRUZ1jS4wTgtWGqG8LqduFo2VxoJQEoCnoFkzaq bQwDsGEihkhjPBu89o94dIY/3+FLc+XsbPSg/EX1VZ52++92HB++4DRHyCDXFmdZS+V1+c 6VXo/zFaz8jqsAP+5KPZ8FyUAJjyiudA7EXE4vmWW4iTpuh5ddeaKi/CaODAxoXf0nY2nD WWLKPsucn+Ym5DOUxJV+3IN9b4mZxGnJA3EY716tYsGYebaXQUEpt78ROnS2OA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1701616256; a=rsa-sha256; cv=none; b=iF/U5qoK7kQhhPeMNfOTkqLXuZF9dQ9i4a5HV9BMabGYt/kPlk3voRu4zg/s5g5gyBlz7L HQcczop+I1aVZb4bIdPtnbVfHQcHxsIArCkiZceONn28tRoSRuhR76K5UQ79xcfJ7vgtcd jMkthamV3k8CE6zgo+VzJHqOy0yRF47iOJ5KeyvzbHyDlto1GehPc7wfy24AecuwUaJALX f6HpWuiA94GFms7W3Y0rtY6uOqYNPfK3lvyyuJSlTUS5B9k+13id5+q+HNei1OO2j38U2o +50lYPZbGfUmTQhlglY5+jLMrrv3UHXa5rBjJGEVnytTeax7ORipZEv5XQaauA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=alyssa.is header.s=fm3 header.b=hz2Ilspr; dkim=fail ("body hash did not verify") header.d=messagingengine.com header.s=fm1 header.b="2u/jrgrt"; 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 Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id E13245E512; Sun, 3 Dec 2023 15:10:52 +0000 (UTC) X-Greylist: delayed 452 seconds by postgrey-1.36 at yantan; Sun, 03 Dec 2023 15:10:50 UTC Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) by mail.notmuchmail.org (Postfix) with ESMTPS id 6367D5E506 for ; Sun, 3 Dec 2023 15:10:50 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id B9F0A3200A6F; Sun, 3 Dec 2023 10:03:16 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 03 Dec 2023 10:03:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1701615796; x=1701702196; bh=5N trAR4SvymZsqGmY+J0h9G84lZquG7yETG48BL33yY=; b=hz2IlsprVCOrj0fY5a h81ZLOxHbu48gUj0O0JOVVflZbhbHOxf6HFPawXUc+AfwEJFDk6rog1jpcdJE5Gf A5WHo/eCbwtQKNw85/s6xBBUrgjf2l/X+Th9UX9iOM0Tio8II+JaPmNMroUZ7/1+ e2AtxXS0QTg/Bwk1aDYxvleDjX1mnwORaXd4Da5NhPU7M2l+I7MWvMpGMYNiEhGX Db04zG9BJ0C8NXFK743kXPohpQKsBdhly192bD2YKpwJ3nrsNAqtKvXtqqJnzPlH LQV0qR85Hq8Puqtt0IautJu+QZ3a8w83TBDU6yp/GJWu6Po5noRrmEkZoJ9DHMGg YLBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1701615796; x=1701702196; bh=5NtrAR4SvymZs qGmY+J0h9G84lZquG7yETG48BL33yY=; b=2u/jrgrtFsRu+fnBHzFR3rftPO7m5 20SpztTkLs4JTQNNmbHRRBnRVeXycyLa590jjgWXM12YzEgF++0aWcBZPRMfeUr5 V+WeHKFaEXrh/TtUK8BLCmMCRSccFbAfgnw4IE3nmQJ/O4Ghby8Ecn5kg/3dpECs qHMK4zE3MRuDD6Ej6P4De21YYGfgV3eIMozaD7gpaR1S93iepZO973joPwEsey+N 0pXhFkjFMSaCAxysGAd1NYyiSZ9rT5TNGK8ZU3+htxL3wwM3oVPtqH5w0pu4qNql N60eBNjDyCC1mKLrPxqypUbCAj5ZAeud4gchvbAcbKnCN6hXA8KO/8quQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudejgedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehgtderredttdejnecuhfhrohhmpeetlhihshhs rgcutfhoshhsuceohhhisegrlhihshhsrgdrihhsqeenucggtffrrghtthgvrhhnpeethe evudfgjefghefhieejudelkeeljeegvdekueeuhffhgedvveefteevgeetieenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehhihesrghlhihssh grrdhish X-ME-Proxy: Feedback-ID: i12284293:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 3 Dec 2023 10:03:15 -0500 (EST) Received: by mbp.qyliss.net (Postfix, from userid 1000) id 3EE2D755E; Sun, 3 Dec 2023 16:03:13 +0100 (CET) From: Alyssa Ross To: David Bremner Subject: Re: [BUG] "Error: Cannot open =?utf-8?Q?database=E2=80=A6=22?= when loading config In-Reply-To: <87r0k3jtol.fsf@tethera.net> References: <87r0k3jtol.fsf@tethera.net> Date: Sun, 03 Dec 2023 16:03:10 +0100 Message-ID: <87wmtvcor5.fsf@alyssa.is> MIME-Version: 1.0 Message-ID-Hash: S6YU4CDBHGTS5ZVJNKLSRY3K6V6ELBVM X-Message-ID-Hash: S6YU4CDBHGTS5ZVJNKLSRY3K6V6ELBVM X-MailFrom: hi@alyssa.is 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 CC: notmuch@notmuchmail.org 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: multipart/mixed; boundary="===============6078997504357281236==" X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -4.70 X-Spam-Score: -4.70 X-Migadu-Queue-Id: 585BE5754E X-TUID: YErsnph4VNO4 --===============6078997504357281236== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain David Bremner writes: > Alyssa Ross writes: > >> Since commit 1c10d91d ("Pass error message from GLib ini parser to CLI"), >> when I run "notmuch config list", I get this error message at the start >> of the output: >> >> Error: Cannot open database at /home/qyliss/state/notmuch/default: No such file or directory. >> >> Presumably this is because my database is in a non-default location, >> which it doesn't know until it's loaded the config. > > I suspect something is being reported as an error when it really isn't > (the library tries a sequence of things when starting up). > > If you can tell me a bit more about your setup, I can try and duplicate > the bug. For starters, where is your config file located, and where is > your database? The path to my config file is set using NOTMUCH_CONFIG. My database is ~/mail/.notmuch, which upon further inspection I'm not actually explicitly configuring anywhere, so I suppose it's falling back to that after checking that there's nothing in $XDG_DATA_HOME/notmuch. My XDG_DATA_HOME is /home/qyliss/state btw, which explains why it's looking there. > You could also try the following patch, which is a bit of a wild guess > > diff --git a/notmuch.c b/notmuch.c > index 814b9e42..7e396d43 100644 > --- a/notmuch.c > +++ b/notmuch.c > @@ -563,7 +563,7 @@ main (int argc, char *argv[]) > NULL, > ¬much, > &status_string); > - if (status_string) { > + if (status && status_string) { > fputs (status_string, stderr); > free (status_string); > status_string = NULL; This didn't make a difference. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAmVsmK4ACgkQ+dvtSFmy ccAp2w//a9IlSb1i1uOYUPBLqtyd13hVogaopilmWTqmB262kXSQk7h4OYkRRnfI Xxo1JOWHqM9URcRvC08UUup8mWKt98Wpli9NASxjn06QnnBVGAwsjaERyCGzP+9/ fS/gWkWCkoEFmHzr7VsXteyEnQBswwx1vJ8kiGX9r0vqczJHrkL6x8N0s8CT8nUk YYAa7NA5vngfB7R795s93cC+RLYVJVVPZ+Iv2JyjK+UlBVxea4Roml279tR1Ll6E HUXrZ31Z9s+FPNipS/VDbukGgmpiI0xba+IrUxcGJNmc8aLospFoOMC03c9C0TUV w5iJWVl1FI9IRreeuJI4kT0SpViMvnP8wosffVlJEud2ohkdK/7wCekOG7T+xoD4 uVSnLzCQxQ4xTWBRwGvERIBOe64UTsGTVLXYFORtxAh6ce8eFPLrfk1hhGdoAGB/ rqd2NVWdtsYsOyKdpFmAE5yA7n4UUlVGO3I+1SQmk0wiiL4rNRNZQMSl9jZMJOLs EBQxCE2vXCZfzaVxvaTCsyebI/7cW2Y2WFH3u9G04qBS9dneN/SuMvMM4i/Gh37S ZEz7+uyRdjnW/1mpFcVTee/ueWpGBm2Kt26+1uYp88gUF9MWiv14yWek3dj9fUkQ YJsXaiCY/PStE0OAn0hC7XHAax4Xscvdx1R/auQVAW3k/RlbkGA= =lLDr -----END PGP SIGNATURE----- --=-=-=-- --===============6078997504357281236== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============6078997504357281236==--