Topic "Error message "could not rename filename""

Author Message
El rollo

Guest


Smile Great software, keep up the good work. I have a problem transferring to a ssh.com server. When a file is copied there an error message appears: "could not overwrite filename". It copies the file sucessfully to the remote server but adds a .filepart extension to the file.

eg. test.txt appears as test.txt.filepart

Any ideas?

Cheers El
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Please post a log file. Try also different protocol (SCP/SFTP).
_________________
Martin Prikryl
El Rollo

Guest


prikryl wrote:
Please post a log file. Try also different protocol (SCP/SFTP).


Hi Martin,

I tried using SFTP/SCP and SFTP only, SSH1, 2 etc same message. It looks like a permissions issue yet the local admin copied files into the target directory using my login no problems at all. He was using an expensive ssh.com client.

Here is the log file:

. --------------------------------------------------------------------------
. WinSCP Version 3.1.0 (Build 165)
. Login time: Tuesday, 29 July 2003 8:57:05 a.m.
. --------------------------------------------------------------------------
. Session name: SHXXX@144.X.X.X
. Host name: 144.X.X.X (Port: 22)
. User name: SHXXX (Password: Yes, Key file: No)
. Transfer Protocol: SFTP (SCP)
. SSH protocol version: 1; Compression: Yes
. Agent forwarding: Yes; TIS/CryptoCard: Yes; KI: Yes
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping interval: 0 sec (0 = off); Timeout: 15 sec
. SSH Bugs: A,A,A,A,A,A,A,
. Proxy: SOCKS
. HostName: 10.X.X.X (Port: 2022); Username: ; Passwd: No
. SOCKS Version: 5
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 1
. Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: Yes
. --------------------------------------------------------------------------
. Looking up host "144.X.X.X"
. Connecting to 144.X.X.X port 22
. Server version: SSH-2.0-3.2.0 SSH Secure Shell Windows NT Server
. We claim version: SSH-2.0-PuTTY-Local: Jul 14 2003 13:14:02
. Using SSH protocol version 2
. Doing Diffie-Hellman key exchange
. Host key fingerprint is:
. ssh-dss 2048 cf:e8:86:7a:5d:09:18:6c:2e:00:ef:8d:88:7d:1c:97
. Initialised zlib (RFC1950) compression
. Initialised zlib (RFC1950) decompression
. Initialised AES-256 client->server encryption
. Initialised AES-256 server->client encryption
! Using username "SHXXX".
. Sent password
! Access denied
. Access denied
. Sent password
. Access granted
. Opened channel for session
. Started a shell/command
. --------------------------------------------------------------------------
. Using SFTP protocol
. Doing startup conversation with host.
> Type: SSH_FXP_INIT, Size: 5, Number: -1
< Type: SSH_FXP_VERSION, Size: 34, Number: -1
. Getting current directory name.
> Type: SSH_FXP_REALPATH, Size: 10, Number: 16
< Type: SSH_FXP_NAME, Size: 23, Number: 16
. Listing directory "/".
> Type: SSH_FXP_OPENDIR, Size: 10, Number: 267
< Type: SSH_FXP_HANDLE, Size: 17, Number: 267
> Type: SSH_FXP_READDIR, Size: 17, Number: 524
< Type: SSH_FXP_NAME, Size: 115, Number: 524
> Type: SSH_FXP_READDIR, Size: 17, Number: 780
< Type: SSH_FXP_STATUS, Size: 22, Number: 780
> Type: SSH_FXP_CLOSE, Size: 17, Number: 1028
< Type: SSH_FXP_STATUS, Size: 21, Number: 1028
. Startup conversation with host finished.
. Changing directory to "HNFTP".
> Type: SSH_FXP_REALPATH, Size: 15, Number: 1296
< Type: SSH_FXP_NAME, Size: 35, Number: 1296
> Type: SSH_FXP_OPENDIR, Size: 16, Number: 1547
< Type: SSH_FXP_HANDLE, Size: 17, Number: 1547
> Type: SSH_FXP_CLOSE, Size: 17, Number: 1796
< Type: SSH_FXP_STATUS, Size: 21, Number: 1796
. Getting current directory name.
. Listing directory "/HNFTP".
> Type: SSH_FXP_OPENDIR, Size: 15, Number: 2059
< Type: SSH_FXP_HANDLE, Size: 17, Number: 2059
> Type: SSH_FXP_READDIR, Size: 17, Number: 2316
< Type: SSH_FXP_NAME, Size: 423, Number: 2316
> Type: SSH_FXP_READDIR, Size: 17, Number: 2572
< Type: SSH_FXP_STATUS, Size: 22, Number: 2572
> Type: SSH_FXP_CLOSE, Size: 17, Number: 2820
< Type: SSH_FXP_STATUS, Size: 21, Number: 2820
. Changing directory to "ToHNA".
> Type: SSH_FXP_REALPATH, Size: 21, Number: 3088
< Type: SSH_FXP_NAME, Size: 45, Number: 3088
> Type: SSH_FXP_OPENDIR, Size: 21, Number: 3339
< Type: SSH_FXP_HANDLE, Size: 17, Number: 3339
> Type: SSH_FXP_CLOSE, Size: 17, Number: 3588
< Type: SSH_FXP_STATUS, Size: 21, Number: 3588
. Getting current directory name.
. Listing directory "/HNFTP/ToHNA".
> Type: SSH_FXP_OPENDIR, Size: 21, Number: 3851
< Type: SSH_FXP_HANDLE, Size: 17, Number: 3851
> Type: SSH_FXP_READDIR, Size: 17, Number: 4108
< Type: SSH_FXP_NAME, Size: 541, Number: 4108
> Type: SSH_FXP_READDIR, Size: 17, Number: 4364
< Type: SSH_FXP_STATUS, Size: 22, Number: 4364
> Type: SSH_FXP_CLOSE, Size: 17, Number: 4612
< Type: SSH_FXP_STATUS, Size: 21, Number: 4612
. Copying 1 files/directories to remote directory "/HNFTP/ToHNA/"
. PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No; FnCs: N; Resume: S (10240)
. TM: B; AscM: *.*htm*; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. File: "C:\Documents and Settings\dXX\Desktop\56k_scripts.hqx"
. Copying "C:\Documents and Settings\dXX\Desktop\56k_scripts.hqx" to remote directory started.
. Binary transfer mode selected.
. Checking existence of file.
> Type: SSH_FXP_LSTAT, Size: 37, Number: 4871
< Type: SSH_FXP_STATUS, Size: 105, Number: 4871
. Error status: 2, Message: 4871, Server: syserr: No such file or directory, file: D:\advertising\ToHNA\56k_scripts.hqx, Language: en
. Checking existence of partially transfered file.
> Type: SSH_FXP_LSTAT, Size: 46, Number: 5127
< Type: SSH_FXP_STATUS, Size: 114, Number: 5127
. Error status: 2, Message: 5127, Server: syserr: No such file or directory, file: D:\advertising\ToHNA\56k_scripts.hqx.filepart, Language: en
. Opening remote file.
> Type: SSH_FXP_OPEN, Size: 54, Number: 5379
< Type: SSH_FXP_HANDLE, Size: 17, Number: 5379
> Type: SSH_FXP_WRITE, Size: 4125, Number: 5638
. 55 skipped SSH_FXP_WRITE, SSH_FXP_READ and SSH_FXP_STATUS packets.
> Type: SSH_FXP_REALPATH, Size: 46, Number: 13072
< Type: SSH_FXP_NAME, Size: 95, Number: 13072
> Type: SSH_FXP_RENAME, Size: 78, Number: 12818
< Type: SSH_FXP_STATUS, Size: 106, Number: 12818
. Error status: 3, Message: 12818, Server: syserr: Permission denied, file: D:\advertising\ToHNA\56k_scripts.hqx.filepart, Language: en
* (ETerminal) Permission denied.
* Error code: 3
* Error message from server: syserr: Permission denied, file: D:\advertising\ToHNA\56k_scripts.hqx.filepart (en)
* Request code: 18
. Asking user:
. Transfer was succesfully finished, but temporary transfer file '56k_scripts.hqx.filepart' could not be renamed to target file name '56k_scripts.hqx'. ("Permission denied.
. Error code: 3
. Error message from server: syserr: Permission denied, file: D:\advertising\ToHNA\56k_scripts.hqx.filepart (en)
. Request code: 18")
> Type: SSH_FXP_CLOSE, Size: 17, Number: 13316
< Type: SSH_FXP_STATUS, Size: 21, Number: 13316
* (EScpSkipFile) Transfer was succesfully finished, but temporary transfer file '56k_scripts.hqx.filepart' could not be renamed to target file name '56k_scripts.hqx'.
* Permission denied.
* Error code: 3
* Error message from server: syserr: Permission denied, file: D:\advertising\ToHNA\56k_scripts.hqx.filepart (en)
* Request code: 18
. Listing directory "/HNFTP/ToHNA".
> Type: SSH_FXP_OPENDIR, Size: 21, Number: 13579
< Type: SSH_FXP_HANDLE, Size: 17, Number: 13579
> Type: SSH_FXP_READDIR, Size: 17, Number: 13836
< Type: SSH_FXP_NAME, Size: 684, Number: 13836
> Type: SSH_FXP_READDIR, Size: 17, Number: 14092
< Type: SSH_FXP_STATUS, Size: 22, Number: 14092
> Type: SSH_FXP_CLOSE, Size: 17, Number: 14340
< Type: SSH_FXP_STATUS, Size: 21, Number: 14340
. Deleting file "56k_scripts.hqx.filepart".
> Type: SSH_FXP_REMOVE, Size: 46, Number: 14605
< Type: SSH_FXP_STATUS, Size: 21, Number: 14605
. Deleting file "Announcment S Collis.pdf.filepart".
> Type: SSH_FXP_REMOVE, Size: 55, Number: 14861
< Type: SSH_FXP_STATUS, Size: 21, Number: 14861
. Deleting file "Digital Specs for CTP v1.2.pdf.filepart".
> Type: SSH_FXP_REMOVE, Size: 61, Number: 15117
< Type: SSH_FXP_STATUS, Size: 21, Number: 15117
. Listing directory "/HNFTP/ToHNA".
> Type: SSH_FXP_OPENDIR, Size: 21, Number: 15371
< Type: SSH_FXP_HANDLE, Size: 17, Number: 15371
> Type: SSH_FXP_READDIR, Size: 17, Number: 15628
< Type: SSH_FXP_NAME, Size: 207, Number: 15628
> Type: SSH_FXP_READDIR, Size: 17, Number: 15884
< Type: SSH_FXP_STATUS, Size: 22, Number: 15884
> Type: SSH_FXP_CLOSE, Size: 17, Number: 16132
< Type: SSH_FXP_STATUS, Size: 21, Number: 16132
. Closing connection.

Cheers
El
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
El Rollo wrote:
I tried using SFTP/SCP and SFTP only, SSH1, 2 etc same message.

SCP does not work too? It should, because it does not rename file after transfer, because it does not support 'transfer resuming'.
_________________
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