Topic "Session looks like it starts, but then it closes?"

Author Message
youradds
[View user's profile]

Joined: 2014-11-25
Posts: 29
Location: UK
Hi,

I've got a really annoying issue, and I don't know what to do about it. When I start the session, it loads as the below image - but then closes!



It used to work fine, so I'm not sure what has changed. I recorded the screen and then freeze-framed it to find what the message was (as it closes too quickly, that you can't read it)

Any ideas as to what could be causing it? I've had this a couple of times before, but I then moved host and haven't had a problem since. However, its arisen its head again Sad

Cheers

Andy
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26316
Location: Prague, Czechia
Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
youradds
[View user's profile]

Joined: 2014-11-25
Posts: 29
Location: UK
Hi,

No worries. Please find it attached.

Cheers

Andy
New-COM-Vesta-Server-root@213.219.38.44-(attempt-2).log (10.61 KB) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26316
Location: Prague, Czechia
Thanks for your report.
I have sent you an email with a debug version of WinSCP to the address you have used to register on this forum.

Though note that it's clearly server-side problem. I just want to find out, why WinSCP does not report any meaningful error message.
_________________
Martin Prikryl
youradds
[View user's profile]

Joined: 2014-11-25
Posts: 29
Location: UK
Thanks. That got me on to the right track Smile

Thanks. For some reason I get a different error message in that version.

Quote:
Server sent command exit status 127
Cannot initialize SFTP protocol. Is the host running an SFTP server?


Doing a google, I came across:

https://serverfault.com/questions/770541/can-connect-via-ssh-but-not-via-sftp-exit-status-127

In particular:

Quote:
For me it was client configuration fault. 127 code means that command wasnt found. I changed WinSCP config to use "/bin/sftp-server" instead of "default" by mistake. Check your client config.


Sure enough, if I change the setting in Advanced > SFTP > SFT Server to /bin/sftp-server , then it works! Not ideal, but at least I have a work-around.

Looking at the versions, I have 5.9.5

Hopefully this will help someone else in the future Smile

Cheers

Andy
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26316
Location: Prague, Czechia
I wrote this via email already, just for the others:

Quote:
Sure enough, if I change the setting in Advanced > SFTP > SFT Server to /bin/sftp-server , then it works! Not ideal, but at least I have a work-around.


That indicates that the SSH server is misconfigured. When asked to run "sftp" server it fails (probably because its mapping for "sftp" subsystem points to an invalid path). You have worked around the misconfiugration. You should get the server fixed instead.
youradds
[View user's profile]

Joined: 2014-11-25
Posts: 29
Location: UK
Yeah, I'm still trying to work out why the server is being weird Sad As I mentioned earlier, it DID used to work fine - but after about a week, it started with this issue. So I'm not sure if it's something that I've installed that has messed it up, or something else.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License