shpool process hanging on ssh credentials timeout

未关闭
#155 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
rust
领域
cli

调研方向

首先,在凭据超时的情况下,分别通过 mosh 和 ssh 复现 shpool 卡死,然后检查 daemon 日志,查找此处显示的 version-header 和 MessagePack 错误。完成的标准是:正在运行的 daemon 在执行 shpool list 期间不再卡死,并且 detach、list 和 systemctl --user restart shpool 仍可使用,而无需终止进程。

由索引模型根据 Issue 内容生成。

描述

Both with mosh & ssh + shpool, I've been finding shpool process hanging. If the shpool process is directly killed, then detach + list work fine, but if I try an shpool list with the process live, the daemon hangs and a systemctl --user restart shpool is need -- aka, everything getting killed.

It appears connected with ssh credentials timing out; refreshing the credentials doesn't seem to solve the problem.

What I find in the logs is:

2024-09-25T08:27:57.783362Z ERROR ThreadId(274) handling new connection: writing version header
Caused by:
0: serializing data
1: invalid value write: error while writing multi-byte MessagePack value
2: error while writing multi-byte MessagePack value
3: Broken pipe (os error 32)

shpool version 0.7.0

主要语言
Rust
星标
2k
派生
70
平均合并
2 天 3 小时
30 天内合并 PR
6

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

shell-pool/shpool 的其他 Issue

查看 shell-pool/shpool 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。