From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 6LOtAcUjyGPQRQAAbAwnHQ (envelope-from ) for ; Wed, 18 Jan 2023 17:52:21 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cO7rAMUjyGPv6wAAG6o9tA (envelope-from ) for ; Wed, 18 Jan 2023 17:52:21 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 35EB038E47 for ; Wed, 18 Jan 2023 17:52:20 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9CEE15FBFB; Wed, 18 Jan 2023 16:52:17 +0000 (UTC) Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) by mail.notmuchmail.org (Postfix) with ESMTPS id 201785E541 for ; Wed, 18 Jan 2023 16:52:15 +0000 (UTC) Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (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 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4NxsHd4Lg6z9tCZ for ; Wed, 18 Jan 2023 16:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1674060733; bh=9aIYU0JxfuEZQ2XJhbTdJ9UrsWRAggwsJ1bWgkM2Q9o=; h=Date:From:To:Subject:In-Reply-To:References:From; b=ehG2ENI7kZKlkk1xtVpxIE1pesGwvrVcrobaZhEFuL/HW/ecV4mQUkLHHrS0vvR8Y oBOH4KqOd2CyPFmm69wKjJOidt6faUVqu5rjcJT9AEP77UnWizEezVrk/Gqw70tLTK jhOyeypF2UgJKdgf3QQdkuqHkqMJjOxWW5njFAT0= X-Riseup-User-ID: 1547BDF06CCEAB96BC08433116D3CE42461354DDBAD083530A863D87CD05E297 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4NxsHd3NS9z5vNn for ; Wed, 18 Jan 2023 16:52:13 +0000 (UTC) MIME-Version: 1.0 Date: Wed, 18 Jan 2023 16:52:13 +0000 From: ricardomartins@riseup.net To: notmuch@notmuchmail.org Subject: Re: ## error when running notmuch from emacsclient, but not from standalone emacs instance In-Reply-To: References: <87mt6fq537.fsf@tethera.net> Message-ID: <8dae5975ad2586413e53c9c936c27d90@riseup.net> Message-ID-Hash: LFRO6AHNOA7I5MMWSNJI4FNL76PL47QS X-Message-ID-Hash: LFRO6AHNOA7I5MMWSNJI4FNL76PL47QS X-MailFrom: ricardomartins@riseup.net 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-Country: DE X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1674060740; a=rsa-sha256; cv=none; b=WNbQbOYIB6TsyxE+iWsTnOmzlriVEoII2merX+MEhdUpiarW+t8iFULq3isucNaoOZz05t DoS57tFF7is90xo5JXjfR89SYPe4unVNzM3xVIPN9i/+oTORR0DBo4NE/es+BBCbewJM7F EowIXkiFOpms42lT9AijCt9MgTTL8sUGqi+p58DpBKQQfvDX01q4xDSOu7j/3exjJRyifh 1wh8g2zjuZUN8VoPsbwdT/km81lue1t6zi/VoB2yZcHuw8hH/WiKahnNdYZoBWFvFGJt5B PGByvpza5NNjxV34/NtHxouMBBTbD05aXMdTggMyyZNS3G0LQ+hQl91ot+m8zw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=riseup.net header.s=squak header.b=ehG2ENI7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 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=1674060740; 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=rgFY5s8egneMg6u63MoxmJyU509/SLEsq6ol6Jf7izE=; b=ljrnczinp9KC6VgQK+RgzJYXxYfQdOxtL5qPH8sFAJjkCbiYR0gv8LtMsIfRe8kdsPqR3B I96mtPCE/Fu3TopepXYCPzUfNDovW7KTO7hPVNWfH5/ON9kXDkCi26z7kqYDAZAXu7QSV3 s2rzXMKxDGH+g+gHXSfg/LFS30tRA2kyMeQhrIWpMNMA947ds8woKOh8uSO/YeFSf/rmG6 kavji0fZqOnam93YF4ZqBLIuwbVzF1mqM9cNdx3KhNwwo4h7VL3/ik9QYyxDSa8BQ0B2tE kie4Vk2Tn1ivq51TGR5/EBfIoUwc6oxvEXK1sbX8JWO1nD91ePXy6scRY44ZTA== X-Spam-Score: 7.04 X-Migadu-Queue-Id: 35EB038E47 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=riseup.net header.s=squak header.b=ehG2ENI7; dmarc=fail reason="SPF not aligned (relaxed)" header.from=riseup.net (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: 7.04 X-TUID: 0WGP6nyRVf1u >> What is the output of M-x notmuch-version for both emacsclient and emacs? Both show notmuch version 0.37. >> ... and how are you starting the emacs server? I started as a systemd user unit. I'm using GNU Emacs 30.0.50 Development version 2f05f48918ec on master branch; build date 2023-01-07. VISUAL and EDITOR environment variables are set to emacsclient. >> Depending on that, server and standalone may get a different PATH from the environment so that one uses the system notmuch and the other your personal install. Ok, so I tested this. I tried stopping the systemd unit of the emacs server, opened an emacs instance, and started the server from within emacs (M-x server-start ). Connected to this server in a new frame ($ emacsclient -nc) and tried executing notmuch again (M-x notmuch ). This time, it worked like it should. So, definitely an issue with the systemd unit method of initialization there, although it only executes /usr/bin/emacs --fg-daemon, so I'm not sure exactly is going on here that's causing the problem. Thanks for helping.