From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wFmNNUghmGD8UgAAgWs5BA (envelope-from ) for ; Sun, 09 May 2021 19:52:08 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id cDciMUghmGAmEQAAB5/wlQ (envelope-from ) for ; Sun, 09 May 2021 17:52:08 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 3FC6D1512C for ; Sun, 9 May 2021 19:52:08 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id F0B652717A; Sun, 9 May 2021 13:52:03 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1F9801FAC2 for ; Sun, 9 May 2021 13:52:01 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 4758260016; Sun, 9 May 2021 13:51:59 -0400 (EDT) Received: (nullmailer pid 4053324 invoked by uid 1000); Sun, 09 May 2021 17:51:57 -0000 From: David Bremner To: Jack Kamm , notmuch@notmuchmail.org Subject: Re: Breakage after updating to 0.32 (database and path issues) In-Reply-To: <87h7jcc5t2.fsf@gmail.com> References: <87h7jcc5t2.fsf@gmail.com> Date: Sun, 09 May 2021 14:51:57 -0300 Message-ID: <878s4nkd6q.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 5UZWE4UXHFTACZ5DJGRA4CPX2HAUAVEV X-Message-ID-Hash: 5UZWE4UXHFTACZ5DJGRA4CPX2HAUAVEV 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; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620582728; 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-unsubscribe:list-subscribe:list-post; bh=eC+o1SGjKy/kMugOStvx9bF/7NRaQ96X3/SIsEZUHL0=; b=kJgQhpL0+MJXC3p5uPghYb2VTYmNb8D89dGV4R7eLAmQvqNfUln3HYxMtpfP1Wif2zAT3K FmW+6SISkTa1ebrbeyFTMzNfuwGocE//XYIT/H70WzPMaQ9lYItxhqrIMeY0demPuvF9TA k0UD4xDo7Bio70h1To80rA5VNfKLBHrONHXtQhKImlDbTtD1Q2ZEa0wD3KQbZy9C5hQM9z HIA7eMYibk99+k3+6S08aq7H+ihEWVOSOTA63BNVhK06gR8+WE14ENUNnklMYu3PwF/UBf KkZLuYjyxk9TklZ1CGdVLewh/uDpcuwUsnrxqUs7Iendyiv9Z7EPmwQ5sRC00A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620582728; a=rsa-sha256; cv=none; b=UydI7jxNI4gQViI5v8x3DnHDbIEw5QwC/zJmZClQIKoM7ygf8LpSVxPJaeU4ys/kaRsbB3 PPzFD8rtV61GR49O5hUTQGT4GrY6m8sxi0k6enfVr5ppe+tXRVZoafnxiBzJYHpK8/q7ro uFG5rHSZB5QBNplw+wec0reIvWRS5QxNEpRISGj9+LRX5QXxhc3cXohk73bBMjkdQmv1qf J/wAXq3CiOn7FuXCyJvR5XMCIhkmJi6BFvPEzL3ElKJDukwPw2PSOY8f2l/KK4VUls6QAF DP6dJ+UwNhGSztkGY2HavMbrtGWPJ+hrdg0wRZv+0dViwQbd086vBrhENaArXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.04 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 3FC6D1512C X-Spam-Score: -2.04 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8OslU8+Ib1yW Jack Kamm writes: > Updating to 0.32 broke my notmuch setup. notmuch could no longer find my > database; after I changed some paths in my config, notmuch appeared to > be able to find the database again, but wound up rebuilding it anyways, > and could no longer find any of my emails. > > Any advice on fixing my setup would be appreciated. Also, I would > suggest adding information to the v0.32 release notes of any breaking > changes that were made, and how to migrate existing setups. There is a bug related to relative values. Maybe that was what you encountered? There will be a point release soon with a fix for that bug. In the mean time you can just set database path to an absolute path. > I'm on Archlinux, and my email is located in $HOME/mail, with each of my > accounts located under a different subfolder (e.g. $HOME/mail/gmail, > $HOME/mail/work, etc). > > Below are details of the problems I ran into after updating to 0.32: > > First, notmuch could no longer find my database at $HOME/mail/.notmuch: > >> $ notmuch new >> Error: Cannot open database at /home/jack/.local/share/notmuch/default: No such file or directory. You should not have to change your configuration to work with 0.32, other than temporarily making sure database.path has an absolute value. If you have a configuration file that works with 0.31 and not with 0.32, please share it as precisely as you can, including the contents of .notmuch-config. > > At this point I manually set database.path, but I got a new error this time: > >> $ notmuch config set database.path $HOME/mail/.notmuch >> $ notmuch new Note that the ".notmuch" should not be included in database.path. >> No new mail. Removed 884086 messages. Detected 12226 file renames. > > I'm also quite concerned about the "Removed 884086 messages." I'm > guessing it only removed entries from the database, and doesn't seem to > have deleted any files. That's correct. Notmuch does not delete mail files. > But I need to double check my afew filters and > mbsync configuration, to make sure no deletions propagate back to my > remote. In the meantime I'm refraining from running mbsync/notmuch until > I can verify that nothing will get deleted. Fair enough, it pays to be cautious.