Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

kmcdermott wrote:

what's that mean to a rookie like me?

It means that you cannot use WinSCP with the server, unless they fix it.
kmcdermott

martin wrote:

Well, most (if not all) other SFTP clients does not follow SFTP specification. They does not ask SFTP server to canonize a path before actually using it. WinSCP does that and that is the operation that fails.


what's that mean to a rookie like me?

:?:
martin

kmcdermott wrote:

Like I said, other clients can connect, just so happens WinSCP is the one I have running and I can't see it right.

Well, most (if not all) other SFTP clients does not follow SFTP specification. They does not ask SFTP server to canonize a path before actually using it. WinSCP does that and that is the operation that fails.
kmcdermott

I have everything enabled:

<invalid hyperlink removed by admin>

<invalid hyperlink removed by admin>

Like I said, other clients can connect, just so happens WinSCP is the one I have running and I can't see it right.

I even went as far yesterday to completely remove all security settings in MS, and no difference.

:?: [/img]
martin

kmcdermott wrote:

The second half of my original post is all I get on the server in the event logs. Where else should I be looking?

That's strange that the server does not log anything upon returning an error to the client. Isn't it possible to increase logging level on the server? Otherwise you should seek a help with the server vendor.
kmcdermott

The second half of my original post is all I get on the server in the event logs. Where else should I be looking?
martin

You may also be able to find something useful in the log file of the server.
kmcdermott

would love to, but it can't see the outside world yet.

I'm connecting to it over our internal LAN

:(
martin

Re: error getting name of current remote directory

May I have a test account on the server?
kmcdermott

error getting name of current remote directory

Hi all

Went through as many searches as I could find on this error, but no luck.

Client side:
XP SP2
WinSCP 4.04

Server side:
2003 R2 SP2
WRQ/Reflections Secure IT/FSecure

Can connect properly through FSecure client and FileZilla over SFTP, but "error getting name of current remote directory" from WinSCP 3.81 and 4.4

Log:
. 2007-10-10 11:01:47.676 --------------------------------------------------------------------------

. 2007-10-10 11:01:47.676 WinSCP Version 4.0.4 (Build 346) (OS 5.1.2600 Service Pack 2)
. 2007-10-10 11:01:47.676 Login time: Wednesday, October 10, 2007 11:01:47 AM
. 2007-10-10 11:01:47.676 --------------------------------------------------------------------------
. 2007-10-10 11:01:47.676 Session name: user@server
. 2007-10-10 11:01:47.676 Host name: 172.16.13.189 (Port: 22)
. 2007-10-10 11:01:47.676 User name: user (Password: No, Key file: No)
. 2007-10-10 11:01:47.676 Tunnel: No
. 2007-10-10 11:01:47.676 Transfer Protocol: SFTP
. 2007-10-10 11:01:47.676 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2007-10-10 11:01:47.676 Proxy: none
. 2007-10-10 11:01:47.676 SSH protocol version: 2; Compression: No
. 2007-10-10 11:01:47.676 Agent forwarding: No; TIS/CryptoCard: No; KI: Yes; GSSAPI: No
. 2007-10-10 11:01:47.676 Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. 2007-10-10 11:01:47.676 SSH Bugs: -,-,-,-,-,-,-,-
. 2007-10-10 11:01:47.676 SFTP Bugs: -,-,-
. 2007-10-10 11:01:47.676 Return code variable: Autodetect; Lookup user groups: Yes
. 2007-10-10 11:01:47.676 Shell: default, EOL: 0
. 2007-10-10 11:01:47.676 Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. 2007-10-10 11:01:47.676 Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. 2007-10-10 11:01:47.676 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2007-10-10 11:01:47.676 Cache directory changes: Yes, Permanent: Yes
. 2007-10-10 11:01:47.676 DST mode: 1
. 2007-10-10 11:01:47.676 --------------------------------------------------------------------------
. 2007-10-10 11:01:47.801 Looking up host "172.16.13.189"
. 2007-10-10 11:01:47.801 Connecting to 172.16.13.189 port 22
. 2007-10-10 11:01:47.911 Server version: SSH-2.0-WRQReflectionForSecureIT_6.1 Build 21
. 2007-10-10 11:01:47.911 We claim version: SSH-2.0-WinSCP_release_4.0.4
. 2007-10-10 11:01:47.911 Using SSH protocol version 2
. 2007-10-10 11:01:47.911 Using Diffie-Hellman with standard group "group14"
. 2007-10-10 11:01:47.911 Doing Diffie-Hellman key exchange
. 2007-10-10 11:01:48.301 Host key fingerprint is:
. 2007-10-10 11:01:48.317 ssh-dss 1024 d6:6c:e8:8b:71:f1:13:fc:f3:80:69:8e:12:0d:78:93
. 2007-10-10 11:01:48.317 Initialised AES-256 client->server encryption
. 2007-10-10 11:01:48.317 Initialised HMAC-SHA1 client->server MAC algorithm
. 2007-10-10 11:01:48.317 Initialised AES-256 server->client encryption
. 2007-10-10 11:01:48.317 Initialised HMAC-SHA1 server->client MAC algorithm
! 2007-10-10 11:01:48.489 Using username "user".

! 2007-10-10 11:01:50.020 Using keyboard-interactive authentication.
! 2007-10-10 11:01:50.208 Password authentication
. 2007-10-10 11:01:50.208 Session password prompt (user's password: )
. 2007-10-10 11:01:54.536 Access granted
. 2007-10-10 11:01:54.536 Opened channel for session
. 2007-10-10 11:01:54.614 Started a shell/command
. 2007-10-10 11:01:54.614 --------------------------------------------------------------------------
. 2007-10-10 11:01:54.614 Using SFTP protocol.
. 2007-10-10 11:01:54.614 Doing startup conversation with host.
> 2007-10-10 11:01:54.630 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2007-10-10 11:01:54.661 Type: SSH_FXP_VERSION, Size: 34, Number: -1
. 2007-10-10 11:01:54.661 SFTP version 3 negotiated.
. 2007-10-10 11:01:54.661 Unknown server extension newline@vandyke.com=0x0D0A
. 2007-10-10 11:01:54.661 We believe the server has signed timestamps bug
. 2007-10-10 11:01:54.661 We will use UTF-8 strings for status messages only
. 2007-10-10 11:01:54.677 Getting current directory name.
. 2007-10-10 11:01:54.677 Getting real path for '.'
> 2007-10-10 11:01:54.677 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2007-10-10 11:01:54.677 Type: SSH_FXP_STATUS, Size: 44, Number: 16
< 2007-10-10 11:01:54.677 Status/error code: 4, Message: 16, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:01:54.677 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:01:54.677 Cannot get real path for '.'.
* 2007-10-10 11:01:54.677 General failure (server should provide error description).
* 2007-10-10 11:01:54.677 Error code: 4
* 2007-10-10 11:01:54.677 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:01:54.677 Request code: 16
. 2007-10-10 11:01:55.677 Getting current directory name.
. 2007-10-10 11:01:55.677 Getting real path for '.'
> 2007-10-10 11:01:55.677 Type: SSH_FXP_REALPATH, Size: 10, Number: 272
< 2007-10-10 11:01:55.677 Type: SSH_FXP_STATUS, Size: 44, Number: 272
< 2007-10-10 11:01:55.677 Status/error code: 4, Message: 272, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:01:55.677 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:01:55.677 Cannot get real path for '.'.
* 2007-10-10 11:01:55.677 General failure (server should provide error description).
* 2007-10-10 11:01:55.677 Error code: 4
* 2007-10-10 11:01:55.677 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:01:55.677 Request code: 16
. 2007-10-10 11:01:56.067 Getting current directory name.
. 2007-10-10 11:01:56.067 Getting real path for '.'
> 2007-10-10 11:01:56.067 Type: SSH_FXP_REALPATH, Size: 10, Number: 528
< 2007-10-10 11:01:56.067 Type: SSH_FXP_STATUS, Size: 44, Number: 528
< 2007-10-10 11:01:56.067 Status/error code: 4, Message: 528, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:01:56.067 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:01:56.067 Cannot get real path for '.'.
* 2007-10-10 11:01:56.067 General failure (server should provide error description).
* 2007-10-10 11:01:56.067 Error code: 4
* 2007-10-10 11:01:56.067 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:01:56.067 Request code: 16
. 2007-10-10 11:01:56.442 Listing directory "".
> 2007-10-10 11:01:56.442 Type: SSH_FXP_OPENDIR, Size: 9, Number: 779
< 2007-10-10 11:01:56.442 Type: SSH_FXP_HANDLE, Size: 17, Number: 779
> 2007-10-10 11:01:56.442 Type: SSH_FXP_READDIR, Size: 17, Number: 1036
< 2007-10-10 11:01:56.458 Type: SSH_FXP_NAME, Size: 207, Number: 1036
> 2007-10-10 11:01:56.458 Type: SSH_FXP_READDIR, Size: 17, Number: 1292
< 2007-10-10 11:01:56.458 Type: SSH_FXP_STATUS, Size: 22, Number: 1292
< 2007-10-10 11:01:56.458 Status/error code: 1
> 2007-10-10 11:01:56.458 Type: SSH_FXP_CLOSE, Size: 17, Number: 1540
. 2007-10-10 11:01:56.458 Startup conversation with host finished.
. 2007-10-10 11:01:56.708 Getting current directory name.
. 2007-10-10 11:01:56.708 Getting real path for '.'
> 2007-10-10 11:01:56.708 Type: SSH_FXP_REALPATH, Size: 10, Number: 1808
< 2007-10-10 11:01:56.708 Type: SSH_FXP_STATUS, Size: 21, Number: 1540
. 2007-10-10 11:01:56.708 Discarding reserved response
< 2007-10-10 11:01:56.708 Type: SSH_FXP_STATUS, Size: 44, Number: 1808
< 2007-10-10 11:01:56.708 Status/error code: 4, Message: 1808, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:01:56.708 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:01:56.708 Cannot get real path for '.'.
* 2007-10-10 11:01:56.708 General failure (server should provide error description).
* 2007-10-10 11:01:56.708 Error code: 4
* 2007-10-10 11:01:56.708 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:01:56.708 Request code: 16
. 2007-10-10 11:01:57.880 Getting current directory name.
. 2007-10-10 11:01:57.880 Getting real path for '.'
> 2007-10-10 11:01:57.880 Type: SSH_FXP_REALPATH, Size: 10, Number: 2064
< 2007-10-10 11:01:57.880 Type: SSH_FXP_STATUS, Size: 44, Number: 2064
< 2007-10-10 11:01:57.880 Status/error code: 4, Message: 2064, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:01:57.895 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:01:57.895 Cannot get real path for '.'.
* 2007-10-10 11:01:57.895 General failure (server should provide error description).
* 2007-10-10 11:01:57.895 Error code: 4
* 2007-10-10 11:01:57.895 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:01:57.895 Request code: 16
. 2007-10-10 11:01:58.677 Getting current directory name.
. 2007-10-10 11:01:58.677 Getting real path for '.'
> 2007-10-10 11:01:58.677 Type: SSH_FXP_REALPATH, Size: 10, Number: 2320
< 2007-10-10 11:01:58.677 Type: SSH_FXP_STATUS, Size: 44, Number: 2320
< 2007-10-10 11:01:58.677 Status/error code: 4, Message: 2320, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:01:58.677 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:01:58.677 Cannot get real path for '.'.
* 2007-10-10 11:01:58.677 General failure (server should provide error description).
* 2007-10-10 11:01:58.677 Error code: 4
* 2007-10-10 11:01:58.677 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:01:58.677 Request code: 16
. 2007-10-10 11:01:59.161 Getting current directory name.
. 2007-10-10 11:01:59.161 Getting real path for '.'
> 2007-10-10 11:01:59.161 Type: SSH_FXP_REALPATH, Size: 10, Number: 2576
< 2007-10-10 11:01:59.161 Type: SSH_FXP_STATUS, Size: 44, Number: 2576
< 2007-10-10 11:01:59.161 Status/error code: 4, Message: 2576, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:01:59.161 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:01:59.161 Cannot get real path for '.'.
* 2007-10-10 11:01:59.161 General failure (server should provide error description).
* 2007-10-10 11:01:59.161 Error code: 4
* 2007-10-10 11:01:59.161 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:01:59.161 Request code: 16
. 2007-10-10 11:01:59.770 Getting current directory name.
. 2007-10-10 11:01:59.770 Getting real path for '.'
> 2007-10-10 11:01:59.770 Type: SSH_FXP_REALPATH, Size: 10, Number: 2832
< 2007-10-10 11:01:59.770 Type: SSH_FXP_STATUS, Size: 44, Number: 2832
< 2007-10-10 11:01:59.770 Status/error code: 4, Message: 2832, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:01:59.770 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:01:59.770 Cannot get real path for '.'.
* 2007-10-10 11:01:59.770 General failure (server should provide error description).
* 2007-10-10 11:01:59.770 Error code: 4
* 2007-10-10 11:01:59.770 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:01:59.770 Request code: 16
. 2007-10-10 11:02:00.442 Getting current directory name.
. 2007-10-10 11:02:00.442 Getting real path for '.'
> 2007-10-10 11:02:00.442 Type: SSH_FXP_REALPATH, Size: 10, Number: 3088
< 2007-10-10 11:02:00.442 Type: SSH_FXP_STATUS, Size: 44, Number: 3088
< 2007-10-10 11:02:00.442 Status/error code: 4, Message: 3088, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:02:00.442 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:02:00.442 Cannot get real path for '.'.
* 2007-10-10 11:02:00.442 General failure (server should provide error description).
* 2007-10-10 11:02:00.442 Error code: 4
* 2007-10-10 11:02:00.442 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:02:00.442 Request code: 16
. 2007-10-10 11:02:01.145 Getting current directory name.
. 2007-10-10 11:02:01.145 Getting real path for '.'
> 2007-10-10 11:02:01.145 Type: SSH_FXP_REALPATH, Size: 10, Number: 3344
< 2007-10-10 11:02:01.145 Type: SSH_FXP_STATUS, Size: 44, Number: 3344
< 2007-10-10 11:02:01.145 Status/error code: 4, Message: 3344, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:02:01.145 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:02:01.161 Cannot get real path for '.'.
* 2007-10-10 11:02:01.161 General failure (server should provide error description).
* 2007-10-10 11:02:01.161 Error code: 4
* 2007-10-10 11:02:01.161 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:02:01.161 Request code: 16
. 2007-10-10 11:02:01.661 Getting current directory name.
. 2007-10-10 11:02:01.661 Getting real path for '.'
> 2007-10-10 11:02:01.661 Type: SSH_FXP_REALPATH, Size: 10, Number: 3600
< 2007-10-10 11:02:01.661 Type: SSH_FXP_STATUS, Size: 44, Number: 3600
< 2007-10-10 11:02:01.661 Status/error code: 4, Message: 3600, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:02:01.661 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:02:01.661 Cannot get real path for '.'.
* 2007-10-10 11:02:01.661 General failure (server should provide error description).
* 2007-10-10 11:02:01.661 Error code: 4
* 2007-10-10 11:02:01.661 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:02:01.661 Request code: 16
. 2007-10-10 11:02:02.692 Getting current directory name.
. 2007-10-10 11:02:02.692 Getting real path for '.'
> 2007-10-10 11:02:02.692 Type: SSH_FXP_REALPATH, Size: 10, Number: 3856
< 2007-10-10 11:02:02.692 Type: SSH_FXP_STATUS, Size: 44, Number: 3856
< 2007-10-10 11:02:02.692 Status/error code: 4, Message: 3856, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:02:02.692 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:02:02.692 Cannot get real path for '.'.
* 2007-10-10 11:02:02.692 General failure (server should provide error description).
* 2007-10-10 11:02:02.692 Error code: 4
* 2007-10-10 11:02:02.692 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:02:02.692 Request code: 16
. 2007-10-10 11:02:05.895 Getting current directory name.
. 2007-10-10 11:02:05.895 Getting real path for '.'
> 2007-10-10 11:02:05.895 Type: SSH_FXP_REALPATH, Size: 10, Number: 4112
< 2007-10-10 11:02:05.895 Type: SSH_FXP_STATUS, Size: 44, Number: 4112
< 2007-10-10 11:02:05.895 Status/error code: 4, Message: 4112, Server: syserr: No error, file: ., Language: en
* 2007-10-10 11:02:05.895 (ECommand) Error getting name of current remote directory.
* 2007-10-10 11:02:05.895 Cannot get real path for '.'.
* 2007-10-10 11:02:05.895 General failure (server should provide error description).
* 2007-10-10 11:02:05.895 Error code: 4
* 2007-10-10 11:02:05.895 Error message from server (en): syserr: No error, file: .
* 2007-10-10 11:02:05.895 Request code: 16
. 2007-10-10 11:02:06.083 Closing connection.


Keeps saying server "should provide error description" but all that's in the app log:

Event Type:   Information

Event Source:   WRQ Reflection for Secure IT Server
Event Category:   None
Event ID:   0
Date:      10/10/2007
Time:      10:01:48 AM
User:      server\user
Computer:   server
Description:
User user, coming from mymachine.com, authenticated.

Event Type:   Information
Event Source:   WRQ Reflection for Secure IT SFTP Server
Event Category:   None
Event ID:   0
Date:      10/10/2007
Time:      10:01:48 AM
User:      server\user
Computer:   server
Description:
SFTP-server started by user

Event Type:   Information
Event Source:   WRQ Reflection for Secure IT SFTP Server
Event Category:   None
Event ID:   0
Date:      10/10/2007
Time:      10:01:50 AM
User:      server\user
Computer:   server
Description:
Opening directory `d:\mwsftp\var\ajp\user\'

Event Type:   Information
Event Source:   WRQ Reflection for Secure IT Server
Event Category:   None
Event ID:   0
Date:      10/10/2007
Time:      10:02:00 AM
User:      server\user
Computer:   server
Description:
Local disconnected: Connection closed.

Event Type:   Information
Event Source:   WRQ Reflection for Secure IT Server
Event Category:   None
Event ID:   0
Date:      10/10/2007
Time:      10:02:00 AM
User:      server\user
Computer:   server
Description:
connection lost: 'Connection closed.'

Event Type:   Information
Event Source:   WRQ Reflection for Secure IT SFTP Server
Event Category:   None
Event ID:   0
Date:      10/10/2007
Time:      10:02:00 AM
User:      server\user
Computer:   server
Description:
SFTP-server stopped by user


I have this running on a test system, and all is well. Installed to production system, and things are muckety.

What should I be looking at next?

thanks in advance

Kevin