<div dir="ltr"><div dir="ltr"></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 21, 2020 at 7:13 PM Michael Biebl <<a href="mailto:biebl@debian.org">biebl@debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Control: tags -1 + moreinfo<br>
<br>I suppose this is your problem.<br>
You have processes (ssh-agent and dbus-daemon) in your user session,<br>
which apparently do not stop in a timely manner, thus causing the delay,<br>
afaics.<br>
<br>
Is this problem reproducible with a new user account?<br>
</blockquote><div><br></div><div>Yes. <br></div><div><br></div><div>I fixed my attention on the line</div><div></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><pre class="gmail-aLF-aPX-K0-aPE">Nov 17 01:03:38 nuc8 systemd[1141]: Requested transaction contradicts existing jobs: Transaction for exit.target/start is destructive (gnome-session-restart-dbus.service has 'start' job queued, but 'stop' is included in transaction).<br></pre></blockquote><pre class="gmail-aLF-aPX-K0-aPE"><font face="arial,sans-serif"><br>in the journal which started reproducibly to appear after upgrading systemd to 247~rc2-2.<br></font></pre><pre class="gmail-aLF-aPX-K0-aPE"><font face="arial,sans-serif">Looks like /usr/lib/systemd/user/gnome-session-shutdown.target (from package gnome-session-common) is responsible for starting gnome-session-restart-dbus.service:<br><br><span style="font-family:monospace">[Unit]<br>Description=Shutdown running GNOME Session<br><br># Allow exit.target to start even if this unit is started with replace-irreversibly<br># The same is needed for all (weak) dependencies<br>DefaultDependencies=no<br><br>Conflicts=graphical-session.target graphical-session-pre.target<br>After=graphical-session.target graphical-session-pre.target<br><br># Add explicit conflicts/after lines for gnome-session targets, technically<br># this should not be needed, but is an extra safety measure.<br>Conflicts=gnome-session.target gnome-session-manager.target<br>After=gnome-session.target gnome-session-manager.target<br><br>Conflicts=gnome-session-pre.target gnome-session-initialized.target gnome-session-failed.target<br>After=gnome-session-pre.target gnome-session-initialized.target gnome-session-failed.target<br><br># We need to make sure this unit is stopped; primarily so that the tree of<br># units that we created is completely cleaned.<br># Note that this can also be improved by reversing the conflicts above and<br># not listing them in the shutdown unit.<br>StopWhenUnneeded=true<br><br># We trigger a restart of DBus after reaching the shutdown target this<br># is a workaround so that DBus services that do not connect to the<br># display server are shut down after log-out.<br># This should be removed when the relevant services add a<br># PartOf=graphical-session.target<br># Historic bug: <a href="https://bugzilla.gnome.org/show_bug.cgi?id=764029">https://bugzilla.gnome.org/show_bug.cgi?id=764029</a><br><b>Wants=gnome-session-restart-dbus.service<br>Before=gnome-session-restart-dbus.service</b></span><br><br></font></pre><pre class="gmail-aLF-aPX-K0-aPE"><font face="arial,sans-serif">I can't pretend that I know what I'm doing, but after commenting out the last two lines the two minute delay on power-off is gone :)<br></font></pre><pre class="gmail-aLF-aPX-K0-aPE"><font face="arial,sans-serif">Feel free to reassign this bug to gnome-session.<br><br></font></pre><pre class="gmail-aLF-aPX-K0-aPE"><font face="arial,sans-serif">Cheers, Roderich<br></font></pre></div></div></div>