Artix Linux Forum

Artix Linux => System => Topic started by: Matt on 24 March 2021, 04:57:09

Title: [SOLVED] I broke Plasma again
Post by: Matt on 24 March 2021, 04:57:09
So I am dumb, and somehow I broke Plasma by updating the system, and now when I try to log in it just freezes, I still can access the terminal with Ctrl-Alt-F5 so I can fix this, just do not know how, is there a way of getting "factory settings" of the packages without formating? I do have root access
Title: Re: I broke Plasma again
Post by: alium on 24 March 2021, 09:02:36
Although I don't know what exactly you mean by "when I try to log in it just freezes", but in my experience, when my plasma gets stuck at startup and the panel area doesn't start, the following will always help me:

1. log in to the terminal
2. rename (or delete) plasma-org.kde.plasma.desktop-appletsrc:
Code: [Select]
mv ~/.config/plasma-org.kde.plasma.desktop-appletsrc plasma-org.kde.plasma.desktop-appletsrc.broke
3. restart sddm (run again your DM)
Code: [Select]
rc-service sddm restart
Title: Re: I broke Plasma again
Post by: Matt on 24 March 2021, 09:43:25
So, it did not help, And what I mean by it freezes, once I write in the password and press login, the screen locks up, I can move the mouse around but overall is just frozen, the session is selected as Plasma X11
Title: Re: I broke Plasma again
Post by: strajder on 24 March 2021, 09:51:23
Have you tried logging in as root on the tty?

Off topic: threads like these show why not having a DM and instead running X by typing startx (or at least having startx run by your .bash_profile) is better.
Title: Re: I broke Plasma again
Post by: alium on 24 March 2021, 09:56:01
so put here
Code: [Select]
cat /var/log/sddm.log
and
Code: [Select]
cat /var/log/Xorg.0.log
use https://paste.artixlinux.org/ copy output and post here both link with full log.
Title: Re: I broke Plasma again
Post by: alium on 24 March 2021, 10:03:47
Off topic: threads like these show why not having a DM and instead running X by typing startx (or at least having startx run by your .bash_profile) is better.

Plasma unfortunately can sometimes go wrong by itself. Sometimes it helps to restart it several times in a row (and suddenly it starts up again without any problems) and sometimes it doesn't. As I wrote above, 100% of that procedure will help me. this is probably another problem.
Title: Re: I broke Plasma again
Post by: Matt on 24 March 2021, 10:52:52
heh, a problem with copying the logs, is, I have only a terminal to work with, I use my other pc to use the forum.
I could try getting the logs of the pc with a pen, but mounting and then copying the data would be another fun journey I don't really like doing. Also I tried running it via startx , it crashed and put out xtern not found, xlcok not found...
To the logs, It seems as soon as the session starts it's closed

Also I have to switch internet cable between my pc and the laptop with the linux any time I wanna do something so I cannot just ftb the files
Title: Re: I broke Plasma again
Post by: strajder on 24 March 2021, 11:25:11
If you have a USB flash disk, first find out which device it is on when you connect it:

Code: [Select]
$ lsblk -f
Usually it will be /dev/sdb1, but check just in case.

Then (assuming it is /dev/sdb1):
Code: [Select]
$ su
# mount /dev/sdb1 /mnt
# cp /var/log/Xorg.0.log /var/log/messages.log /mnt
# dmesg > /mnt/dmesg.txt
# sync; umount /mnt
and there you go.
Title: Re: I broke Plasma again
Post by: Matt on 24 March 2021, 12:49:36
https://paste.artixlinux.org/view/0a8dffda
https://paste.artixlinux.org/view/ab99aeff
https://paste.artixlinux.org/view/9b3e6fc2

Thank you, that helps lots
Title: Re: I broke Plasma again
Post by: strajder on 24 March 2021, 13:21:27
Looking at your logs (especially Xorg.0.log), I don't see anything that stands out as an error, except maybe the fact that there are no lines about your mouse, only touchpad, which seems weird because you said that you have a mouse and you could move your pointer with it.

I suggest also uploading your sddm.log as alium said.
Title: Re: I broke Plasma again
Post by: Matt on 24 March 2021, 13:45:28
https://paste.artixlinux.org/view/89b8c619
Title: Re: I broke Plasma again
Post by: alium on 24 March 2021, 14:18:13
Code: [Select]
 (II) HELPER: [PAM] Starting...
[09:41:06.322] (II) HELPER: [PAM] Authenticating...
[09:41:06.322] (II) HELPER: [PAM] Preparing to converse...
[09:41:06.322] (II) HELPER: [PAM] Conversation with 1 messages
[09:41:08.658] (WW) HELPER: [PAM] authenticate: Permission denied
[09:41:08.658] (II) HELPER: [PAM] returning.
[09:41:08.658] (WW) DAEMON: Authentication error: "Permission denied"

some is wrong here.
did you added some scripts or command for KDE's autologin?

that is my log:
Code: [Select]
[20:46:28.157] (II) HELPER: [PAM] Starting...
[20:46:28.157] (II) HELPER: [PAM] Authenticating...
[20:46:28.157] (II) HELPER: [PAM] Preparing to converse...
[20:46:28.157] (II) HELPER: [PAM] Conversation with 1 messages
[20:46:28.158] (II) HELPER: [PAM] returning.
[20:46:28.158] (II) DAEMON: Authenticated successfully
Title: Re: I broke Plasma again
Post by: Matt on 24 March 2021, 14:21:03
I do not know, I think I might have by accident at some point
Title: Re: I broke Plasma again
Post by: alium on 24 March 2021, 14:26:01
can you try downgrade to  https://archive.artixlinux.org/packages/p/plasma-workspace/plasma-workspace-5.21.3-1-x86_64.pkg.tar.zst ? and try if problem is not with last update? It should not be, but to be sure ...

in terminal
Code: [Select]
wget  https://archive.artixlinux.org/packages/p/plasma-workspace/plasma-workspace-5.21.3-1-x86_64.pkg.tar.zst
Code: [Select]
sudo pacman plasma-workspace-5.21.3-1-x86_64.pkg.tar.zst
restart sddm

we added in last change of workspace "dbus-run-session " command
Code: [Select]
[09:41:18.594] (II) DAEMON: Session "/usr/share/xsessions/plasma.desktop" selected, command: "dbus-run-session /usr/bin/startplasma-x11"
but that should caused no troubles...
Title: Re: I broke Plasma again
Post by: Matt on 24 March 2021, 14:31:30
I'll try to do it in a little bit, I have a little problem, as I cannot set up the wifi getting an
Code: [Select]
essid Host name lookup  failure
and the cable is connected to my main pc I cannot disconnect for next 3 hours

Ah no I am dumb again was using wrong command
Title: Re: I broke Plasma again
Post by: alium on 24 March 2021, 14:35:43
if you plasma stuck at startup, you can try rename the entire .config to .config2 and restart sddm. the plasma will start as if it were newly installed.

some plasma cache  dirs you can find in ./cache. Just deleting plasma cache  dirs/files could be help too:

Code: [Select]
kcmshell5
kinfocenter
kio_http
krunner
ksmserver-logout-greeter
kscreenlocker_greet
ksplashqml
kwin
plasmashell
qmlplugindump
systemsettings

ksycoca5_cs_Sc37KVY0ETJiYubzUugGbzqYDlk=
ksycoca5_en_Sc37KVY0ETJiYubzUugGbzqYDlk=
plasma-svgelements
plasma_theme_default_v5.80.0.kcache
icon-cache.kcache
event-sound-cache.tdb.xxxxxxxx.x86_64-pc-linux-gnu
Title: Re: I broke Plasma again
Post by: Matt on 24 March 2021, 16:22:10
neither helped, also startx doesn't work either, maybe getting that to work would help ?
Title: Re: I broke Plasma again
Post by: Matt on 24 March 2021, 16:40:01
Also while using wpa_supplicants when trying to connect to the wifi, I got fun error
Failed to add supported operating classes IE


Anyway, fixed that one myself


Title: Re: I broke Plasma again
Post by: strajder on 24 March 2021, 17:11:59
What happens when you disable your DM and run startx?

If it sends you back to the console after a brief flash, post your /etc/X11/xinit/xinitrc.

For example (I'm not using a DE, but only dwm), my xinitrc ends with:

Code: [Select]
exec dwm

so by installing dwm (if you don't already have it), you can test if your X works at all and we can eliminate X from being the source of the problem.

Shift+Alt+q exits dwm by default if you manage to start it.
Title: Re: I broke Plasma again
Post by: Matt on 24 March 2021, 18:25:28
https://paste.artixlinux.org/view/aae4e8ab

So it does flash and then I have a error that line 51, 52, 53, 54 ... command not found
Title: Re: I broke Plasma again
Post by: strajder on 24 March 2021, 19:03:57
Code: [Select]
twm &
xclock -geometry 50x50-1+1 &
xterm -geometry 80x50+494+51 &
xterm -geometry 80x20+494-0 &
exec xterm -geometry 80x66+0+0 -name login
That's because you don't have twm, xclock or xterm installed. You can either comment out the line with twm and xclock and install xterm (pacman -S xterm as root), which will allow you to test if X works, or, alternatively, install a simple WM like dwm, comment out all lines with xterm and add
Code: [Select]
exec dwm
at the end, then try to run startx.

If you go with the second option (dwm), this is how the end of your xinitrc will look:
Code: [Select]
#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login

exec dwm
Title: Re: I broke Plasma again
Post by: Matt on 25 March 2021, 07:19:43
So em, that's the resualt, 3 terminals yey?(https://cdn.discordapp.com/attachments/530101529039077388/824527710424268810/IMG_20210325_071816.jpg)
Title: Re: I broke Plasma again
Post by: strajder on 25 March 2021, 07:54:38
This means that we can narrow down the problem to plasma. X is working on your system.

If alium's suggestion didn't work, I'd next try creating a fresh user account and starting plasma (through your DM) as that user.
Title: Re: I broke Plasma again
Post by: Matt on 26 March 2021, 06:57:22
Sorry I ask, i am stupid how do you use Display Manager?
Title: Re: I broke Plasma again
Post by: conky60 on 26 March 2021, 14:49:49
Create a new user >> System Settings > In "Personalization" section click "Users" then at bottom click "+ Add New User". After that log out of Plasma and login as that "New User". hth

Best regards.
Title: Re: I broke Plasma again
Post by: Matt on 26 March 2021, 19:33:20
The problem is that I have no GUI. Plasma broke, and I have access only to the terminal, and I am asking how to use DM to start it, not how to create a user
Title: Re: I broke Plasma again
Post by: alium on 26 March 2021, 19:34:45
which init you have?

above i wrote you, how re-start sddm, if you have openrc.
Title: Re: I broke Plasma again
Post by: Matt on 26 March 2021, 19:53:15
I get service sddm doesn't exist

And I think I have runit ?
Title: Re: I broke Plasma again
Post by: alium on 26 March 2021, 20:12:07
which DM you use ? if you don't know, install sddm and install sddm-runit
Title: Re: I broke Plasma again
Post by: Matt on 26 March 2021, 20:19:54
Alright, so I know now I am using openrc
Also, I am not sure what type of DM I use, it's the default one most likely, as I wasn't messing with it
Title: Re: I broke Plasma again
Post by: alium on 26 March 2021, 20:33:05
you can see what you have for a DM :

pacman -Q sddm
pacman -Q lightdm
pacman -Q xdm
pacman -Q gdm

more DM we support not, i think :D
Title: Re: I broke Plasma again
Post by: Matt on 27 March 2021, 05:24:53
I only have sddm installed ^^
So I use openrc for innit and sddm for dm
but when I write rc-service sddm restart
it says sddm not found
Despite it being installed maybe that is the problem ?
Title: Re: I broke Plasma again
Post by: alium on 27 March 2021, 08:57:24
installing sddm-openrc can really very help 😄😄😄😅
 install it and enable this service please :
Code: [Select]
 rc-update add sddm default
and after start this service or restart computer
Title: Re: I broke Plasma again
Post by: Matt on 27 March 2021, 18:05:04
Alright, so now it works somewhat, it looks same but now I can start it, also, it still freezes, also new behavior, when trying to log into the new account it seems that sddm is crashing before relaunching itself
Title: Re: I broke Plasma again
Post by: alium on 27 March 2021, 19:25:14
put here some new logs please, if you can.
Title: Re: I broke Plasma again
Post by: Matt on 29 March 2021, 06:49:25
https://paste.artixlinux.org/view/0e99c4f4
https://paste.artixlinux.org/view/8f494601
https://paste.artixlinux.org/view/61b27df9
https://paste.artixlinux.org/view/095cde43
Title: Re: I broke Plasma again
Post by: alium on 29 March 2021, 09:03:56
Quote
[06:42:32.344] (EE) HELPER: chdir( /home/fixer ) failed for user:  "fixer"
[06:42:32.344] (EE) HELPER: verify directory exist and has sufficient permissions
seems as your home dir permissions are set wrong
check permissions of your /home/fixer
Code: [Select]
ls -ls /home
and eventually
Code: [Select]
ls -la  /home/fixer

Title: Re: I broke Plasma again
Post by: Matt on 29 March 2021, 09:32:29
The home directory hadn't been made for fixer I fixed that
 
Aaaand the behavior becomes the same as with the other accounts
Title: Re: I broke Plasma again
Post by: alium on 29 March 2021, 10:34:31
what is the behavior? does sddm start, and will plasma start? plasma as it starts and takes a long time or nothing happens? or sddm crash? or sddm returns to the original screen. Please describe the behavior after starting sddm better . I don't have a clear idea of what you see on the screen because I can't see it on your screen.

Try to install xfce, and in sddm select xfce instead of plasma. If xfce starts via sddm, the problem is somewhere in the plasma. But if xfce doesn't work either, the issue is probably in sddm, then you need to install another DM (like gdm or lighdm) for confirming this. But if he doesn't work either, and doesn't run any DE, then there's an issue somewhere in your system settings.

if you can not identify the cause, and you have no experience with Linux and  the issue  is somewhere in your system settings I would suggest maybe even fresh installation from ISO week


Title: Re: I broke Plasma again
Post by: strajder on 29 March 2021, 10:51:48
About sddm.log:

Code: [Select]
[08:00:18.166] (II) HELPER: [PAM] Starting...
[08:00:18.166] (II) HELPER: [PAM] Authenticating...
[08:00:18.166] (II) HELPER: [PAM] Preparing to converse...
[08:00:18.166] (II) HELPER: [PAM] Conversation with 1 messages
[08:00:18.166] (II) HELPER: [PAM] Preparing to converse...
[08:00:18.166] (II) HELPER: [PAM] Conversation with 1 messages
[08:00:18.166] (WW) DAEMON: Authentication information: "The account is locked due to 3 failed logins."
[08:00:18.166] (WW) DAEMON: Authentication information: "(10 minutes left to unlock)"
[08:00:18.166] (II) HELPER: [PAM] Preparing to converse...
[08:00:18.166] (II) HELPER: [PAM] Conversation with 1 messages
[08:00:21.547] (II) DAEMON: Message received from greeter: Login
[08:00:21.547] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[08:00:21.548] (WW) DAEMON: Existing authentication ongoing, aborting
[...]

Meaning the OP got timeout due to 3 unsuccessful logins, and later:
Code: [Select]
[08:01:07.172] (II) DAEMON: Message received from greeter: Login
[08:01:07.172] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[08:01:07.173] (WW) DAEMON: Existing authentication ongoing, aborting
[08:27:01.300] (WW) DAEMON: Signal received: SIGTERM
[08:27:01.300] (II) DAEMON: Greeter stopping...
[08:27:01.300] (II) DAEMON: Socket server stopping...
[08:27:01.300] (II) DAEMON: Socket server stopped.
[08:27:01.300] (II) DAEMON: Display server stopping...
[08:27:01.332] (II) DAEMON: Display server stopped.
[08:27:01.333] (II) DAEMON: Running display stop script  "/usr/share/sddm/scripts/Xstop"
[08:27:01.341] (WW) DAEMON: QProcess: Destroyed while process ("/usr/lib/sddm/sddm-helper") is still running.
[...]
[08:27:33.331] (II) DAEMON: Display server started.
[08:27:33.331] (II) DAEMON: Socket server starting...
[08:27:33.331] (II) DAEMON: Socket server started.
[08:27:33.332] (II) DAEMON: Loading theme configuration from "/usr/share/sddm/themes/artix/theme.conf"
[08:27:33.332] (II) DAEMON: Greeter starting...
[08:27:33.346] (II) HELPER: [PAM] Starting...
[08:27:33.346] (II) HELPER: [PAM] Authenticating...
[08:27:33.346] (II) HELPER: [PAM] returning.
[08:27:33.355] (II) DAEMON: Greeter session started successfully
[08:27:33.472] (II) DAEMON: Message received from greeter: Connect
[08:29:49.935] (II) DAEMON: Message received from greeter: Login
[08:29:49.935] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[08:29:49.936] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[08:29:49.936] (II) DAEMON: Session "/usr/share/xsessions/plasma.desktop" selected, command: "dbus-run-session /usr/bin/startplasma-x11"
[08:29:49.960] (II) HELPER: [PAM] Starting...
[08:29:49.961] (II) HELPER: [PAM] Authenticating...
[08:29:49.961] (II) HELPER: [PAM] Preparing to converse...
[08:29:49.961] (II) HELPER: [PAM] Conversation with 1 messages
[08:29:52.473] (WW) HELPER: [PAM] authenticate: Permission denied
[08:29:52.473] (II) HELPER: [PAM] returning.
[08:29:52.473] (WW) DAEMON: Authentication error: "Permission denied"
[08:29:52.473] (II) HELPER: [PAM] Ended.
[08:29:52.480] (WW) DAEMON: Auth: sddm-helper exited with 1
[08:30:02.554] (II) DAEMON: Message received from greeter: Login
[08:30:02.554] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[08:30:02.554] (II) DAEMON: Reading from "/usr/share/xsessions/plasma.desktop"
[08:30:02.554] (II) DAEMON: Session "/usr/share/xsessions/plasma.desktop" selected, command: "dbus-run-session /usr/bin/startplasma-x11"
[08:30:02.566] (II) HELPER: [PAM] Starting...
[08:30:02.566] (II) HELPER: [PAM] Authenticating...
[08:30:02.566] (II) HELPER: [PAM] Preparing to converse...
[08:30:02.566] (II) HELPER: [PAM] Conversation with 1 messages
[08:30:02.573] (II) HELPER: [PAM] returning.
[08:30:02.579] (II) DAEMON: Authenticated successfully
[08:30:02.647] (II) HELPER: [PAM] Closing session
[08:30:02.648] (II) HELPER: [PAM] Ended.
[08:30:02.649] (II) DAEMON: Auth: sddm-helper exited successfully
[08:30:02.650] (II) DAEMON: Greeter stopped.
Probably rebooted or restarted sddm and could login successfully.
Title: Re: I broke Plasma again
Post by: Matt on 29 March 2021, 11:54:01
Alright, Xfce worked instantly.
I am quite happy with having it work, maybe I should just reinstall plasma then.
To problem, once the sddm is restarted, it goes to the login screen, where I can pick the session and write my login, when I do and press login with plasma selected as the session, it just freezes and does nothing. As in, it stays on the login screen, and I cannot interact with it anymore. while with Xfce, it loged me in instantly

Also little problem I been having is for some reason when the screen loads, an touch keyboard appears, what is quite annoying and I do not know how to fix that
Title: Re: I broke Plasma again
Post by: Matt on 30 March 2021, 06:49:48
Alright I found how to fix it, it was just as simple as reinstalling Plasma with
sudo pacman -S --overwrite /* plasma