Topic "Error 3 when creating remote directory via SFTP"

Author Message
Arnd

Guest


Hello,
I'm using WinSCP 3.8 and am unable to create a remote directory on a certain host. The log contains the following information ("###" added to replace unrelevant information):
Quote:

Creating directory "Test".
Canonifying: "Test"
Getting real path for '/###/###/###/######doc/Test'
Type: SSH_FXP_REALPATH, Size: 44, Number: 17680
Type: SSH_FXP_STATUS, Size: 24, Number: 17156
Discarding reserved response
Type: SSH_FXP_NAME, Size: 89, Number: 17680
Real path is '/###/###/###/######docTest'
Canonified: "/###/###/###/######docTest"
Type: SSH_FXP_MKDIR, Size: 47, Number: 17422
Type: SSH_FXP_STATUS, Size: 34, Number: 17422
Status/error code: 3, Message: 17422, Server: Permission denied, Language:
Asking user:
Error creating folder 'Test'. ("Permission denied.
Error code: 3
Error message from server: Permission denied
Request code: 14")

It seems that someone / something removes one required "/"...

When trying to create a directory with a "/" (like inputting "Test/Test" into the F7 dialog field), a directory is successfully created but with the wrong name "TestTest":
Quote:

Creating directory "Test/Test".
Canonifying: "Test/Test"
Getting real path for '/###/###/###/######doc/Test/Test'
Type: SSH_FXP_REALPATH, Size: 49, Number: 20496
Type: SSH_FXP_STATUS, Size: 24, Number: 19972
Discarding reserved response
Type: SSH_FXP_NAME, Size: 99, Number: 20496
Real path is '/###/###/###/######doc/TestTest'
Canonified: "/###/###/###/######doc/TestTest"
Type: SSH_FXP_MKDIR, Size: 52, Number: 20238
Type: SSH_FXP_STATUS, Size: 24, Number: 20238
Status/error code: 0
Type: SSH_FXP_SETSTAT, Size: 52, Number: 20745
Type: SSH_FXP_STATUS, Size: 24, Number: 20745
Status/error code: 0


Any hint what to do?

Thanks in advance!

Best regards, Arnd
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
I do not see anything wrong on the first problem. It simply seems that you do not have enough rights to create the directory. Do you have anything that brings you the idea that it is problem of WinSCP?

Second problem: It works for me Smile From the log it seems like server-side problem. What server do you use?
_________________
Martin Prikryl
Arnd

Guest


Hello Martin,

thanks a lot for your reply.

I'm quite sure that I have enough rights as #1 and #2 where issued in the same session and #2 creates a directory in the very same directory #1 should have created a directory:
Code:

Case   Current Path      Directory to create   OK   Directory name used
#1   /###/###/###/######doc   Test         No   /###/###/###/######docTest
#2   /###/###/###/######doc   Test/Test      Yes   /###/###/###/######doc/TestTest


Case #1 tries to create a directory in the parent directory of the current directory where I don't have sufficient permissions.

Using the sftp command line interface I'm able to create a directory (ie. permissions right should be sufficient):

Code:

sftp> version
SFTP protocol version 3
sftp> pwd
Remote working directory: /###/###/##p1/scfdccdoc
sftp> mkdir Test
sftp> mkdir Test/Test
sftp> ls -la Test
drwxrws--x    3 271615   482037       2048 Jan 12 18:28 .
drwxrws--x    5 271615   482037       2048 Jan 12 18:28 ..
drwxrws--x    2 271615   482037       2048 Jan 12 18:28 Test


Unfortunately I don't know which kind and version of server I'm connected to...

Best regards, Arnd
--
Arnd Gronenberg
Arnd

Guest


Hello,

I had a look at a "Debug 2" and after reading the sftp protocol description it seems the server is providing incorrect output in SSH_FXP_NAME to the SSH_FXP_REALPATH query.

I will follow this up with the system administrator of the server.
Thanks and best regards, Arnd
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24555
Location: Prague, Czechia
Arnd wrote:
I had a look at a "Debug 2" and after reading the sftp protocol description it seems the server is providing incorrect output in SSH_FXP_NAME to the SSH_FXP_REALPATH query.

I will follow this up with the system administrator of the server.

I know. That's why I asked for server software that you use.
_________________
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