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: Error code: 2, Request code: 5 while copying small files

What is your SFTP server? Does it show something useful in its log (if it has any)?
Guest

Addition: the success of copying doesn't depend on file size; files can be copied or not copied. I don't understand upon what this depends.
Michael

Error code: 2, Request code: 5 while copying small files

When I'm trying to copy files less than ~100 kB (SFTP protocol) from server, the message appears:

Error code: 2
Error message from server: No such file
Request code: 5

Files with size greather than ~100 kB are copying normally.

When I use SCP protocol,there is no such messages. But with use of that protocol I can't see normal file names (server has UTF-8 encoding).

Here is part of log:

Getting size of directory "2007-11-29"
Listing directory "/media/sda5/IC/140UD17/2007-11-29".
Type: SSH_FXP_OPENDIR, Size: 42, Number: 141579
Type: SSH_FXP_STATUS, Size: 24, Number: 141316
Discarding reserved response
Type: SSH_FXP_HANDLE, Size: 13, Number: 141579
Type: SSH_FXP_READDIR, Size: 13, Number: 141836
Type: SSH_FXP_NAME, Size: 1187, Number: 141836
Type: SSH_FXP_READDIR, Size: 13, Number: 142092
Type: SSH_FXP_STATUS, Size: 28, Number: 142092
Status/error code: 1
Type: SSH_FXP_CLOSE, Size: 13, Number: 142340
File: "/media/sda5/IC/140UD17/2007-11-29"
Listing directory "/media/sda5/IC/140UD17/2007-11-29".
Type: SSH_FXP_OPENDIR, Size: 42, Number: 142603
Type: SSH_FXP_STATUS, Size: 24, Number: 142340
Discarding reserved response
Type: SSH_FXP_HANDLE, Size: 13, Number: 142603
Type: SSH_FXP_READDIR, Size: 13, Number: 142860
Type: SSH_FXP_NAME, Size: 1187, Number: 142860
Type: SSH_FXP_READDIR, Size: 13, Number: 143116
Type: SSH_FXP_STATUS, Size: 28, Number: 143116
Status/error code: 1
Type: SSH_FXP_CLOSE, Size: 13, Number: 143364
File: "/media/sda5/IC/140UD17/2007-11-29/140UD17A_2.txt"
Copying "/media/sda5/IC/140UD17/2007-11-29/140UD17A_2.txt" to local directory started.
Binary transfer mode selected.
Checking existence of partially transfered file.
Opening remote file.
Type: SSH_FXP_OPEN, Size: 65, Number: 143619
Type: SSH_FXP_STATUS, Size: 24, Number: 143364
Discarding reserved response
Type: SSH_FXP_HANDLE, Size: 13, Number: 143619
Type: SSH_FXP_FSTAT, Size: 13, Number: 143880
Type: SSH_FXP_READ, Size: 25, Number: 144133
3 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
Type: SSH_FXP_ATTRS, Size: 37, Number: 143880
Storing reserved response
Status/error code: 2, Message: 146181, Server: No such file, Language:
20 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
Type: SSH_FXP_CLOSE, Size: 13, Number: 147204
(ECommand) Копирование файлов с сервера не удалось.
Нет такого файла или папки.
Error code: 2
Error message from server: No such file
Request code: 5