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

On first boot, clicking 'Login' causes sway to restart #58

Open
winteriscariot opened this issue Feb 16, 2024 · 2 comments
Open

On first boot, clicking 'Login' causes sway to restart #58

winteriscariot opened this issue Feb 16, 2024 · 2 comments
Labels
question Further information is requested

Comments

@winteriscariot
Copy link

winteriscariot commented Feb 16, 2024

okay so I'm running into a bit of a weird issue

basically when my computer boots for the first time (or reboots) and greetd starts and launches sway to display regreet, everything looks correct

however when I click the 'login' button the first time, it causes the entire login manager to appear to restart

the logs seem to reflect this:

-- Boot b2c3f5255f0a4b03a98346f39db0df29 --
Feb 16 11:46:55 solstice.echo.null systemd[1]: Started Greeter daemon.
Feb 16 11:46:55 solstice.echo.null greetd[740]: config: Config { file: ConfigFile { terminal: ConfigTerminal { vt: Specific(1), switch: true }, general: ConfigGeneral { source_profile: true, runfile: "/run/greetd.run" }, default_session: ConfigSession { >
Feb 16 11:46:55 solstice.echo.null greetd[748]: config: Config { file: ConfigFile { terminal: ConfigTerminal { vt: None, switch: false }, general: ConfigGeneral { source_profile: true, runfile: "/run/greetd.run" }, default_session: ConfigSession { comman>
Feb 16 11:46:55 solstice.echo.null greetd[748]: pam_unix(greetd:session): session opened for user greeter(uid=949) by greeter(uid=0)
Feb 16 11:47:04 solstice.echo.null greetd[1070]: config: Config { file: ConfigFile { terminal: ConfigTerminal { vt: None, switch: false }, general: ConfigGeneral { source_profile: true, runfile: "/run/greetd.run" }, default_session: ConfigSession { comma>
Feb 16 11:47:05 solstice.echo.null greetd[740]: error: check_children: greeter exited without creating a session
Feb 16 11:47:05 solstice.echo.null systemd[1]: greetd.service: Deactivated successfully.
Feb 16 11:47:06 solstice.echo.null systemd[1]: greetd.service: Scheduled restart job, restart counter is at 1.
Feb 16 11:47:06 solstice.echo.null systemd[1]: Started Greeter daemon.
Feb 16 11:47:06 solstice.echo.null greetd[1107]: config: Config { file: ConfigFile { terminal: ConfigTerminal { vt: Specific(1), switch: true }, general: ConfigGeneral { source_profile: true, runfile: "/run/greetd.run" }, default_session: ConfigSession {>
Feb 16 11:47:06 solstice.echo.null greetd[1108]: config: Config { file: ConfigFile { terminal: ConfigTerminal { vt: None, switch: false }, general: ConfigGeneral { source_profile: true, runfile: "/run/greetd.run" }, default_session: ConfigSession { comma>
Feb 16 11:47:06 solstice.echo.null greetd[1108]: pam_unix(greetd:session): session opened for user greeter(uid=949) by greeter(uid=0)
Feb 16 11:47:08 solstice.echo.null greetd[1199]: config: Config { file: ConfigFile { terminal: ConfigTerminal { vt: None, switch: false }, general: ConfigGeneral { source_profile: true, runfile: "/run/greetd.run" }, default_session: ConfigSession { comma>
Feb 16 11:47:10 solstice.echo.null greetd[1199]: pam_unix(greetd:session): session opened for user xxxx(uid=1001) by xxxx(uid=0)

what's extra strange is that it's only when i click the 'login' button: I can click the dropdown for my session, or edit the session, or edit the username, it all works fine.

i've tried with gtkgreet and it does not exhibit the same behavior

might anyone know what I should look at?

@rharish101
Copy link
Owner

Could you post the ReGreet logs? They should be in /var/log/regreet.

@rharish101 rharish101 added the question Further information is requested label Mar 12, 2024
@gouvinb
Copy link

gouvinb commented Jun 15, 2024

I have the same issue.

ReGreet logs
2024-06-15T14:07:51.179378346+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/hyprland-xdg.desktop
2024-06-15T14:07:51.179703667+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/hyprland.desktop
2024-06-15T14:07:51.179930914+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/sway-xdg-dbg.desktop
2024-06-15T14:07:51.180161467+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/sway-xdg.desktop
2024-06-15T14:07:51.180230998+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/sway.desktop
2024-06-15T14:07:51.180296641+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/weston-xdg.desktop
2024-06-15T14:07:51.180364318+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/weston.desktop
2024-06-15T14:07:51.180625389+02:00  INFO regreet::tomlutils: Loaded TOML file: /var/cache/regreet/cache.toml
2024-06-15T14:07:51.180673559+02:00  INFO regreet::tomlutils: Loaded TOML file: /etc/greetd/regreet.toml
2024-06-15T14:07:51.196509877+02:00  INFO regreet::client: Cancelling greetd session
2024-06-15T14:08:24.880802261+02:00  INFO update_with_view{input=Login { info: UserSessInfo { user_id: Some("gouvinb"), user_text: "", sess_id: Some("Sway (XDG)"), sess_text: "" } } component="regreet::gui::model::Greeter" id="0x7ffdcc6f0680"}:login_click_handler: regreet::gui::model: Creating session for user: gouvinb
2024-06-15T14:08:24.880823911+02:00  INFO update_with_view{input=Login { info: UserSessInfo { user_id: Some("gouvinb"), user_text: "", sess_id: Some("Sway (XDG)"), sess_text: "" } } component="regreet::gui::model::Greeter" id="0x7ffdcc6f0680"}:login_click_handler: regreet::client: Creating session for username: gouvinb
2024-06-15T14:08:24.916114994+02:00  INFO update_with_view{input=Login { info: UserSessInfo { user_id: Some("gouvinb"), user_text: "", sess_id: Some("Sway (XDG)"), sess_text: "" } } component="regreet::gui::model::Greeter" id="0x7ffdcc6f0680"}:login_click_handler: regreet::gui::model: greetd asks for a secret auth input: Password: 
2024-06-15T14:08:28.406094924+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/hyprland-xdg.desktop
2024-06-15T14:08:28.406174743+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/hyprland.desktop
2024-06-15T14:08:28.406225016+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/sway-xdg-dbg.desktop
2024-06-15T14:08:28.40628475+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/sway-xdg.desktop
2024-06-15T14:08:28.406333028+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/sway.desktop
2024-06-15T14:08:28.406375624+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/weston-xdg.desktop
2024-06-15T14:08:28.406426719+02:00  INFO regreet::sysutil: Now scanning session file: /usr/share/wayland-sessions/weston.desktop
2024-06-15T14:08:28.40651603+02:00  INFO regreet::tomlutils: Loaded TOML file: /var/cache/regreet/cache.toml
2024-06-15T14:08:28.406548994+02:00  INFO regreet::tomlutils: Loaded TOML file: /etc/greetd/regreet.toml
2024-06-15T14:08:28.421063133+02:00  INFO regreet::client: Cancelling greetd session
2024-06-15T14:08:32.999404018+02:00  INFO update_with_view{input=Login { info: UserSessInfo { user_id: Some("gouvinb"), user_text: "", sess_id: Some("Sway (XDG)"), sess_text: "" } } component="regreet::gui::model::Greeter" id="0x7ffdb2a9bef0"}:login_click_handler: regreet::gui::model: Creating session for user: gouvinb
2024-06-15T14:08:32.99943259+02:00  INFO update_with_view{input=Login { info: UserSessInfo { user_id: Some("gouvinb"), user_text: "", sess_id: Some("Sway (XDG)"), sess_text: "" } } component="regreet::gui::model::Greeter" id="0x7ffdb2a9bef0"}:login_click_handler: regreet::client: Creating session for username: gouvinb
2024-06-15T14:08:33.025926793+02:00  INFO update_with_view{input=Login { info: UserSessInfo { user_id: Some("gouvinb"), user_text: "", sess_id: Some("Sway (XDG)"), sess_text: "" } } component="regreet::gui::model::Greeter" id="0x7ffdb2a9bef0"}:login_click_handler: regreet::gui::model: greetd asks for a secret auth input: Password: 
2024-06-15T14:08:35.332822978+02:00  INFO update_with_view{input=Login { info: UserSessInfo { user_id: Some("gouvinb"), user_text: "", sess_id: Some("Sway (XDG)"), sess_text: "" } } component="regreet::gui::model::Greeter" id="0x7ffdb2a9bef0"}:login_click_handler: regreet::client: Sending password to greetd
2024-06-15T14:08:35.355331286+02:00  INFO update_with_view{input=Login { info: UserSessInfo { user_id: Some("gouvinb"), user_text: "", sess_id: Some("Sway (XDG)"), sess_text: "" } } component="regreet::gui::model::Greeter" id="0x7ffdb2a9bef0"}:login_click_handler: regreet::gui::model: Successfully logged in; starting session
2024-06-15T14:08:35.35536193+02:00  INFO update_with_view{input=Login { info: UserSessInfo { user_id: Some("gouvinb"), user_text: "", sess_id: Some("Sway (XDG)"), sess_text: "" } } component="regreet::gui::model::Greeter" id="0x7ffdb2a9bef0"}:login_click_handler: regreet::gui::model: Saving cache to disk
2024-06-15T14:08:35.355369366+02:00  INFO update_with_view{input=Login { info: UserSessInfo { user_id: Some("gouvinb"), user_text: "", sess_id: Some("Sway (XDG)"), sess_text: "" } } component="regreet::gui::model::Greeter" id="0x7ffdb2a9bef0"}:login_click_handler: regreet::cache: Saving cache to disk
2024-06-15T14:08:35.355525737+02:00  INFO update_with_view{input=Login { info: UserSessInfo { user_id: Some("gouvinb"), user_text: "", sess_id: Some("Sway (XDG)"), sess_text: "" } } component="regreet::gui::model::Greeter" id="0x7ffdb2a9bef0"}:login_click_handler: regreet::client: Starting greetd session with command: ["sway-xdg"]
2024-06-15T14:08:35.355739298+02:00  INFO update_with_view{input=Login { info: UserSessInfo { user_id: Some("gouvinb"), user_text: "", sess_id: Some("Sway (XDG)"), sess_text: "" } } component="regreet::gui::model::Greeter" id="0x7ffdb2a9bef0"}:login_click_handler: regreet::gui::model: Session successfully started

My config

  • OS: Arch Linux x86_64
  • Kernel: 6.9.4-zen1-1-zen
  • Theme: catppuccin-mocha-lavender-standard+default [GTK2/3]
  • Icons: Papirus [GTK2/3]
/etc/greetd/config.toml
[terminal]
vt = 1

[default_session]
#command = "env XKB_DEFAULT_LAYOUT=fr cage -m last -d -s -- regreet"
command = "sway --config /etc/greetd/sway-config -d 2> /tmp/regreet-sway$(date -Ins).log"
user = "greeter"
/etc/greetd/regreet.toml
[GTK]
# Whether to use the dark theme
application_prefer_dark_theme = true

# Cursor theme name
cursor_theme_name = "Catppuccin-Mocha-Dark-Cursors"

# Font name and size
font_name = "Noto Sans 11"

# Icon theme name
icon_theme_name = "Papirus"

# GTK theme name
theme_name = "catppuccin-mocha-lavender-standard+default"

[commands]
# The command used to reboot the system
reboot = [ "systemctl", "reboot" ]

# The command used to shut down the system
poweroff = [ "systemctl", "poweroff" ]
/etc/greetd/sway-config
set $mod Mod4

input type:keyboard xkb_numlock enable
input type:keyboard xkb_layout "fr"

include /etc/sway/config.d/*

bindsym $mod+Shift+c exec bash -c "swaymsg reload && notify-send --urgency=low 'Reload success' || notify-send --urgency=critical 'Reload fail'"

exec "regreet; swaymsg exit"

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

No branches or pull requests

3 participants