From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 SOELAiw4yGNN4wAAbAwnHQ (envelope-from ) for ; Wed, 18 Jan 2023 19:19:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SG4zAiw4yGPo/gAAauVa8A (envelope-from ) for ; Wed, 18 Jan 2023 19:19:24 +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 C95E7374F0 for ; Wed, 18 Jan 2023 19:16:43 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 3714E5FBFB; Wed, 18 Jan 2023 18:16:41 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 34C3F5E022 for ; Wed, 18 Jan 2023 18:16:38 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 2F47C5FB9E; Wed, 18 Jan 2023 13:16:37 -0500 (EST) Received: (nullmailer pid 503318 invoked by uid 1000); Wed, 18 Jan 2023 18:16:36 -0000 From: David Bremner To: ricardomartins@riseup.net, notmuch@notmuchmail.org Subject: Re: ## error when running notmuch from emacsclient, but not from standalone emacs instance In-Reply-To: <8dae5975ad2586413e53c9c936c27d90@riseup.net> References: <87mt6fq537.fsf@tethera.net> <8dae5975ad2586413e53c9c936c27d90@riseup.net> Date: Wed, 18 Jan 2023 14:16:35 -0400 Message-ID: <875yd3pv24.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: SGWGZTGVVO57DHTO67P7MGKNWSO6XVZE X-Message-ID-Hash: SGWGZTGVVO57DHTO67P7MGKNWSO6XVZE 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-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1674065803; 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=oHxxspnN5AQpx9P18Rwz2K/8XnyiB98mrJ/eL46k9Ms=; b=tmAO6D1lOXrHUJ0AmCxARloJhIl4flWnPxpm85qXkntvaJSff5EALNecTCIPCIdrRo2HoE ccYSPRftkPwKm3ekFs33DTUpXMFN4RxHVvEfTsGHHyINVjzrcUtdpWXoYgCOND3VkSR//h I5ayzxvbf9Zy+x7eTiFeFiKFipzu+axjNAVrjTT9uv6veXnWvAQywBZC7esRj7WnG1ZHNn yFkiM9aTKeOJhWtrdGVazXdXZAnqWinvVHIGjzivrdlamEjZd7K0Q9JPwwIMvE8Npu5BBQ /8TN0sNftz9BvXEDrSNRw+Sf/PIyusV/v1lgWqdaVKSPz3Tt1E3f5Z46wsF5IQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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-Seal: i=1; s=key1; d=yhetil.org; t=1674065803; a=rsa-sha256; cv=none; b=uKTe3eDLN4S4p8zLK7fogo9c9PnlJnrvvmhlW00a11axKgyfiAatVknDj6y0lxWGcpVwD/ j54CH8BaM/xZGzPLqalwwUncqghrM8TVStkkcFzVYdR0oSfApK7Zog4nUPyuhrLIF7FFDN XcxxiJuHypUkX1G2AsD4cUWcUco8lrEGXYznxlvp596+IT7OHyG49vOcOk/ERJgCRv2Tg1 uOC1XuwEEL14b9+1TIGyCJC0CiXoCI9GtxupG3gIAYTnQA82jysgMpm47aTrWDXPgYyE6v Jes4OKg2UJ4i8xhvMwi2Iv+CxxBy7XCDhp1BTQdpLuoBSx+VfvJMGgcHCo+WvQ== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -1.66 X-Spam-Score: -1.66 X-Migadu-Queue-Id: C95E7374F0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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-TUID: KmW0GvkRtHFG ricardomartins@riseup.net writes: > 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. I don't have personal experience with running emacs from systemd, but I guess it could be worth trying M-: (executable-find "notmuch") That will verify that you are not being tripped up by multiple notmuch executables. Another thing to try is M-x notmuch-search tag:inbox This may give a more helpful error message (or it may work fine, indicating the problem is really with notmuch count, but the --batch option is almost 10 years old now, so I think that error checking probably needs to be updated.