<div dir="ltr"><div class="gmail_quote"><div dir="ltr">Thank you. While debugging, I think I found the problem of the slow startx:<br>xauth's segfault. I'm going to search for this bug. Your answers:<br><div><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Dec 21, 2017 at 6:44 AM, Simon McVittie <span dir="ltr"><<a href="mailto:smcv@debian.org" target="_blank">smcv@debian.org</a>></span> wrote:<br><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>
<span class="m_-7219217648719188848gmail-m_-8994869203159954220gmail-m_1637428742040158872gmail-"><br>
On Thu, 21 Dec 2017 at 01:34:32 -0200, Carlos Eduardo M. Santos wrote:<br>
> The following problems started after dist-upgrading from jessie to buster<br>
<br>
</span>I hope you upgraded from jessie to stretch first, and then from stretch<br>
to buster. Upgrades that skip a release are not supported by Debian.<br>
(If it worked, then it's *probably* OK, but please go via stretch on any<br>
other machines you upgrade in the same way.)<br></blockquote><div><br></div></span><div>I upgraded from stretch. I'm sorry, I got confused with the names.<br></div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="m_-7219217648719188848gmail-m_-8994869203159954220gmail-m_1637428742040158872gmail-"><br>
> 1. startx takes a lot of time to launch X;<br>
> 2. gnome-terminal doesn't start.<br>
<br>
</span>How do you get into the environment from which you run startx? Is it a<br>
text-mode console (getty/login) or something else?<br></blockquote><div><br></div></span><div>tty <br></div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Is dbus-user-session installed? Is libpam-systemd installed?<br></blockquote><div><br></div></span><div>dbus-user-session/testing,now 1.12.2-1 amd64</div><div>libpam-systemd/testing,now 235-3 amd64</div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
What's in your /etc/X11/Xsession.options?<br></blockquote><div><br></div></span><div>allow-failsafe<br>allow-user-resources<br>allow-user-xsession<br>use-ssh-agent<br>use-session-dbus <br></div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
If you drop a script into /etc/X11/Xsession.d/01debug-ea<wbr>rly or similar<br>
that runs<br>
<br>
    env | LC_ALL=C sort | logger -t Xsession-early<br>
<br>
then look at the systemd journal, what environment variables are set<br>
there? (In particular LANG, LANGUAGE, LC_anything, DBUS_anything,<br>
XDG_RUNTIME_DIR)<br>
<br>
Similarly, if you put<br>
<br>
    env | LC_ALL=C sort | logger -t Xsession-late<br>
<br>
right at the beginning of 95dbus_update-activation-env, what happens there?<br></blockquote><div><br></div></span><div>In both cases, there's no output in journal. I'm afraid the files in its dir</div><div> are not being read. However, I manually ran these commands in xterm with the</div><div>marker "xterm". There's no DBUS related variable:</div><div><br></div><div>Dec 21 12:48:12 kytos xterm[19709]: LANG=en_US.UTF-8<br>Dec 21 12:48:12 kytos xterm[19709]: SHELL=/bin/zsh<br>Dec 21 12:48:12 kytos xterm[19709]: XAUTHORITY=/home/cemsbr/.<wbr>Xauthority<br>Dec 21 12:48:12 kytos xterm[19709]: XDG_RUNTIME_DIR=/run/user/1000<br>Dec 21 12:48:12 kytos xterm[19709]: XTERM_LOCALE=en_US.UTF-8<br>Dec 21 12:48:12 kytos xterm[19709]: XTERM_SHELL=/bin/zsh<br></div><span class=""><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<span class="m_-7219217648719188848gmail-m_-8994869203159954220gmail-m_1637428742040158872gmail-"><br>
> In journalctl, I found 2 famous messages:<br>
> - gnome-terminal-server[18005]: Unable to init server: Could not connect: Connection refused<br>
> - Failed to activate service 'org.gnome.Terminal': timed out (service_start_timeout=120000m<wbr>s)<br>
<br>
</span>I'm sure you get more messages than just those two. Please show me the<br>
rest of what's logged when you:<br>
<br>
- start from not being logged in<br>
- log in at the text-mode prompt, or whatever else you do to get into the<br>
  environment from which you want to run startx<br>
- put a marker in the log: logger -t marker "now I am logged in"<br>
- run startx<br></blockquote><div><br></div></span><div>- journalctl_report.txt: Note: I had to switch to tty2 and kill Xorg to quit;</div><div>- journalctl_report_workaround.t<wbr>xt: a successful launch of gnome-terminal</div><div>using the workaround in .xinitrc.<br></div><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
The output of systemd-cgls after you get into your GUI session (use<br>
a non-D-Bus-related terminal like xterm) would also be useful<br>
information.<br></blockquote><div><br></div></span><div>systemd-cgls.txt <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Regards,<br>
    smcv<br>
</blockquote></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">Best,</div><div class="gmail_extra">cems<br></div></div></div>
</div><br></div>