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

Re: Cannot get real path for '.' ...sometimes

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

To generate log file, set Session.SessionLogPath. 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.
Guest

Re: Cannot get real path for '.' ...sometimes

Anonymous wrote:

martin wrote:

Are the sessions otherwise the same?
Can you attach full log files?
Do you have an access to server-side logs?


Hi,
I got the same problem.
The log file show me as follow :

Getting real path for '.'
...
Error getting name of current remote directory.

I am using .net component.
I hit this error when open the session
How can I define the remote directory before start the session?


Can anyone help me on this?
Guest

Re: Cannot get real path for '.' ...sometimes

martin wrote:

Are the sessions otherwise the same?
Can you attach full log files?
Do you have an access to server-side logs?


Hi,
I got the same problem.
The log file show me as follow :

Getting real path for '.'
...
Error getting name of current remote directory.

I am using .net component.
I hit this error when open the session
How can I define the remote directory before start the session?
martin

Re: Cannot get real path for '.' ...sometimes

Are the sessions otherwise the same?
Can you attach full log files?
Do you have an access to server-side logs?
4MyPeople

Cannot get real path for '.' ...sometimes

Hi all,

The strange thing with the following problem:
Everything is full automatic, most of the time it works...but sometimes it doesn't

When it works:

. 2012-07-31 10:00:04.664 Using SFTP protocol.
. 2012-07-31 10:00:04.664 Doing startup conversation with host.
> 2012-07-31 10:00:04.664 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2012-07-31 10:00:04.680 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2012-07-31 10:00:04.680 SFTP version 3 negotiated.
. 2012-07-31 10:00:04.680 We believe the server has signed timestamps bug
. 2012-07-31 10:00:04.680 We will use UTF-8 strings for status messages only
. 2012-07-31 10:00:04.680 Getting current directory name.
. 2012-07-31 10:00:04.680 Getting real path for '.'
> 2012-07-31 10:00:04.680 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2012-07-31 10:00:04.680 Type: SSH_FXP_NAME, Size: 95, Number: 16
. 2012-07-31 10:00:04.680 Real path is '/'
. 2012-07-31 10:00:04.680 Startup conversation with host finished.

When it doesn't:

. 2012-08-01 10:00:03.722 Using SFTP protocol.
. 2012-08-01 10:00:03.722 Doing startup conversation with host.
> 2012-08-01 10:00:03.722 Type: SSH_FXP_INIT, Size: 5, Number: -1
< 2012-08-01 10:00:03.738 Type: SSH_FXP_VERSION, Size: 5, Number: -1
. 2012-08-01 10:00:03.738 SFTP version 3 negotiated.
. 2012-08-01 10:00:03.738 We believe the server has signed timestamps bug
. 2012-08-01 10:00:03.738 We will use UTF-8 strings for status messages only
. 2012-08-01 10:00:03.738 Getting current directory name.
. 2012-08-01 10:00:03.738 Getting real path for '.'
> 2012-08-01 10:00:03.738 Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< 2012-08-01 10:00:03.753 Type: SSH_FXP_STATUS, Size: 26, Number: 16
< 2012-08-01 10:00:03.753 Status code: 4, Message: 16, Server: Failure, Language: en
* 2012-08-01 10:00:03.863 (ECommand) Error getting name of current remote directory.
* 2012-08-01 10:00:03.863 Cannot get real path for '.'.
* 2012-08-01 10:00:03.863 General failure (server should provide error description).
* 2012-08-01 10:00:03.863 Error code: 4
* 2012-08-01 10:00:03.863 Error message from server (en): Failure
* 2012-08-01 10:00:03.863 Request code: 16
. 2012-08-01 10:00:03.878 Startup conversation with host finished.

Any idea?

A box of real Belgian chocolate for the 1st working solution (or Belgian beer)

Thks