unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: gadget142@gmail.com
Cc: 73110@debbugs.gnu.org
Subject: bug#73110: 29.4; emacs.service failed with result 'timeout'
Date: Sat, 21 Sep 2024 12:05:29 +0300	[thread overview]
Message-ID: <86zfo14bs6.fsf@gnu.org> (raw)
In-Reply-To: <86zfojwe6k.fsf@gnu.org> (message from Eli Zaretskii on Sat, 07 Sep 2024 20:45:23 +0300)

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 <eliz@gnu.org>
> 
> > From: Patrick Nicodemus <gadget142@gmail.com>
> > 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.
> 
> 
> 
> 





  reply	other threads:[~2024-09-21  9:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-07 17:22 bug#73110: 29.4; emacs.service failed with result 'timeout' Patrick Nicodemus
2024-09-07 17:45 ` Eli Zaretskii
2024-09-21  9:05   ` Eli Zaretskii [this message]
     [not found]     ` <CADZEZBaL7ktCnB6J6sBw-NXve0R1bS=dpZ3gtObh7hdL5=6Keg@mail.gmail.com>
2024-10-12 12:39       ` Eli Zaretskii
2024-10-13 11:26   ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found]   ` <670bae7e.a70a0220.3720fa.5d6fSMTPIN_ADDED_BROKEN@mx.google.com>
2024-10-13 15:43     ` Patrick Nicodemus
2024-10-13 19:05       ` Björn Bidar via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86zfo14bs6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=73110@debbugs.gnu.org \
    --cc=gadget142@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).