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

Advertisement

LostInP
Guest

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

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...
. 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]

Reply with quote

Advertisement

Nag
Guest

Can't find the real path

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,430
Location:
Prague, Czechia

Re: Can't find the real path

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.

Reply with quote

bstuart
Guest

I am having the same problem as NAG

. 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

Reply with quote

Advertisement

bstuart
Guest

Re: I am having the same problem as NAG

martin 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.

Reply with quote

martin
Site Admin
martin avatar

Re: I am having the same problem as NAG

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

Reply with quote

bstuart
Guest

Re: I am having the same problem as NAG

martin 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.

Reply with quote

Advertisement

Guest

Re: I am having the same problem as NAG

martin 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?

Reply with quote

osohare
Guest

Re: I am having the same problem as NAG

martin wrote:

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!

Reply with quote

jarno
Guest

Re: I am having the same problem as NAG

martin wrote:

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,430
Location:
Prague, Czechia

Re: I am having the same problem as NAG

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.

Reply with quote

crystal_clear
Guest

Cannot list subdirectory

I have similar problem. It shows error code 4 when trying to list a subdirectory.
  • sftp_log.log (160.77 KB, Private file)

Reply with quote

martin
Site Admin
martin avatar

Re: Cannot list subdirectory

crystal_clear wrote:

I have similar problem. It shows error code 4 when trying to list a subdirectory.
Can you enter that directory with any other SFTP client? If you can, please post its log file.

Reply with quote

Guest

Re: Cannot list subdirectory

martin wrote:

crystal_clear wrote:

I have similar problem. It shows error code 4 when trying to list a subdirectory.
Can you enter that directory with any other SFTP client? If you can, please post its log file.

Yes. Please find the log from filezilla in the attachment.
  • filezilla.log (1.43 KB, Private file)

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Cannot list subdirectory

Anonymous wrote:

Yes. Please find the log from filezilla in the attachment.
OK, FileZilla is irrelevant here, as it ignores the part of SFTP specification about using SSH_FXP_REALPATH request. What about OpenSSH sftp client?

Reply with quote

Advertisement

You can post new topics in this forum