You are not logged in.

#1 2020-11-30 21:44:29

rarsa
Member
Registered: 2020-11-03
Posts: 7

X starts and shuts down immediately after update. SOLVED

I did an update last thing last night and shut down the computer.

Today, when trying to log in, X started and shut down immediately logging me out.

I checked all the logs and there are no evident errors in any of them.

So, to troubleshoot, I logged in as root, which goes directly to console, commented out "startx" in my /home/<user>/.bash_profile, logged out and logged in with my user expecting to log in to the console. but X started again and shut down immediately logging me out.

I tried commenting out xmonad in .xinitrc and renaming .xserverrc. same result.

My root system is btrfs and I create pre and post update snappshots, so I reverted to the pre-update snapshot and I was able to log in successfully
I executed the update: "pacman -Syu", but it complained (unable to lock database). So I deleted /var/lib/pacman/db.lck. and was ale to execute the update. I rebooted and got the problem again.
I reverted to the pre-update snapshot and no problem.
This tells me that the udpate is doing something but I can't figure out what is causing that.

Any ideas of what's happening or anyone else experiencing this?

Here are the updated packages:

bash-5.0.018-2  cups-1:2.3.3op1-1  enchant-2.2.12-1  firefox-83.0-2
              haskell-adjunctions-4.4-177  haskell-aeson-1.5.4.1-17  haskell-asn1-encoding-0.9.6-58
              haskell-asn1-parse-0.9.5-58  haskell-asn1-types-0.3.4-37  haskell-assoc-1.0.2-27
              haskell-async-2.2.2-40  haskell-attoparsec-0.13.2.4-36
              haskell-base-compat-batteries-0.11.2-11  haskell-base-orphans-0.8.3-14
              haskell-bifunctors-5.5.8-13  haskell-blaze-html-0.9.1.2-57
              haskell-blaze-markup-0.8.2.7-27  haskell-call-stack-0.2.0-66
              haskell-case-insensitive-1.2.1.0-39  haskell-comonad-5.0.6-58  haskell-conduit-1.3.4-2
              haskell-conduit-extra-1.3.5-68  haskell-connection-0.3.1-66  haskell-cryptonite-0.27-32
              haskell-data-default-0.7.1.1-87  haskell-data-default-instances-dlist-0.0.1-100
              haskell-data-fix-0.3.0-27  haskell-dbus-1.2.16-63  haskell-distributive-0.6.2-40
              haskell-dlist-1.0-23  haskell-free-5.1.4-8  haskell-hashable-1.3.0.0-36
              haskell-hinotify-0.4.1-6  haskell-hourglass-0.2.12-82  haskell-http-4000.3.15-44
              haskell-http-client-0.7.3-9  haskell-http-client-tls-0.3.5.3-331
              haskell-http-conduit-2.3.7.3-225  haskell-http-types-0.12.3-98  haskell-invariant-0.5.4-11
              haskell-kan-extensions-5.2.1-17  haskell-lens-4.19.2-46  haskell-libmpd-0.9.2.0-14
              haskell-memory-0.15.0-49  haskell-mono-traversable-1.0.15.1-73  haskell-network-3.1.2.0-47
              haskell-network-uri-2.6.3.0-192  haskell-pem-0.2.4-114  haskell-primitive-0.7.1.0-29
              haskell-profunctors-5.6-9  haskell-random-1.2.0-54  haskell-reflection-2.1.6-32
              haskell-resourcet-1.2.4.2-31  haskell-safe-exceptions-0.1.7.1-21
              haskell-scientific-0.3.6.2-53  haskell-semigroupoids-5.3.4-63  haskell-socks-0.6.1-58
              haskell-split-0.2.3.4-81  haskell-splitmix-0.1.0.3-5  haskell-streaming-commons-0.2.2.1-27
              haskell-strict-0.4-28  haskell-these-1.1.1.1-28  haskell-time-compat-1.9.4-5
              haskell-tls-1.5.4-46  haskell-transformers-base-0.4.5.2-98
              haskell-typed-process-0.2.6.0-63  haskell-unordered-containers-0.2.13.0-11
              haskell-uuid-types-1.0.3-58  haskell-vector-0.12.1.2-64
              haskell-vector-algorithms-0.8.0.3-50  haskell-void-0.7.3-39  haskell-x11-1.9.2-21
              haskell-x11-xft-0.3.1-107  haskell-x509-1.7.5-92  haskell-x509-store-1.6.7-91
              haskell-x509-system-1.6.6-159  haskell-x509-validation-1.6.11-91
              haskell-xml-conduit-1.9.0.0-75  hidapi-0.10.1-1  imagemagick-7.0.10.45-1  js78-78.5.0-2
              libcups-1:2.3.3op1-1  libinput-1.16.4-1  libmagick6-6.9.11.45-1  libsigc++-2.10.6-1
              linux-5.9.11.arch2-1  linux-firmware-20201120.bc9cd0b-1  python-pikepdf-2.2.0-1
              xmobar-0.36-41  xmonad-0.15-74  xmonad-contrib-0.16-54

Last edited by rarsa (2020-12-01 00:46:34)

Offline

#2 2020-11-30 21:49:44

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,541

Re: X starts and shuts down immediately after update. SOLVED

Usually that means that whatever X is starting in the forground (xmonad?) is crashing. What's in the journal?

Offline

#3 2020-12-01 00:46:09

rarsa
Member
Registered: 2020-11-03
Posts: 7

Re: X starts and shuts down immediately after update. SOLVED

SOLVED
Scimmia wrote:

Usually that means that whatever X is starting in the forground (xmonad?) is crashing. What's in the journal?

Thank you, you gave me the hint I needed.

Unfortunately there wasn't anything in the logs and journals I looked at:
Any idea which logs I should have been looking at? I coldn't see the error in any of

  • /var/logs/journal

  • /var/log/*

  • ~/.local/share/xorg/Xorg.0.log

However, I was able to pause the process just after it closed X and saw the following message:

...
XMonad is recompiling and replacing itself another XMonad process because the current process is called "xmonad" but the compiled configuration should be called "xmonad-x86_64-linux"
Xmonad will use ghc to recompile, because "/home/<user>/.xmonad/build" does not exist.
Xmonad skipping recompile because it is not forced (e.g. via --recompile), and neither xmonad.hs nor any *.hs / *hsc files in lib/ have been changed.
/home/<user>/.xmonad/xmonad-x86_64-linux: error while loading shared libraries: libHSxmonad-contrib-0.16-162Xj26iTDR2dVREmXC6Kn-ghc8.10.2.so: cannot open shared object file: No such file or directory
xinit: connection to X server lost
...

With that, I wanted to see the error in the console, so

  1. I logged in to root

  2. I su - <user>

  3. I executed the "xmonad --recompile". It finished without an error.

  4. I logged out of <user>

  5. I logged out of root

  6. I logged in as user again and my Xenvironment with XMonad started normally.

The mystery remains of why when I was commenting out startx in .bash_profile and xmonad in .xinitrc, X11 was still starting.

Offline

#4 2020-12-01 12:19:53

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: X starts and shuts down immediately after update. SOLVED

what does

$ systemctl get-default

output ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB