From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73110: 29.4; emacs.service failed with result 'timeout' Date: Sat, 21 Sep 2024 12:05:29 +0300 Message-ID: <86zfo14bs6.fsf@gnu.org> References: <86zfojwe6k.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33101"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73110@debbugs.gnu.org To: gadget142@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 21 11:06:01 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1srw40-0008Sb-3m for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Sep 2024 11:06:00 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srw3l-0005uQ-AN; Sat, 21 Sep 2024 05:05:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1srw3i-0005tm-Ax for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 05:05:43 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srw3i-0005iO-1m for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 05:05:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=QFdUOg32TEYKimo7mP2sh5d/j2QCanUCW3pGDeFL7ZE=; b=j5avjSCe0z/dUbzqMLwrOe0hbcG3A6jyYvustGjfk3hgHzumC0PEnleqGK3+5WlMO2YD4i5yinY/23vlqZz+t4GvgJ7zx98J7xJww0LM9qjdRQApX7eqU49T73vhvxsqJd3EivSZNPr7f/ioVJnTNpt+zS8Mj4yyOyR5+so8yVMEgv2mxellEFgcps67QVK73LH7OQZGD6bmwIekjime+XRexdsBUhI6ZhCKl8DNdGPm+/rI0nQjhIXmON3XyMy2Yf890IF9tB49VYqXIQV2g+TucW56T5pTCuI2H0B+qtDjKzEROjQ4J+dNhT25+Yh9+RYG23gyWkvuy1owefZ9+g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srw42-0001Wr-0V for bug-gnu-emacs@gnu.org; Sat, 21 Sep 2024 05:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Sep 2024 09:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73110 X-GNU-PR-Package: emacs Original-Received: via spool by 73110-submit@debbugs.gnu.org id=B73110.17269095615870 (code B ref 73110); Sat, 21 Sep 2024 09:06:01 +0000 Original-Received: (at 73110) by debbugs.gnu.org; 21 Sep 2024 09:06:01 +0000 Original-Received: from localhost ([127.0.0.1]:37135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srw40-0001Wb-CI for submit@debbugs.gnu.org; Sat, 21 Sep 2024 05:06:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srw3y-0001WO-DU for 73110@debbugs.gnu.org; Sat, 21 Sep 2024 05:05:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1srw3X-0005hU-Q8; Sat, 21 Sep 2024 05:05:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=QFdUOg32TEYKimo7mP2sh5d/j2QCanUCW3pGDeFL7ZE=; b=WIEG/1ijq0uD T5wgoi5Ktdkj7x3vDabwrM7M8A/2JHy9BY6L2+VWQF36do7rwLOtzWWa8zlMKW9NXyl4bDiyIERnM +2w2HMyTMS6S4e/5afPQ/zYUJLT20QDc+UUGf1vDcykxIJJXA9RzTJr/+XQIHzm+o/PA63/Q/iUq9 YHXPCVgPEfkHqIm/R9ATOgJvGHGJCo8s9JZu/IbyHADR1fThvlQfzBzslcQ4gpwnFyhzk3BZfR8bR 5wJKEhkAtSChpytzWpqtntC2ybHFwReFxp51FPFLuqqml9+mK6hUGjY+GoMgqq9Gt9fRcbFBsN3gw iIv717VjhBpHqI7C+SG16A==; In-Reply-To: <86zfojwe6k.fsf@gnu.org> (message from Eli Zaretskii on Sat, 07 Sep 2024 20:45:23 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:292155 Archived-At: Ping! Patrick, could you please respond and confirm that this issue is because of how you built your Emacs? > Cc: 73110@debbugs.gnu.org > Date: Sat, 07 Sep 2024 20:45:23 +0300 > From: Eli Zaretskii > > > From: Patrick Nicodemus > > Date: Sat, 7 Sep 2024 13:22:30 -0400 > > > > I want to run Emacs as a service and connect to it with a client. I > > followed the instructions here: > > > > https://www.gnu.org/software/emacs/manual/html_node/emacs/Emacs-Server.html > > > > and ran the command > > systemctl --user enable emacs > > > > This apparently creates a file at > > ~/.config/systemd/user/default.target.wants/emacs.service > > > > whose contents are: > > > > [Unit] > > Description=Emacs text editor > > Documentation=info:emacs man:emacs(1) https://gnu.org/software/emacs/ > > > > [Service] > > Type=notify > > ExecStart=/usr/local/bin/emacs --fg-daemon > > > > # Emacs will exit with status 15 after having received SIGTERM, which > > # is the default "KillSignal" value systemd uses to stop services. > > SuccessExitStatus=15 > > > > # The location of the SSH auth socket varies by distribution, and some > > # set it from PAM, so don't override by default. > > # Environment=SSH_AUTH_SOCK=%t/keyring/ssh > > Restart=on-failure > > > > [Install] > > WantedBy=default.target > > > > The directions also say: > > (If your Emacs was installed into a non-standard location, you may need > > to copy the emacs.service file to a standard directory such as > > ~/.config/systemd/user/.) > > > > I built this emacs distribution from source and installed it using "sudo > > make install"; the executable is at /usr/local/bin/emacs, so I don't > > think it is installed in a non-standard location, and so I did not > > follow these instructions. > > > > I modified the [Service] command above to include the -Q flag for the > > purposes of this bug report. > > > > After activating the service, restarting, etc., my journalctl output is > > as follows: > > > > Sep 07 12:52:45 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: start operation timed out. Terminating. > > Sep 07 12:52:45 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: Failed with result 'timeout'. > > Sep 07 12:52:45 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > Failed to start emacs.service - Emacs text editor. > > Sep 07 12:52:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: Scheduled restart job, restart counter is at 1. > > Sep 07 12:52:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > Starting emacs.service - Emacs text editor... > > Sep 07 12:52:46 patrick-ThinkPad-X1-Carbon-Gen-10 emacs[183514]: > > Starting Emacs daemon. > > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: start operation timed out. Terminating. > > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: Failed with result 'timeout'. > > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > Failed to start emacs.service - Emacs text editor. > > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: Scheduled restart job, restart counter is at 2. > > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > Starting emacs.service - Emacs text editor... > > Sep 07 12:54:16 patrick-ThinkPad-X1-Carbon-Gen-10 emacs[183623]: > > Starting Emacs daemon. > > Sep 07 12:55:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: start operation timed out. Terminating. > > Sep 07 12:55:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: Failed with result 'timeout'. > > Sep 07 12:55:46 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > Failed to start emacs.service - Emacs text editor. > > Sep 07 12:55:47 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > emacs.service: Scheduled restart job, restart counter is at 3. > > Sep 07 12:55:47 patrick-ThinkPad-X1-Carbon-Gen-10 systemd[2704]: > > Starting emacs.service - Emacs text editor... > > Sep 07 12:55:47 patrick-ThinkPad-X1-Carbon-Gen-10 emacs[183684]: > > Starting Emacs daemon. > > > > etc., etc., every ninety seconds. > > > > For some reason emacs is not successfully communicating to systemd that > > it has launched successfully, and so systemd terminates emacs. > > According to this: > > > Configured features: > > ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ > > IMAGEMAGICK JPEG JSON LCMS2 LIBSELINUX LIBXML2 MODULES NATIVE_COMP > > NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF > > TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB > > your Emacs is built without libsystemd support, which I think is > required for this to work? Or maybe I'm missing something. > > > >