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, 07 Sep 2024 20:45:23 +0300 Message-ID: <86zfojwe6k.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26587"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73110@debbugs.gnu.org To: Patrick Nicodemus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 07 19:47:15 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 1smzWk-0006mm-Kr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Sep 2024 19:47:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smzWY-0006s7-PU; Sat, 07 Sep 2024 13:47:02 -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 1smzWX-0006rx-Bx for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 13:47:01 -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 1smzWX-00007q-0L for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 13:47:01 -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=Dlk30ACYWy5jGH9MLnB2yzkv/iHblMwJpSAmuDY6Qwc=; b=rGL3itAM6krcgGGzZdTRB30mg29IFXUHN8RDVj3TzIIKHfw0h/y4dCdwIJ4vqHEEE8sy+LNMb8q1QwYueuFKmM63tdmL9Hd8KtbeAXeNGGoewCwjiyLLfklnEDbOqt1PuM6crOx/vRKxsxpE9R+7P8FMwa6RwoXwftZRka4gE8H5si1F2M9G9Sg8qnDGYYDo2Q7hqNgab2FSxSgQc8mo59DCWOhfyjnYMlwzevgOBFSBq+cls9Hv46N7mpDgYr6h0rrstNTKhu+ZYF9WgcTqz/t1PvGyiqcgyHPoKmPe3IJABIB5hRHpyUq0y6PvYCUx19VIA8fld6DgbOSJ1wct8g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smzWY-0002L5-1X for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 13:47: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, 07 Sep 2024 17:47:02 +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.17257311738913 (code B ref 73110); Sat, 07 Sep 2024 17:47:02 +0000 Original-Received: (at 73110) by debbugs.gnu.org; 7 Sep 2024 17:46:13 +0000 Original-Received: from localhost ([127.0.0.1]:57578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smzVk-0002Jg-Tw for submit@debbugs.gnu.org; Sat, 07 Sep 2024 13:46:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smzVi-0002JR-Qv for 73110@debbugs.gnu.org; Sat, 07 Sep 2024 13:46:11 -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 1smzVc-000050-97; Sat, 07 Sep 2024 13:46:04 -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=Dlk30ACYWy5jGH9MLnB2yzkv/iHblMwJpSAmuDY6Qwc=; b=H43dFYcAD9lO WafK8V1pJ/yATfk/JAvvmQDAasJBAFVWaqfzNfxGJcqaBv9LIMt8YBohNiCHat0/tN0eYEq9nIiUz QREpoIC0O+KpTFNMbhiFKbxnufrsGgWeD7CQOK4hg7bWD8Xno8ZGslYIeOpQBgwZ/Wcj5twaqmCC2 5nDXc7tjLpYcD/pwaYPNLvInQXoHr97MRd1R5IJJDxsn4vRaUSuC4bd81sDN+DKIgF35Zk0eDWSfu 9T827JrBLeJ7RdySP4+fni+3SRvW+b/XdgPFDpckarRHZfOPMkMvT0NM9leoTXvRVuxMq03mGFvLR c8UuHojE0CLq7JDeYFXLCA==; In-Reply-To: (message from Patrick Nicodemus on Sat, 7 Sep 2024 13:22:30 -0400) 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:291405 Archived-At: > 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.