-
-
Notifications
You must be signed in to change notification settings - Fork 678
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
Panic when ssh session terminates #1532
Comments
Hey @noyez, |
my apologies, but how does one run without plugins? i started with an empty config. and the resulting log is below.
|
With:
You can look at the default layout that is loaded.
|
Still got crash, this time i compiled it from source to generate a debug binary. I used the empty layout.
|
Thank you for checking! |
@noyez it would be great if you want to take this on! Did a little digging, the server is closing because when the client panics, this: zellij/zellij-client/src/lib.rs Lines 205 to 215 in 29332ca
is causing this code: zellij/zellij-utils/src/errors.rs Line 98 in 29332ca
to send a I guess when the ssh connection closes and the read to stdin fails, the client should simply not panic and shutdown gracefully? @a-kenji maybe this needs to take into account the |
@tlinford,
I think that would be a good solution. |
Thanks for the guidance. i'll give it a go over the next few days. |
It turns out this is not as reproducible as i hoped. when i reported it, my sessions were always lost when the ssh connection terminates every time. My VM rebooted at some point and now, It still happens from time to time, but every time. There must be some other condition to trigger this. i'll keep on trying to reproduce it. It surprised me that no one else has reported this happening, so perhaps its somehow unique to my ssh connections or tasks. I'm going to keep digging. |
I assume, I experience a similar problem:
|
I'm not sure this is a new one. Zellij became stuck, not responding to input.
|
Same thing here. SSH disconnected and once connected again zellij is sleeping and all processes in it too. Zellij doesn't respond anymore to any command (I tried: Here is the last part of the log:
|
I think the error in the post above me was fixed in v0.31.4: Not sure about the hangs or other server exits. |
Thanks @tlinford!
This happens here: zellij/zellij-client/src/lib.rs Line 359 in 31d7412
Why do we do this? Shouldn't we leave the server alone when the client crashes? I traced this line via git blame to this commit: I am not familiar with the code at this old revision, but to me it looks like |
Making a release for this would be really appreciated. |
Hi -- love your project, thank you! i'm trying to figure out the bug below. If you can point in a general direction in the code, i could fix. I am very familiar with rust.
Basic information
zellij --version
: 0.30.0tput lines
: 62tput cols
: 242uname -av
orver
(Windows): Linux prometheus-vm 5.4.0-120-generic #136-Ubuntu SMP Fri Jun 10 13:40:48 UTC 2022 x86_64 x86_64 x86_64 GNU/LinuxList of programs you interact with as,
PROGRAM --version
:Further information
zellij --debug
.). This also happens if you put ssh to sleep via (^z) and kill session.Specifics about my systems (not sure any info is useful)
zellij.log (using --debug)
The text was updated successfully, but these errors were encountered: