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

systemd-logind does not terminate git+ssh sessions correctly #27210

Closed
SjonHortensius opened this issue Apr 11, 2023 · 3 comments
Closed

systemd-logind does not terminate git+ssh sessions correctly #27210

SjonHortensius opened this issue Apr 11, 2023 · 3 comments
Labels
bug 🐛 Programming errors, that need preferential fixing duplicate login

Comments

@SjonHortensius
Copy link
Contributor

systemd version the issue has been seen with

253

Used distribution

archlinux

Linux kernel version used

6.2.2-arch1-1

CPU architectures issue was seen on

x86_64

Component

loginctl

Expected behaviour you didn't see

git through ssh sessions should be closed but aren't

Unexpected behaviour you saw

loginctl|wc -l shows 8192 sessions, most of which are owned by the git user. Example of a session:

229307 - git (998)
           Since: Wed 2023-04-05 03:10:11 CEST; 6 days ago
          Leader: 3114376
          Remote: xxxx
         Service: sshd; type tty; class user
           State: closing
            Unit: session-229307.scope

Apr 05 03:10:11 systemd[1]: Started Session 229307 of User git.
Apr 05 03:10:11 sshd[3114378]: Received disconnect from xxxx port 54156:11: disconnected by user
Apr 05 03:10:11 sshd[3114378]: Disconnected from user git xxxx port 54156
Apr 05 03:10:11 systemd[1]: session-229307.scope: Deactivated successfully.

Steps to reproduce the problem

this will happen after roughly 3 days of normal usage. Fixed by restarting systemd-logind

Additional program output to the terminal or log subsystem illustrating the issue

No response

@SjonHortensius SjonHortensius added the bug 🐛 Programming errors, that need preferential fixing label Apr 11, 2023
@SjonHortensius SjonHortensius changed the title userdbd does not terminate git+ssh sessions correctly systemd-logind does not terminate git+ssh sessions correctly Apr 11, 2023
@YHNdnzj
Copy link
Member

YHNdnzj commented Apr 11, 2023

Might be a duplicate of #26744?

@SjonHortensius
Copy link
Contributor Author

Might be a duplicate of #26744?

agreed, they look similar and will very likely have the same root-cause. Should I close this one as a dup?

@YHNdnzj
Copy link
Member

YHNdnzj commented Apr 11, 2023

Closing this as a duplicate now. Feel free to ask for reopen if things turned out otherwise.

@YHNdnzj YHNdnzj closed this as not planned Won't fix, can't repro, duplicate, stale Apr 11, 2023
@mrc0mmand mrc0mmand added login and removed logind labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Programming errors, that need preferential fixing duplicate login
Development

No branches or pull requests

4 participants