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

登录服务器时:Exception: sftp worker event: SftpStatusError: No such file(code 2) #222

Closed
RockChinQ opened this issue Nov 25, 2023 · 3 comments

Comments

@RockChinQ
Copy link

描述BUG

不错的app,我有四个服务器都能正常连接并获取到信息,但有一个ucloud的机器无法连接,使用的是密钥连接,点击连接时出现如题的报错。

Exception: sftp worker event: SftpStatusError: No such file(code 2)

Screenshot_2023-11-26-01-46-23-985_tech.lolli.toolbox.jpg

复现步骤

如上方所描述,使用的是密钥登录,其他几个也是密钥,却能成功
Screenshot_2023-11-26-01-49-35-139_tech.lolli.toolbox-edit.jpg

期望结果

正常连接

实际结果

报错如题

截图

设备

红米Note 12 Turbo

更多信息

并不觉得是app本身问题,可能是我服务器配置有问题。因为连接 ssh 应该不涉及 sftp 服务?所以希望作者能提供有关于 连接流程、此异常发生时可能在进行的流程、在服务器上如何调试 等相关信息,谢谢。

@Issues-translate-bot
Copy link

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


DESCRIPTION BUG

It's a good app. I have four servers that can connect normally and obtain information. However, one ucloud machine cannot connect. It uses a key to connect. When I click to connect, an error message like the title appears.

Exception: sftp worker event: SftpStatusError: No such file(code 2)

Screenshot_2023-11-26-01-46-23-985_tech.lolli.toolbox.jpg

Steps to reproduce

As described above, the key is used to log in, and several others are also keys, but they can be successful.
Screenshot_2023-11-26-01-49-35-139_tech.lolli.toolbox-edit.jpg

Desired result

normal connection

actual results

Report error as title

screenshot

equipment

Redmi Note 12 Turbo

More information

I don't think it's a problem with the app itself, it may be a problem with my server configuration. Because connecting to ssh should not involve the sftp service? So I hope the author can provide relevant information about the connection process, the processes that may be going on when this exception occurs, how to debug on the server, etc. Thank you.

@lollipopkit
Copy link
Owner

如果无法通过shell写入运行serverbox所需的脚本(可能因为是fish),则会尝试通过sftp写入。

sftp无法写入可能因为家目录不存在、文件系统无法写入

@Issues-translate-bot
Copy link

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


If the scripts required to run serverbox cannot be written via the shell (perhaps because it is fish), then writing via sftp will be attempted.

sftp cannot be written because the home directory does not exist or the file system cannot be written.

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

No branches or pull requests

3 participants