Error 3 when creating remote directory via SFTP

Advertisement

Arnd
Guest

Error 3 when creating remote directory via SFTP

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):
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":
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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,426
Location:
Prague, Czechia

Re: Error 3 when creating remote directory via SFTP

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 :-) From the log it seems like server-side problem. What server do you use?
_________________
Martin Prikryl

Reply with quote

Arnd
Guest

Re: Error 3 when creating remote directory via SFTP

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:
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):

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

Reply with quote

Arnd
Guest

Re: Error 3 when creating remote directory via SFTP

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,426
Location:
Prague, Czechia

Re: Error 3 when creating remote directory via SFTP

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

Reply with quote

Advertisement

You can post new topics in this forum