Topic "WinSCP will not open a symbolic link"

Author Message
Guest




I have created a symbolic link in home directory. The symbolic link is to another directory. when i attempt to navigate to the directory, i get an error saying the file cannot be open.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
You do have enabled resolving symlinks? Also what protocol do you use? If SFTP, what version?
_________________
Martin Prikryl
maniac

Guest


Hello,

i have the same problem.
I have CopSSH 1.4.3 running on Windows Server 2003. WinSCP is version 4.0.4.
Neither the "my home" symlink created by CopSSH nor the symlinks created by me work. This error happens only if the symlink leads outside the CopSSH directory.
Other clients as Putty etc. can follow these symlinks.

Error Code when tryong to open these Symlinks with WinSCP is:
No such file or directory.
Error code: 2
Error message from server: No such file
Request code: 7
Guest




By the way, WINSCP is by far the best SFTP software!
Thank you for this great piece of code!
maniac

Guest


Ahh, i forgot to mention that resolving symlinks is enabled.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Please post a log file.
_________________
Martin Prikryl
maniac
[View user's profile]

Joined: 2007-10-06
Posts: 5
Hi!

Here's the log:
Quote:
Changing directory to "data".
Getting real path for '/home/root/data'
Type: SSH_FXP_REALPATH, Size: 33, Number: 2832
Sent 37 bytes
There are 0 bytes remaining in the send buffer
Waiting for another 4 bytes
Received 4 bytes
Received 25 bytes
Type: SSH_FXP_NAME, Size: 25, Number: 2832
Real path is 'Z:'
Trying to open directory "Z:".
Type: SSH_FXP_LSTAT, Size: 31, Number: 3079
Sent 35 bytes
There are 0 bytes remaining in the send buffer
Waiting for another 4 bytes
Received 4 bytes
Session upkeep
Session upkeep
Received 29 bytes
Type: SSH_FXP_STATUS, Size: 29, Number: 3079
Status/error code: 2, Message: 3079, Server: No such file, Language:
(ECommand) Fehler beim Wechseln in Verzeichnis 'data'.
Datei oder Verzeichnis nicht gefunden.
Fehlernummer: 2
Fehlermeldung vom entfernten Rechner : No such file
Anforderungsnummer: 7


I translated the german parts to english, same log:
Quote:
Changing directory to "data".
Getting real path for '/home/root/data'
Type: SSH_FXP_REALPATH, Size: 33, Number: 2832
Sent 37 bytes
There are 0 bytes remaining in the send buffer
Waiting for another 4 bytes
Received 4 bytes
Received 25 bytes
Type: SSH_FXP_NAME, Size: 25, Number: 2832
Real path is 'Z:'
Trying to open directory "Z:".
Type: SSH_FXP_LSTAT, Size: 31, Number: 3079
Sent 35 bytes
There are 0 bytes remaining in the send buffer
Waiting for another 4 bytes
Received 4 bytes
Session upkeep
Session upkeep
Received 29 bytes
Type: SSH_FXP_STATUS, Size: 29, Number: 3079
Status/error code: 2, Message: 3079, Server: No such file, Language:
(ECommand) Error when changing to directory 'data'.
Did not find file or directory.
Error code: 2
Error message from remote computer : No such file
Request code: 7
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Any chance of having a test account on the system? It looks like a server-side bug, but I would like to verify that.
_________________
Martin Prikryl
maniac
[View user's profile]

Joined: 2007-10-06
Posts: 5
Unfortunately not, there's very delicate data on the server.... Sad
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