Re: Truncate: File too large Error
If you find anything new, please post it here. I'm interested to know, if it is problem on WinSCP side or on your server side. Anyway, you may consider trying SFTP instead of SCP.
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
--Start of Output--
C:\>pscp.exe -load spca -v -pw ######## "d:\spcaweb-new\spca.css" admin@www.spca
.org.au:/home/httpd/docs/test/spca.css
Looking up host "www.spca.org.au"
Connecting to 210.50.193.67 port 22
Server version: SSH-1.99-OpenSSH_3.0.2p1
We believe remote version has SSH2 RSA padding bug
We claim version: SSH-1.5-PuTTY-Release-0.53b
Using SSH protocol version 1
Received public keys
Host key fingerprint is:
1024 7a:4d:52:af:8f:35:c7:48:13:3f:c0:6f:d0:88:9e:3d
Encrypted session key
AES not supported in SSH1, skipping
Using Blowfish encryption
Trying to enable encryption...
Successfully started encryption
Sent username "admin"
Sending password with camouflage packets
Sent password
Authentication successful
Started session
Connected to spca.org.au
Sending file spca.css, size=2385
scp: /home/httpd/docs/test/spca.css: Permission denied
Sent EOF message
Server sent command exit status 1
--End of Output--
When I try to upload some files to my web server I get the following error:
scp: /home/httpd/docs/menu.htm: truncate: File too large
scp: /home/httpd/docs/menu.htm: truncate: File too large
. --------------------------------------------------------------------------
. WinSCP Version 3.3.0 (Build 177)
. Login time: Friday, 10 October 2003 12:29:25 PM
. --------------------------------------------------------------------------
. Session name: admin@www.spca.org.au
. Host name: www.spca.org.au (Port: 22)
. User name: admin (Password: Yes, Key file: No)
. Transfer Protocol: SFTP (SCP)
. SSH protocol version: 2; Compression: Yes
. Agent forwarding: No; TIS/CryptoCard: No; KI: Yes
. Ciphers: aes,blowfish,3des,WARN,des; Ssh2DES: No
. Ping interval: 0 sec (0 = off); Timeout: 15 sec
. SSH Bugs: -,-,-,-,-,-,-,-,
. Proxy: none
. Return code variable: Autodetect; Lookup user groups: Yes
. Shell: default, EOL: 0
. Local directory: D:\spcaweb-new, Remote directory: /home/httpd/docs, Update: No, Cache: Yes
. Clear aliases: Yes, Unset nat.vars: Yes, Resolve symlinks: Yes
. Alias LS: No, Ign LS warn: Yes, Scp1 Comp: No
. --------------------------------------------------------------------------
. Looking up host "www.spca.org.au"
. Connecting to 210.50.193.67 port 22
. Server version: SSH-1.99-OpenSSH_3.0.2p1
. We believe remote version has SSH2 RSA padding bug
. We claim version: SSH-2.0-WinSCP-release-3.3.0.177
. Using SSH protocol version 2
. Doing Diffie-Hellman group exchange
. Doing Diffie-Hellman key exchange
. Host key fingerprint is:
. ssh-dss 1024 ff:97:06:23:7a:51:97:a5:41:72:d1:24:5b:6e:d5:98
. Initialised AES-256 client->server encryption
. Initialised AES-256 server->client encryption
. Initialised zlib (RFC1950) compression
. Initialised zlib (RFC1950) decompression
! Using username "admin".
. Keyboard-interactive authentication refused
. Sent password
! Access denied
. Access denied
. Keyboard-interactive authentication refused
. Sent password
. Access granted
. Opened channel for session
. Primary command failed; attempting fallback
. Started a shell/command
. --------------------------------------------------------------------------
. Using SCP protocol.
. Doing startup conversation with host.
. Skipping host startup message (if any).
> echo "WinSCP: this is end-of-file:0"
< WinSCP: this is end-of-file:0
. Detecting variable containing return code of last command.
. Trying "$status".
> echo "$status" ; echo "WinSCP: this is end-of-file:0"
< WinSCP: this is end-of-file:0
. Trying "$?".
> echo "$?" ; echo "WinSCP: this is end-of-file:0"
< 0
< WinSCP: this is end-of-file:0
. Return code variable "$?" selected.
. Clearing all aliases.
> unalias "echo" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "pwd" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "cd" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "ls" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "groups" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "scp" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "rm" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "mv" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "mkdir" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "chmod" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "chgrp" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "chown" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "unset" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "unalias" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "alias" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "ln" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unalias "%s" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
. Clearing national user variables.
> unset "LANG" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LANGUAGE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_CTYPE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_COLLATE" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_MONETARY" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_NUMERIC" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_TIME" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_MESSAGES" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "LC_ALL" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
> unset "HUMAN_BLOCKS" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:1
. Looking up current user groups.
> groups ; echo "WinSCP: this is end-of-file:$?"
< admin web
< WinSCP: this is end-of-file:0
. Following groups found:
. admin
. web
. Changing directory to "/home/httpd/docs".
> cd "/home/httpd/docs" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is end-of-file:0
. Getting current directory name.
> pwd ; echo "WinSCP: this is end-of-file:$?"
< /home/httpd/docs
< WinSCP: this is end-of-file:0
. Listing current directory.
> ls -la ; echo "WinSCP: this is end-of-file:$?"
< total 108
< drwxr-xr-x 8 admin admin 4096 Oct 10 02:07 .
< drwxr-xr-x 5 admin admin 4096 Jun 19 2002 ..
< drwxr-xr-x 2 admin admin 4096 Oct 10 03:04 SPCA
< -rw-r--r-- 1 admin admin 4618 Oct 6 13:48 aboutus.htm
< -rw-r--r-- 1 admin admin 2193 Oct 6 13:48 branches.htm
< -rw-r--r-- 1 admin admin 2228 Oct 6 13:49 dads_on_the_air.php3
< drwxr-xr-x 2 admin admin 4096 Oct 10 01:30 document_library
< drwxr-xr-x 6 admin admin 4096 Oct 7 13:57 forms
< drwxr-xr-x 2 admin admin 4096 Oct 6 14:16 images
< -rw-r--r-- 1 admin admin 479 Oct 6 14:03 index.htm
< -rw-r--r-- 1 admin admin 8080 Oct 6 14:04 index_wait.htm
< -rw-r--r-- 1 admin admin 7910 Oct 6 13:49 join.htm
< -rw-r--r-- 1 admin admin 12648 Oct 6 13:49 library.htm
< -rw-r--r-- 1 admin admin 4893 Oct 6 13:49 main.php3
< -rw-r--r-- 1 admin admin 3447 Oct 6 13:49 media.htm
< drwxr-xr-x 2 admin admin 4096 Oct 6 13:45 media_news
< -rwxr-xr-x 1 admin admin 2563 Oct 10 02:50 menu.htm
< -rw-r--r-- 1 admin admin 2251 Oct 6 13:47 spca.css
< -rw-r--r-- 1 admin admin 540 Oct 10 02:48 spca_menu.css
< drwxr-xr-x 2 admin admin 4096 Oct 10 02:03 test
< WinSCP: this is end-of-file:0
. Startup conversation with host finished.
. Copying 1 files/directories to remote directory "/home/httpd/docs/"
. PrTime: Yes; PrRO: Yes; Rght: rwxr-xr-x; PrR: Yes; FnCs: N; RIC: Yes; Resume: S (10240)
. TM: M; AscM: *.*htm*; *.txt; *.php*; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
> echo "WinSCP: this is begin-of-file" ; scp -r -p -d -t "/home/httpd/docs" ; echo "WinSCP: this is end-of-file:$?"
< WinSCP: this is begin-of-file
. SCP remote side confirmation (0)
. Asking user:
. File 'menu.htm' already exists. Overwrite? ()
. File: "D:\spcaweb-new\menu.htm"
. Copying "D:\spcaweb-new\menu.htm" to remote directory started.
. Ascii transfer mode selected.
> T1065751038 0 1065751047 0
. SCP remote side confirmation (0)
> C0755 2563 menu.htm
. SCP remote side confirmation (0)
. Sending ASCII data (2563d bytes)
. Sending NULL.
< scp: /home/httpd/docs/menu.htm: truncate: File too large
. SCP remote side error (1):
. Asking user:
. Copying file "D:\spcaweb-new\menu.htm" failed. ("scp: /home/httpd/docs/menu.htm: truncate: File too large")
* (EScpFileSkipped) scp: /home/httpd/docs/menu.htm: truncate: File too large
> E
. SCP remote side confirmation (0)
< WinSCP: this is end-of-file:1
* (ETerminal) Command failed with return code 1.
:?: