You are not logged in.
Installed, files copied, running "exec openbox-session" kicks me out of logged in session (multi-user.target) and offers to log in again.
Offline
You cannot start gui sessions from the console (at least not this way) - the idea was to try to log into openbox from SDDM.
Offline
Ah, right.
So it is getting stuck just the same way plasma does.
Offline
Install xorg-xinit xorg-twm xterm xorg-xclock. Stop and disable SDDM or from mult-user.target execute startx. Does that produce a basic functioning X session?
Offline
I've never seen "a basic functioning X session", however, it did produced something which includes a bunch of different windows with console running in so I think yes, it works. I can start spyder from it!
Offline
More of it, by running "startx plasma_session" I can open plasma gui, but it doesn't solve my issue.
Also, it is only possible from root, running "startx" from ordinary user doesn't work (just stuck, but can be stopped with ctrl+z).
The only error Xorg.0.log shows is:
(EE) AIGLX error: dlopen of /usr/lib/dri/i965_dri.so failed (/usr/lib/dri/i965_dri.so: cannot open shared object file: No such file or directory)
(EE) AIGLX error: unable to load driver i965
Last edited by shuruper (2022-09-19 22:29:37)
Offline
Post the log, not just an excerpt of what you think is important. This error happens if you have old HW and need to actually install mesa-amber instead of mesa, or if you are using xf86-video-intel while using HW that does not actually require xf86-video-intel.
Since this is a Skylake level CPU, the latter will be the case, make sure mesa is installed, remove xf86-video-intel and try again. Also ensure you aren't exporting MESA_LOADER_DRIVER_OVERRIDE=i965 somewhere in your user local environment files, that used to be a recommendation years ago when iris was new and unstable and shouldn't generally be used anymore.
Last edited by V1del (2022-09-20 01:10:06)
Offline
So [openbox] is getting stuck just the same way plasma does.
there's no indication at all that even an attempt is made to start the plasma desktop processes
Sep 19 13:02:15 ganjArch sddm[411]: Running: /usr/bin/X -nolisten tcp -background none -seat seat0 vt1 -auth /var/run/sddm/{411e9f84-2d43-4a5f-8822-8dc735d01a89} -noreset -displayfd 17
Sep 19 13:02:17 ganjArch sddm[411]: Setting default cursor
Sep 19 13:02:17 ganjArch sddm[411]: Running display setup script "/usr/share/sddm/scripts/Xsetup"
Sep 19 13:02:17 ganjArch sddm[411]: Display server started.
I don't think it's X11
Sep 19 13:02:27 ganjArch sddm-helper[697]: Starting: "/usr/share/sddm/scripts/Xsession \"/usr/bin/startplasma-x11\""
Sep 19 13:02:27 ganjArch sddm-helper[717]: Adding cookie to "/home/ganja/.Xauthority"
Sep 19 13:02:30 ganjArch exportfs[695]: exportfs: Failed to resolve desktop
Sep 19 13:02:30 ganjArch exportfs[695]: exportfs: Failed to stat /srv/nfs/public: No such file or directory
Sep 19 13:02:30 ganjArch exportfs[695]: exportfs: Failed to stat /srv/nfs/home: No such file or directory
Sep 19 13:02:30 ganjArch kernel: RPC: Registered rdma transport module.
Sep 19 13:02:30 ganjArch kernel: RPC: Registered rdma backchannel transport module.
Sep 19 13:02:30 ganjArch kernel: NFSD: Using nfsdcld client tracking operations.
Sep 19 13:02:30 ganjArch kernel: NFSD: no clients to reclaim, skipping NFSv4 grace period (net f0000000)
Sep 19 13:02:31 ganjArch systemd[1]: Finished NFS server and services.
Sep 19 13:02:31 ganjArch audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=nfs-server comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 19 13:02:31 ganjArch kernel: kauditd_printk_skb: 17 callbacks suppressed
Sep 19 13:02:31 ganjArch kernel: audit: type=1130 audit(1663606951.014:98): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=nfs-server comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 19 13:02:31 ganjArch systemd[1]: Starting Notify NFS peers of a restart...
Sep 19 13:02:31 ganjArch sm-notify[738]: Version 2.6.2 starting
Sep 19 13:02:31 ganjArch systemd[1]: Started Notify NFS peers of a restart.
Sep 19 13:02:31 ganjArch systemd[1]: Startup finished in 12.683s (firmware) + 2.992s (loader) + 1.292s (kernel) + 17.772s (userspace) = 34.741s.
Sep 19 13:02:31 ganjArch audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=rpc-statd-notify comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 19 13:02:31 ganjArch kernel: audit: type=1130 audit(1663606951.024:99): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=rpc-statd-notify comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 19 13:02:37 ganjArch systemd[1]: Stopping User Manager for UID 974...
Sep 19 13:02:37 ganjArch systemd[606]: Activating special unit Exit the Session...
Sep 19 13:02:37 ganjArch systemd[606]: Stopped target Main User Target.
Sep 19 13:02:37 ganjArch systemd[606]: Stopping D-Bus User Message Bus...
Sep 19 13:02:37 ganjArch systemd[606]: Stopped D-Bus User Message Bus.
Sep 19 13:02:37 ganjArch systemd[606]: Removed slice User Core Session Slice.
Sep 19 13:02:37 ganjArch systemd[606]: Stopped target Basic System.
Sep 19 13:02:37 ganjArch systemd[606]: Stopped target Paths.
Sep 19 13:02:37 ganjArch systemd[606]: Stopped target Sockets.
Sep 19 13:02:37 ganjArch systemd[606]: Stopped target Timers.
Sep 19 13:02:37 ganjArch systemd[606]: Closed D-Bus User Message Bus Socket.
Sep 19 13:02:37 ganjArch systemd[606]: Closed GnuPG network certificate management daemon.
Sep 19 13:02:37 ganjArch systemd[606]: Closed GCR ssh-agent wrapper.
Sep 19 13:02:37 ganjArch systemd[606]: Closed GNOME Keyring daemon.
Sep 19 13:02:37 ganjArch systemd[606]: Closed GnuPG cryptographic agent and passphrase cache (access for web browsers).
Sep 19 13:02:37 ganjArch systemd[606]: Closed GnuPG cryptographic agent and passphrase cache (restricted).
Sep 19 13:02:37 ganjArch systemd[606]: Closed GnuPG cryptographic agent (ssh-agent emulation).
Sep 19 13:02:37 ganjArch systemd[606]: Closed GnuPG cryptographic agent and passphrase cache.
Sep 19 13:02:37 ganjArch systemd[606]: Closed p11-kit server.
Sep 19 13:02:37 ganjArch systemd[606]: Closed PipeWire Multimedia System Socket.
Sep 19 13:02:37 ganjArch systemd[606]: Closed Sound System.
Sep 19 13:02:37 ganjArch systemd[606]: Removed slice User Application Slice.
Sep 19 13:02:37 ganjArch systemd[606]: Reached target Shutdown.
Sep 19 13:02:37 ganjArch systemd[606]: Finished Exit the Session.
Sep 19 13:02:37 ganjArch systemd[606]: Reached target Exit the Session.
Sep 19 13:02:37 ganjArch systemd[607]: pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8004 service=[systemd-user] terminal=[] user=[sddm] ruser=[<unknown>] rhost=[<unknown>]
Sep 19 13:02:37 ganjArch systemd[1]: user@974.service: Deactivated successfully.
Sep 19 13:02:37 ganjArch systemd[1]: Stopped User Manager for UID 974.
Sep 19 13:02:37 ganjArch audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@974 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 19 13:02:37 ganjArch systemd[1]: Stopping User Runtime Directory /run/user/974...
Sep 19 13:02:37 ganjArch kernel: audit: type=1131 audit(1663606957.254:100): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user@974 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 19 13:02:37 ganjArch systemd[1]: run-user-974.mount: Deactivated successfully.
Sep 19 13:02:37 ganjArch systemd[1]: user-runtime-dir@974.service: Deactivated successfully.
Sep 19 13:02:37 ganjArch systemd[1]: Stopped User Runtime Directory /run/user/974.
Sep 19 13:02:37 ganjArch audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@974 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 19 13:02:37 ganjArch systemd[1]: Removed slice User Slice of UID 974.
Sep 19 13:02:37 ganjArch systemd[1]: user-974.slice: Consumed 1.436s CPU time.
Sep 19 13:02:37 ganjArch kernel: audit: type=1131 audit(1663606957.264:101): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=user-runtime-dir@974 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 19 13:02:45 ganjArch systemd-timesyncd[306]: Contacted time server 116.202.14.29:123 (2.arch.pool.ntp.org).
Sep 19 13:02:45 ganjArch systemd-timesyncd[306]: Initial clock synchronization to Mon 2022-09-19 13:02:44.893075 EDT.
Sep 19 13:02:46 ganjArch systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Sep 19 13:02:46 ganjArch audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 19 13:02:46 ganjArch kernel: audit: type=1131 audit(1663606966.247:102): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-hostnamed comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Sep 19 13:02:46 ganjArch audit: BPF prog-id=0 op=UNLOAD
Sep 19 13:02:46 ganjArch audit: BPF prog-id=0 op=UNLOAD
Sep 19 13:02:46 ganjArch audit: BPF prog-id=0 op=UNLOAD
Sep 19 13:02:46 ganjArch kernel: audit: type=1334 audit(1663606966.357:103): prog-id=0 op=UNLOAD
Sep 19 13:02:46 ganjArch kernel: audit: type=1334 audit(1663606966.357:104): prog-id=0 op=UNLOAD
Sep 19 13:02:46 ganjArch kernel: audit: type=1334 audit(1663606966.357:105): prog-id=0 op=UNLOAD
Sep 19 13:02:47 ganjArch sddm[411]: Session started
Sep 19 13:02:47 ganjArch sddm-helper[697]: [PAM] Closing session
Sep 19 13:02:47 ganjArch sddm-helper[697]: pam_unix(sddm:session): session closed for user ganja
There're 20 seconds where he's logged in and almost nothing happened.
Also, it is only possible from root, running "startx" from ordinary user doesn't work
As root:
find ~ganja \! -user ganja -print
Then also try a fresh user, and inspect your bashrc/bash_profile (or whatever shell you use) - there's perhaps something stupid inside (though that would not exactly explain the xinit behavior)
Other than that and on a wild guess I'd blame mullvad and whatever AnyConnect version you've installed, but there's really no basis for this assumption.
You can still try to disable them.
Offline
ok, so I disabled anyconnect and mullvadvpn, added new user and I'm able to log in! Output for your suggested command here: http://0x0.st/oVp4.txt
~/.bashrc does have anything newly added so I'm assuming it is okay if it was working like that for quite a while now.
Removing xf86-video-intel was a bad idea or I wasn't successful in replacing it. I've tried just removing + following this: https://wiki.archlinux.org/title/intel_graphics - no luck. Then adding xf86-video-vesa and again - no luck. By no luck I mean graphical.target like boot wasn't successful saying something like cannot find Display. startx command wasn't working as well. Getting xf86-video-intel fixed that.
Offline
The intel driver (or you ) might have left residuals in /{etc,usr/share}/X11/xorg.conf*
stat /home/ganja/.Xauthority /home/ganja/.bashrc
The other files not belonging to your UID are some python stuff, you might want to look into that.
disabled anyconnect and mullvadvpn, added new user and I'm able to log in
As the new user or ganja?
Offline
as a new user, old user (ganja) is still stuck.
stat /home/ganja/.Xauthority /home/ganja/.bashrc
File: /home/ganja/.Xauthority
Size: 53 Blocks: 8 IO Block: 4096 regular file
Device: 259,3 Inode: 926470 Links: 1
Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2022-09-19 18:36:36.093306970 -0400
Modify: 2022-09-15 17:45:33.913057044 -0400
Change: 2022-09-20 10:57:20.322729346 -0400
Birth: 2022-09-15 17:45:33.913057044 -0400
File: /home/ganja/.bashrc
Size: 1816 Blocks: 8 IO Block: 4096 regular file
Device: 259,3 Inode: 953437 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2022-09-19 21:14:26.621917719 -0400
Modify: 2022-03-29 12:07:18.971880320 -0400
Change: 2022-03-29 12:07:18.971880320 -0400
Birth: 2020-10-05 10:04:39.856646150 -0400
2022-09-15 17:45 is about the time when this issue started. I've did chown on this .Xauthority file to go to root:root today.
Python stuff should be fine, but I'll have a look.
Also these ones:
cat /etc/X11/xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/OTF"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/75dpi"
EndSection
Section "Module"
Load "glx"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "AccelMethod" # <str>
#Option "Backlight" # <str>
#Option "CustomEDID" # <str>
#Option "DRI" # <str>
#Option "Present" # [<bool>]
#Option "ColorKey" # <i>
#Option "VideoKey" # <i>
#Option "Tiling" # [<bool>]
#Option "LinearFramebuffer" # [<bool>]
#Option "HWRotation" # [<bool>]
#Option "VSync" # [<bool>]
#Option "PageFlip" # [<bool>]
#Option "SwapbuffersWait" # [<bool>]
#Option "TripleBuffer" # [<bool>]
#Option "XvPreferOverlay" # [<bool>]
#Option "HotPlug" # [<bool>]
#Option "ReprobeOutputs" # [<bool>]
#Option "XvMC" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "VirtualHeads" # <i>
#Option "TearFree" # [<bool>]
#Option "PerCrtcPixmaps" # [<bool>]
#Option "FallbackDebug" # [<bool>]
#Option "DebugFlushBatches" # [<bool>]
#Option "DebugFlushCaches" # [<bool>]
#Option "DebugWait" # [<bool>]
#Option "BufferCache" # [<bool>]
Identifier "Card0"
Driver "intel"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
and /usr/share/X11/xorg.conf doesn't exist. There is a directory xorg.conf.d which includes
ls
10-evdev.conf 10-nvidia-drm-outputclass.conf 10-quirks.conf 40-libinput.conf
Last edited by shuruper (2022-09-20 15:55:03)
Offline
/etc/X11/xorg.conf
…
Driver "intel"
Remove that file, it's only cruft that causes you trouble.
I've did chown on this .Xauthority file to go to root:root today.
Own the bashrc to yourself and just remove the .Xauthority - then try to login as ganja again.
Offline
I removed this line from xorg.conf and deleted .Xauthority files, actually three of them, I also had .Xauthority-r and *-l.
Now my old user (ganja) is, hooray!, back. Thank you very much for guiding me through this mess!
I'll label this as "Solved" and probably about to start new thread about setting up Xorg to "receive/send/ graphics correctly over "ssh -X .. ".
P.S. probably it would be helpful to change the topic to: Stuck at login page due to incorrect X settings, isn't it?
Last edited by shuruper (2022-09-20 16:25:17)
Offline
It's not been the settings but somethingbad™ happened to the xuathority file.
Offline
ok, I'll keep as is.
again - thanks a lot, appreciate it. It's really fascinating how much one can learn from one corrupted file lol
Offline