Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to logout after the wm closed #202

Open
jasinco opened this issue May 1, 2024 · 3 comments
Open

Failed to logout after the wm closed #202

jasinco opened this issue May 1, 2024 · 3 comments

Comments

@jasinco
Copy link

jasinco commented May 1, 2024

Hi, I noticed some problems. I can't open another session in lemurs if I visited one and exit ( just directly killed with hyprctl dispatch exit ). Or I just need to add a line to my lemurs' config?

systemctl status lemurs

● lemurs.service - Lemurs
     Loaded: loaded (/usr/lib/systemd/system/lemurs.service; enabled; preset: disabled)
     Active: active (running) since Wed 2024-05-01 22:08:26 CST; 9min ago
   Main PID: 887 (lemurs)
      Tasks: 0 (limit: 18702)
     Memory: 4.8M (peak: 22.5M)
        CPU: 91ms
     CGroup: /system.slice/lemurs.service
             ‣ 887 /usr/bin/lemurs

May 01 22:08:26 archlaptop systemd[1]: Started Lemurs.
May 01 22:08:29 archlaptop lemurs[887]: pam_loginuid(lemurs:session): Error writing /proc/self/loginuid: Operation not permitted
May 01 22:08:29 archlaptop lemurs[887]: pam_loginuid(lemurs:session): set_loginuid failed
May 01 22:08:29 archlaptop lemurs[887]: pam_unix(lemurs:session): session opened for user jasinco(uid=1000) by (uid=0)

loginctl list-sessions (what lemurs prefer is tty2)

SESSION  UID USER    SEAT  TTY  STATE   IDLE SINCE
      2 1000 jasinco seat0 tty1 active  no   -    
     c1 1000 jasinco seat0 tty2 closing no   -    

2 sessions listed.

lemurs.log

[2024-05-01T14:08:27Z INFO  lemurs] Main lemurs logger is running
[2024-05-01T14:08:27Z INFO  lemurs] Switching to tty 2
[2024-05-01T14:08:27Z INFO  lemurs] UI booted up
[2024-05-01T14:08:27Z WARN  lemurs::post_login] Failed to read from the X folder '/etc/lemurs/wms'
[2024-05-01T14:08:27Z INFO  lemurs::info_caching] Attempting to get a cached information from '/var/cache/lemurs'
[2024-05-01T14:08:27Z INFO  lemurs::info_caching] Read cache file and found environment 'Hyprland' and username 'jasinco'
[2024-05-01T14:08:27Z INFO  lemurs::ui] Loading username 'jasinco' from cache
[2024-05-01T14:08:27Z INFO  lemurs::ui] Loading environment 'Hyprland' from cache
[2024-05-01T14:08:29Z INFO  lemurs] Starting new session for 'jasinco' in environment 'Wayland { script_path: "/etc/lemurs/wayland/Hyprland" }'
[2024-05-01T14:08:29Z INFO  lemurs::post_login::env_variables] Setting XDG Session Parameters
[2024-05-01T14:08:29Z INFO  lemurs::env_container] Set environment variable 'XDG_SESSION_CLASS' to 'user'
[2024-05-01T14:08:29Z INFO  lemurs::env_container] Set environment variable 'XDG_SESSION_TYPE' to 'wayland'
[2024-05-01T14:08:29Z INFO  lemurs::post_login::env_variables] Clearing XDG preemptively to set later
[2024-05-01T14:08:29Z INFO  lemurs::env_container] Preemptively removed environment variable 'XDG_SESSION_CLASS'
[2024-05-01T14:08:29Z INFO  lemurs::auth] Login attempt for 'jasinco'
[2024-05-01T14:08:29Z INFO  lemurs::auth::pam] Started opening session
[2024-05-01T14:08:29Z INFO  lemurs::auth::pam] Gotten Authenticator
[2024-05-01T14:08:29Z INFO  lemurs::auth::pam] Got handler
[2024-05-01T14:08:29Z INFO  lemurs::auth::pam] Validated account
[2024-05-01T14:08:30Z INFO  lemurs::auth::pam] Opened session
[2024-05-01T14:08:30Z INFO  lemurs::ui] Setting cached information
[2024-05-01T14:08:30Z INFO  lemurs::info_caching] Attempting to set cache
[2024-05-01T14:08:30Z INFO  lemurs::info_caching] Successfully set username in cache file
[2024-05-01T14:08:30Z INFO  lemurs::post_login::env_variables] Setting XDG Seat Variables
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Skipped setting environment variable 'XDG_SEAT'. It was already set to 'seat0'
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Skipped setting environment variable 'XDG_VTNR'. It was already set to '2'
[2024-05-01T14:08:30Z INFO  lemurs::post_login::env_variables] Setting XDG Session Variables
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Skipped setting environment variable 'XDG_RUNTIME_DIR'. It was already set to '/run/user/1000'
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Skipped setting environment variable 'XDG_SESSION_ID'. It was already set to 'c1'
[2024-05-01T14:08:30Z INFO  lemurs::post_login::env_variables] Setting Basic Environment Variables
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Successfully changed working directory to /home/jasinco!
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Set environment variable 'HOME' to '/home/jasinco'
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Set environment variable 'SHELL' to '/bin/zsh'
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Set environment variable 'USER' to 'jasinco'
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Set environment variable 'LOGNAME' to 'jasinco'
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Set environment variable 'PATH' to '/usr/local/sbin:/usr/local/bin:/usr/bin'
[2024-05-01T14:08:30Z INFO  lemurs::post_login::env_variables] Setting XDG Common Paths
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Set environment variable 'XDG_CONFIG_HOME' to '/home/jasinco/.config'
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Set environment variable 'XDG_CACHE_HOME' to '/home/jasinco/.cache'
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Set environment variable 'XDG_DATA_HOME' to '/home/jasinco/.local/share'
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Set environment variable 'XDG_STATE_HOME' to '/home/jasinco/.local/state'
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Set environment variable 'XDG_DATA_DIRS' to '/usr/local/share:/usr/share'
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Set environment variable 'XDG_CONFIG_DIRS' to '/etc/xdg'
[2024-05-01T14:08:30Z INFO  lemurs::post_login] Starting Wayland session
[2024-05-01T14:08:30Z INFO  lemurs::auth::utmpx] Adding UTMPX record
[2024-05-01T14:08:30Z INFO  lemurs::auth::utmpx] Added UTMPX record
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Removing session environment variables
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Reverting to environment before session
[2024-05-01T14:08:30Z INFO  lemurs::env_container] Reverting to environment before session
[2024-05-01T14:08:30Z INFO  lemurs] Waiting for environment to terminate
[2024-05-01T14:08:30Z INFO  lemurs::post_login] Waiting for client to exit
[2024-05-01T14:09:12Z INFO  lemurs::post_login::wait_with_log] Joining with logging thread.
[2024-05-01T14:09:12Z INFO  lemurs::post_login] Client exited with exit code `exit status: 0`
[2024-05-01T14:09:12Z INFO  lemurs] Environment terminated. Returning to Lemurs...
[2024-05-01T14:09:12Z INFO  lemurs::auth::utmpx] Removing UTMPX record
[2024-05-01T14:09:17Z INFO  lemurs] Starting new session for 'jasinco' in environment 'Wayland { script_path: "/etc/lemurs/wayland/Hyprland" }'
[2024-05-01T14:09:17Z INFO  lemurs::post_login::env_variables] Setting XDG Session Parameters
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'XDG_SESSION_CLASS' to 'user'
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'XDG_SESSION_TYPE' to 'wayland'
[2024-05-01T14:09:17Z INFO  lemurs::post_login::env_variables] Clearing XDG preemptively to set later
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Preemptively removed environment variable 'XDG_SESSION_CLASS'
[2024-05-01T14:09:17Z INFO  lemurs::auth] Login attempt for 'jasinco'
[2024-05-01T14:09:17Z INFO  lemurs::auth::pam] Started opening session
[2024-05-01T14:09:17Z INFO  lemurs::auth::pam] Gotten Authenticator
[2024-05-01T14:09:17Z INFO  lemurs::auth::pam] Got handler
[2024-05-01T14:09:17Z INFO  lemurs::auth::pam] Validated account
[2024-05-01T14:09:17Z INFO  lemurs::auth::pam] Opened session
[2024-05-01T14:09:17Z INFO  lemurs::ui] Setting cached information
[2024-05-01T14:09:17Z INFO  lemurs::info_caching] Attempting to set cache
[2024-05-01T14:09:17Z INFO  lemurs::info_caching] Successfully set username in cache file
[2024-05-01T14:09:17Z INFO  lemurs::post_login::env_variables] Setting XDG Seat Variables
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'XDG_SEAT' to 'seat0'
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'XDG_VTNR' to '2'
[2024-05-01T14:09:17Z INFO  lemurs::post_login::env_variables] Setting XDG Session Variables
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'XDG_RUNTIME_DIR' to '/run/user/1000'
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'XDG_SESSION_ID' to '1'
[2024-05-01T14:09:17Z INFO  lemurs::post_login::env_variables] Setting Basic Environment Variables
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Successfully changed working directory to /home/jasinco!
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'HOME' to '/home/jasinco'
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'SHELL' to '/bin/zsh'
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'USER' to 'jasinco'
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'LOGNAME' to 'jasinco'
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'PATH' to '/usr/local/sbin:/usr/local/bin:/usr/bin'
[2024-05-01T14:09:17Z INFO  lemurs::post_login::env_variables] Setting XDG Common Paths
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'XDG_CONFIG_HOME' to '/home/jasinco/.config'
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'XDG_CACHE_HOME' to '/home/jasinco/.cache'
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'XDG_DATA_HOME' to '/home/jasinco/.local/share'
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'XDG_STATE_HOME' to '/home/jasinco/.local/state'
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'XDG_DATA_DIRS' to '/usr/local/share:/usr/share'
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Set environment variable 'XDG_CONFIG_DIRS' to '/etc/xdg'
[2024-05-01T14:09:17Z INFO  lemurs::post_login] Starting Wayland session
[2024-05-01T14:09:17Z INFO  lemurs::auth::utmpx] Adding UTMPX record
[2024-05-01T14:09:17Z INFO  lemurs::auth::utmpx] Added UTMPX record
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Removing session environment variables
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Reverting to environment before session
[2024-05-01T14:09:17Z INFO  lemurs::env_container] Reverting to environment before session
[2024-05-01T14:09:17Z INFO  lemurs] Waiting for environment to terminate
[2024-05-01T14:09:17Z INFO  lemurs::post_login] Waiting for client to exit
[2024-05-01T14:09:17Z INFO  lemurs::post_login::wait_with_log] Joining with logging thread.
[2024-05-01T14:09:17Z INFO  lemurs::post_login] Client exited with exit code `signal: 6 (SIGABRT) (core dumped)`
[2024-05-01T14:09:17Z INFO  lemurs] Environment terminated. Returning to Lemurs...
[2024-05-01T14:09:17Z INFO  lemurs::auth::utmpx] Removing UTMPX record

@W4RH4WK
Copy link

W4RH4WK commented Jun 21, 2024

I do have the same issue using logind + polkit. I've found out that using seatd works, so it seems like there's an issue with spawning another session when polkit is used (?).

Edit: Check the client log, does it contain something about failing to establish a seat?

@MarkusTieger
Copy link

MarkusTieger commented Oct 24, 2024

I do have the same issue using logind + polkit. I've found out that using seatd works, so it seems like there's an issue with spawning another session when polkit is used (?).

Edit: Check the client log, does it contain something about failing to establish a seat?

Nothing special in the lemurs.client.log, except that Hyprland closes with a segmentation fault for some reason when quiting with a keycombo

@diggit
Copy link

diggit commented Dec 27, 2024

Sounds like duplicate of #187

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants