lollipopkit / flutter_server_box

ServerBox - server status & toolbox app using Flutter
GNU General Public License v3.0
3.71k stars 239 forks source link

增加执行监控脚本前的延迟 #275

Closed swift-lee closed 4 months ago

swift-lee commented 4 months ago

描述BUG

因为 ssh 有自定义的登录消息(sssd),导致监控脚本的写入和执行被判断为失败,但实际上是成功的

复现步骤

按步骤正确添加服务器

期望结果

正常使用所有功能

实际结果

大多数时间无法使用首页(服务器)中的所有功能,报错 Exception: sftp worker event: SftpStatusError: No such file(code 2)。少数时间或者多次手动刷新后可以刷出来。ssh 页可以正常连接进入 ssh 终端。

截图

Screenshot_20240208-041255.jpg

Screenshot_20240208-041803.jpg

Screenshot_20240208-041809.jpg

设备

Android 11/氢OS 11,App 1.0.740 (740)

更多信息

我猜是 ssh 的消息还没完成输出就执行了监控命令导致的,如果能做到输出完毕后才执行监控脚本,比如 ssh 连接后延迟 1s 进行脚本的写入和执行,问题可能得到解决

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: Increase the delay before executing the monitoring script

lollipopkit commented 4 months ago

https://res.lolli.tech/serverbox/ServerBox-763.apk

请尝试此版本

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


https://res.lolli.tech/serverbox/ServerBox-763.apk

Please try this version

swift-lee commented 4 months ago

https://res.lolli.tech/serverbox/ServerBox-763.apk

请尝试此版本

问题解决,感谢修复

Issues-translate-bot commented 4 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


https://res.lolli.tech/serverbox/ServerBox-763.apk

Please try this version

Problem solved, thanks for the fix