From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Nicodemus Newsgroups: gmane.emacs.bugs Subject: bug#73110: 29.4; emacs.service failed with result 'timeout' Date: Sat, 7 Sep 2024 13:22:30 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25568"; mail-complaints-to="usenet@ciao.gmane.io" To: 73110@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 07 19:23:22 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 1smz9e-0006Y4-Ec for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Sep 2024 19:23:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smz9K-000785-Tj; Sat, 07 Sep 2024 13:23: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 1smz9J-00077R-LL for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 13:23: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 1smz9J-0005yW-Bg for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 13:23:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:MIME-Version:To:Subject; bh=K9cU3IjKJ2ZtV+OxcPczdj0r93ZumBurUaarEv/5K7M=; b=N51zxEpUR9rQuXywhQIIyRN9TvaePLQcJroQcOjrOoH/vVrkm4u2byxbtcReDfrzcPzs30m/9Ke3Lmo8SBcBt0j3MUXGXJiB2neKaVlEPpDZnlIjJTRmwQoHeoUdcbpiJCXAd4LO8xqBb334S69PeSUbWUFVr4y0ou/osnY+rZI/LZE/7InZFzZI6cca+lxVXSiaF6OAWToyDfLwPK6J+xbN/jVA6l8F+jUfJeHNrlssrvcPDoKjgz29qFRl7vMQT4BdpoKDgwE8d9UuwYV230C60ZqArbtICyuYOwjxVeyXmSCzVMwjlWaWgz+4zE7oTsvlk9MVo3yeBur3pLKx+g==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smz9K-0000yi-Ae for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 13:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Patrick Nicodemus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Sep 2024 17:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73110 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.17257297703731 (code B ref -1); Sat, 07 Sep 2024 17:23:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Sep 2024 17:22:50 +0000 Original-Received: from localhost ([127.0.0.1]:57525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smz98-0000y7-3n for submit@debbugs.gnu.org; Sat, 07 Sep 2024 13:22:50 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:38214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smz95-0000xt-D0 for submit@debbugs.gnu.org; Sat, 07 Sep 2024 13:22:48 -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 1smz94-00076I-42 for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 13:22:46 -0400 Original-Received: from mail-vs1-xe31.google.com ([2607:f8b0:4864:20::e31]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smz92-0005xH-2m for bug-gnu-emacs@gnu.org; Sat, 07 Sep 2024 13:22:45 -0400 Original-Received: by mail-vs1-xe31.google.com with SMTP id ada2fe7eead31-49bd76face1so1432965137.0 for ; Sat, 07 Sep 2024 10:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725729761; x=1726334561; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=K9cU3IjKJ2ZtV+OxcPczdj0r93ZumBurUaarEv/5K7M=; b=QNieOuhRflXt79fI1mSPn9s+xx9OOYl37xcD4naVIYqIG2qXsIFilNuLhmh6ZmUKSH rCLq++hwcqdrEq9vJ31Ly1a0XwHTptMZ/SV1B/1aSnbXZQuAcrUS6c6b1fF8JolFNOVg jrsOM7ARTJcE/1E7umrdXVeGQKLc+SbMueS9v/gPwFm/ez9/+hEay6Lvyc3obXAhlzk1 ckZ+IM+Dc6Cj69fSBXpSZ22kDOOadHZUOf3M/+Z5CGrS1CLz7HjHaRY3SP2QdLzwXQFL 6gwRp8AqC96kTCCLYj63ePGIsWcnJvQKZLMoLCrJJRpl981ti3RdyLzF2XB4ma3LWRqV C57g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725729761; x=1726334561; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=K9cU3IjKJ2ZtV+OxcPczdj0r93ZumBurUaarEv/5K7M=; b=VZvATTPELUECsHnQ+oXvXOtA4oQabzeJyT+/hB2k4aBs29ORBZTvOVO5zJCrsrBQfS ZiBkGu03aHzbM/+5MulioaIsKmOHZWUJJyY+fKOzOI15PNjSc0WBMO/6OLek4UThUkt9 iUCrlugaOs3OVRlXqgQlsjggAPMW1z2hottuAQnb2y8ZkM7UNHK+d7PPqWwp0yYxwksl yYKa0cFkJ2n4pz5H3P7sOkBP4+Qw6fbmBeBYh0bn1YqaKb4emDAmvzFSO1cTwXo93wew mBcMRvs0BjtpuX/9M/Ic3hYwB4t9hmqfYhPIyR6CrsNNDV4JEJyM4v/4Qd4cmKvLBEhN p4Og== X-Gm-Message-State: AOJu0YzZMPTzlV5eODWE78LGDl0hZtj9HA8+G+b906hF4x9RBJNV+eIl QK7NWRHM94B0vRTre1y3gBiQJT2/wIxlKXQ+30LDUXXjBNw+az0xYoA1/iFJ9ELPMu3FL01d9Ju 8u9GPBkzQ3F2fwzk/aTZ7uvstYgFibMx/ X-Google-Smtp-Source: AGHT+IFS/l3QUgK+kqg/f4M79g9T+H5duWxHSNIgHfyE1b58Rw37f9zq7F4BX+uuT1JNCdE1xi/CKKpyZeqQvU70PlA= X-Received: by 2002:a05:6102:8025:b0:49b:c738:4a50 with SMTP id ada2fe7eead31-49bc73854damr10863573137.2.1725729761096; Sat, 07 Sep 2024 10:22:41 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::e31; envelope-from=gadget142@gmail.com; helo=mail-vs1-xe31.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:291402 Archived-At: 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. In GNU Emacs 29.4 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) of 2024-08-30 built on patrick-ThinkPad-X1-Carbon-Gen-10 System Description: Ubuntu 24.04.1 LTS Configured using: 'configure --with-native-compilation=aot --with-tree-sitter --with-gif --with-png --with-jpeg --with-rsvg --with-tiff --with-pgtk --with-imagemagick --with-x-toolkit=gtk3 --with-xwidgets' 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 Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr misearch multi-isearch emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads xwidget-internal dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 77452 8067) (symbols 48 7163 0) (strings 32 19673 2120) (string-bytes 1 600176) (vectors 16 15676) (vector-slots 8 327945 14726) (floats 8 44 40) (intervals 56 233 0) (buffers 984 12))