Topic ""Cannot get real path" even though message is "Success""

Author Message
LostInP

Guest


WinSCP Version 3.8.2 (Build 330)
Local Host: Windows 2000 Professional
Remote Host: AIX 5.3.0.0

There are a couple remote directories that I'm unable to navigate into. It's not a plain vanilla permissions problem as I'm able to access the directory (and sub-directories and file) via command line ssh, sftp, etc.

Clicking on one these directories in WinSCP generates the following error.

Cannot get real path for '/rc_nfs'.
Unexpected OK response.
Error code: 0
Error message from server: Success
Request code: 16

Here are the log details...
Code:

. 2007-04-20 16:25:09.808 Changing directory to "rc_nfs".
. 2007-04-20 16:25:09.808 Getting real path for '/rc_nfs'
> 2007-04-20 16:25:09.808 Type: SSH_FXP_REALPATH, Size: 16, Number: 20752
> 2007-04-20 16:25:09.808 10,00,00,51,10,00,00,00,07,2F,72,63,5F,6E,66,73,
. 2007-04-20 16:25:09.808 Sent 20 bytes
. 2007-04-20 16:25:09.808 There are 0 bytes remaining in the send buffer
. 2007-04-20 16:25:09.808 Waiting for another 4 bytes
. 2007-04-20 16:25:09.808 Looking for incoming data
. 2007-04-20 16:25:09.855 Select result is 1
. 2007-04-20 16:25:09.855 Received 4 bytes
. 2007-04-20 16:25:09.855 Received 24 bytes
< 2007-04-20 16:25:09.855 Type: SSH_FXP_STATUS, Size: 24, Number: 20752
< 2007-04-20 16:25:09.855 65,00,00,51,10,00,00,00,00,00,00,00,07,53,75,63,63,65,73,73,00,00,00,00,
< 2007-04-20 16:25:09.855 Status/error code: 0, Message: 20752, Server: Success, Language: 
* 2007-04-20 16:25:09.855 (ECommand) Error changing directory to 'rc_nfs'.
* 2007-04-20 16:25:09.855 Cannot get real path for '/rc_nfs'.
* 2007-04-20 16:25:09.855 Unexpected OK response.
* 2007-04-20 16:25:09.855 Error code: 0
* 2007-04-20 16:25:09.855 Error message from server: Success
* 2007-04-20 16:25:09.855 Request code: 16


Any help would be much appreciated. The local admin guys (Win and UNIX) have no ideas.[/code]
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
From the log, it looks like a bug in the SFTP server.
_________________
Martin Prikryl
Nag

Guest


Hi Matrin,

When i try to create folders(ex: /test/test1/test2/) in SFTP host i am able to create the test folder and test1 in inside the test folder.

when I try to create test2 folder inside the test1 folder or changing the directory to /test/test1/ the winscp throws an error saying that can't find the real path /test/test1 and file not found error.

Please help me to resolve this.

Thanks in adavance.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Please post a full log file showing the problem.

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. For posting extensive logs you may use pastebin or similar application. 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 may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
_________________
Martin Prikryl
bstuart

Guest


. 2011-04-06 21:56:15.817 Cached directory change via "test" to "/test".
. 2011-04-06 21:56:15.817 Getting current directory name.
. 2011-04-06 21:56:15.817 Listing directory "/test".
> 2011-04-06 21:56:15.817 Type: SSH_FXP_OPENDIR, Size: 14, Number: 1291
< 2011-04-06 21:56:15.817 Type: SSH_FXP_STATUS, Size: 17, Number: 1028
. 2011-04-06 21:56:15.817 Discarding reserved response
< 2011-04-06 21:56:15.911 Type: SSH_FXP_HANDLE, Size: 11, Number: 1291
> 2011-04-06 21:56:15.911 Type: SSH_FXP_READDIR, Size: 11, Number: 1548
< 2011-04-06 21:56:15.973 Type: SSH_FXP_NAME, Size: 128, Number: 1548
> 2011-04-06 21:56:15.973 Type: SSH_FXP_READDIR, Size: 11, Number: 1804
< 2011-04-06 21:56:16.020 Type: SSH_FXP_STATUS, Size: 28, Number: 1804
< 2011-04-06 21:56:16.020 Status code: 1
> 2011-04-06 21:56:16.020 Type: SSH_FXP_CLOSE, Size: 11, Number: 2052
. 2011-04-06 21:56:17.190 Changing directory to "test1".
. 2011-04-06 21:56:17.190 Getting real path for '/test/test1'
> 2011-04-06 21:56:17.190 Type: SSH_FXP_REALPATH, Size: 20, Number: 2320
< 2011-04-06 21:56:17.190 Type: SSH_FXP_STATUS, Size: 17, Number: 2052
. 2011-04-06 21:56:17.190 Discarding reserved response
< 2011-04-06 21:56:17.252 Type: SSH_FXP_STATUS, Size: 46, Number: 2320
< 2011-04-06 21:56:17.252 Status code: 4, Message: 2320, Server: Folder not found: /test/test1, Language:
* 2011-04-06 21:56:17.252 (ECommand) Error changing directory to 'test1'.
* 2011-04-06 21:56:17.252 Cannot get real path for '/test/test1'.
* 2011-04-06 21:56:17.252 General failure (server should provide error description).
* 2011-04-06 21:56:17.252 Error code: 4
* 2011-04-06 21:56:17.252 Error message from server: Folder not found: /test/test1
* 2011-04-06 21:56:17.252 Request code: 16
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
What is the log showing?
_________________
Martin Prikryl
bstuart

Guest


prikryl wrote:
What is the log showing?


the log is showing the error you get when you try to change directories into a nested directory.

The user gets connected to their home dir, they make directory test and change to it. they then make dir test1 and when they change to it the get the error I have posted.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Can you post (or email) Debug 2 level log file showing both creation of the directory and changing into the directory?
_________________
Martin Prikryl
bstuart

Guest


prikryl wrote:
Can you post (or email) Debug 2 level log file showing both creation of the directory and changing into the directory?


I just sent you an email to the public09 address from your profile with the log attached.
Guest




prikryl wrote:
Can you post (or email) Debug 2 level log file showing both creation of the directory and changing into the directory?


Hi Martin, were you able to find anything?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Quote:
Hi Martin, were you able to find anything?

I did reply you already.
_________________
Martin Prikryl
osohare

Guest


prikryl wrote:
Quote:
Hi Martin, were you able to find anything?

I did reply you already.


Hi Martin,

I have the same problem than bstuart, here is an extract of my log file; but it is pretty much the same as bstuart's (if you need the full log please let me know where can I send it)

< 2011-05-12 13:32:21.833 Status/error code: 4, Message: 2320, Server: Folder not found: /test/ftpin, Language:
* 2011-05-12 13:32:21.833 (ECommand) Error changing directory to 'ftpin'.
* 2011-05-12 13:32:21.833 Cannot get real path for '/test/ftpin'.
* 2011-05-12 13:32:21.849 General failure (server should provide error description).
* 2011-05-12 13:32:21.849 Error code: 4
* 2011-05-12 13:32:21.849 Error message from server: Folder not found: /test/ftpin
* 2011-05-12 13:32:21.849 Request code: 16

Can you provide any advice here? Or what was the reponse to bstuart?

Thanks!
jarno

Guest


prikryl wrote:
Quote:
Hi Martin, were you able to find anything?

I did reply you already.


Hi

Could you please publish the solution for that matter...

We have this same problem Wsftp server.

I can create a subfolder to specific folder, put files into it but then....when I try to open that folder this error comes

Cannot get real path for '/xxx/xxx.
General failure (server should provide error description).
Error code: 4
Error message from server: Folder not found: /xxx/xxx
Request code: 16

Eventhough the folder exist and just could move files in to it

jarno
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
jarno wrote:
I can create a subfolder to specific folder, put files into it but then....when I try to open that folder this error comes

Cannot get real path for '/xxx/xxx.
General failure (server should provide error description).
Error code: 4
Error message from server: Folder not found: /xxx/xxx
Request code: 16

Eventhough the folder exist and just could move files in to it

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate 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 may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
_________________
Martin Prikryl
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