[GH-ISSUE #814] SFTP not showing remote host #474

Closed
opened 2026-02-26 23:59:40 +03:00 by kerem · 11 comments
Owner

Originally created by @x0rsw1tch on GitHub (Oct 18, 2018).
Original GitHub issue: https://github.com/electerm/electerm/issues/814

Electerm version: 0.24.39

Operating system(linux, macos, or windows?): Windows

Expected Behavior

When an SSH session is created, I can see the directory and file listing in the right column.

Current Behavior

When selecting the SFTP tab, nothing is displayed in the right column and an error is shown.

Error: No such file
    at t.once (http://localhost:3000/js/electerm.0.24.39-39e96d0d2c834eb231dd160d11a5db3cabe5370a.js:21:792032)
    at WebSocket.o (http://localhost:3000/js/electerm.0.24.39-39e96d0d2c834eb231dd160d11a5db3cabe5370a.js:21:757160)

Possible Solution

Steps to Reproduce

  1. Create an SSH session using a bookmark, SSH session is displayed as usual
  2. An error message is display once the session is open
  3. Clicking on the SFTP tab shows an empty right column

image

image

Context (Environment)

On multiple computers connecting to different hosts, the SFTP functionality has not worked

Detailed Description

Suggestions?

Originally created by @x0rsw1tch on GitHub (Oct 18, 2018). Original GitHub issue: https://github.com/electerm/electerm/issues/814 <!--- Provide some basic info --> ## Electerm version: 0.24.39 ## Operating system(linux, macos, or windows?): Windows ## Expected Behavior <!--- Tell me what should happen --> When an SSH session is created, I can see the directory and file listing in the right column. ## Current Behavior <!--- Tell me what happens instead of the expected behavior --> When selecting the SFTP tab, nothing is displayed in the right column and an error is shown. ``` Error: No such file at t.once (http://localhost:3000/js/electerm.0.24.39-39e96d0d2c834eb231dd160d11a5db3cabe5370a.js:21:792032) at WebSocket.o (http://localhost:3000/js/electerm.0.24.39-39e96d0d2c834eb231dd160d11a5db3cabe5370a.js:21:757160) ``` ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. Create an SSH session using a bookmark, SSH session is displayed as usual 2. An error message is display once the session is open 3. Clicking on the SFTP tab shows an empty right column ![image](https://user-images.githubusercontent.com/9543257/47170332-b7e57200-d2d3-11e8-886a-f197403b9740.png) ![image](https://user-images.githubusercontent.com/9543257/47170453-0c88ed00-d2d4-11e8-854e-0355a56cf8f2.png) ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> On multiple computers connecting to different hosts, the SFTP functionality has not worked ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> ## Suggestions? <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too -->
kerem 2026-02-26 23:59:40 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@zxdong262 commented on GitHub (Oct 18, 2018):

@x0rsw1tch Thank you for the feedbacks!
What is your ssh host's OS, linux or windows?

<!-- gh-comment-id:431198288 --> @zxdong262 commented on GitHub (Oct 18, 2018): @x0rsw1tch Thank you for the feedbacks! What is your ssh host's OS, linux or windows?
Author
Owner

@zxdong262 commented on GitHub (Oct 19, 2018):

https://github.com/electerm/electerm/issues/791

<!-- gh-comment-id:431247527 --> @zxdong262 commented on GitHub (Oct 19, 2018): https://github.com/electerm/electerm/issues/791
Author
Owner

@x0rsw1tch commented on GitHub (Oct 19, 2018):

Two SSH hosts were CentOS 7.2, and one was Linux Mint 17.3. I did see #791, but the error message is different, so safe bet to report

<!-- gh-comment-id:431250940 --> @x0rsw1tch commented on GitHub (Oct 19, 2018): Two SSH hosts were CentOS 7.2, and one was Linux Mint 17.3. I did see #791, but the error message is different, so safe bet to report
Author
Owner

@zxdong262 commented on GitHub (Oct 19, 2018):

@x0rsw1tch
Might be some situation I never know, can you provide ls -al output for server home folder, or the root folder for sftp is special?

<!-- gh-comment-id:431253714 --> @zxdong262 commented on GitHub (Oct 19, 2018): @x0rsw1tch Might be some situation I never know, can you provide `ls -al` output for server home folder, or the root folder for sftp is special?
Author
Owner

@x0rsw1tch commented on GitHub (Oct 19, 2018):

Nothing special from what I can see. SFTP root should just be ~. I should mention SFTP does work with other clients (FileZilla, MobaXTerm) on the same hosts.

image

<!-- gh-comment-id:431264514 --> @x0rsw1tch commented on GitHub (Oct 19, 2018): Nothing special from what I can see. SFTP root should just be ~. I should mention SFTP does work with other clients (FileZilla, MobaXTerm) on the same hosts. ![image](https://user-images.githubusercontent.com/9543257/47202240-9ffd0500-d34a-11e8-9432-4ff381bbd84d.png)
Author
Owner

@zxdong262 commented on GitHub (Oct 19, 2018):

What happens if you click the eye icon(show hidden files)?

<!-- gh-comment-id:431275031 --> @zxdong262 commented on GitHub (Oct 19, 2018): What happens if you click the eye icon(show hidden files)?
Author
Owner

@x0rsw1tch commented on GitHub (Oct 19, 2018):

Hmm, that worked, but only on one host, and wasn't able to navigate to / on any of the hosts. The hosts where it doesn't work at all have Symlinks in them. Maybe that's the issue?

<!-- gh-comment-id:431430538 --> @x0rsw1tch commented on GitHub (Oct 19, 2018): Hmm, that worked, but only on one host, and wasn't able to navigate to / on any of the hosts. The hosts where it doesn't work at all have Symlinks in them. Maybe that's the issue?
Author
Owner

@zxdong262 commented on GitHub (Oct 19, 2018):

@x0rsw1tch I thought it was about symlinks too, so I tested by creating some symbolic link(ln -s xxx yyy), no problem in my ubuntu server, I think there might be some symlink situation I do not know, can you provide some info about that?

<!-- gh-comment-id:431521622 --> @zxdong262 commented on GitHub (Oct 19, 2018): @x0rsw1tch I thought it was about symlinks too, so I tested by creating some symbolic link(`ln -s xxx yyy`), no problem in my ubuntu server, I think there might be some symlink situation I do not know, can you provide some info about that?
Author
Owner

@x0rsw1tch commented on GitHub (Oct 20, 2018):

@zxdong262

Not much going on. Looks like the symlinks are just pointing to Tomcat directories, as a shortcut. Originally, they were owned by root:root, so I changed the owner and group to match the rest of the files. Unfortunately, it still resulted in the same error. Here is the directory listing on this host, if it helps.

image

<!-- gh-comment-id:431549401 --> @x0rsw1tch commented on GitHub (Oct 20, 2018): @zxdong262 Not much going on. Looks like the symlinks are just pointing to Tomcat directories, as a shortcut. Originally, they were owned by root:root, so I changed the owner and group to match the rest of the files. Unfortunately, it still resulted in the same error. Here is the directory listing on this host, if it helps. ![image](https://user-images.githubusercontent.com/9543257/47251604-51f80800-d403-11e8-8cab-29bb5716031f.png)
Author
Owner

@zxdong262 commented on GitHub (Oct 20, 2018):

I know it now, must be windows related, in linux or mac it works fine

<!-- gh-comment-id:431555877 --> @zxdong262 commented on GitHub (Oct 20, 2018): I know it now, must be windows related, in linux or mac it works fine
Author
Owner

@zxdong262 commented on GitHub (Oct 20, 2018):

Released new version with bug fixes

<!-- gh-comment-id:431568350 --> @zxdong262 commented on GitHub (Oct 20, 2018): Released new version with bug fixes
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#474
No description provided.