Unable to download big files with sz command via SSH (SecureCRT)...

Unable to download big files with sz command via SSH (SecureCRT)...

Post by ANT.. » Tue, 04 Apr 2006 06:38:25



Hello! I am having problems downloading big files like image ISO. sz <filename> fails without
any errors. See below (copied and pasted):

$ ls -all *.iso
-rwx------  1 foo users 4303790080 Apr  1 07:49 image.iso

$ sz image.iso
$

As you can see, nothing happened. No error either. I tried strace with sz:

$ strace sz image.iso
execve("/usr/bin/sz", ["sz", "image.iso"], [/* 17 vars */]) = 0
uname({sys="Linux", node="mybox", ...}) = 0
brk(0)                                  = 0x10021000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30019000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=59873, ...}) = 0
mmap(NULL, 59873, PROT_READ, MAP_PRIVATE, 3, 0) = 0x3002a000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libnsl.so.1", O_RDONLY)  = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0>@"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=85688, ...}) = 0
mmap(0xffc9000, 159360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xffc9000
mprotect(0xffdd000, 77440, PROT_NONE)   = 0
mmap(0xffec000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x13000) = 0xffec000
mmap(0xffee000, 7808, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1,
0) = 0xffee000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\1\314"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1390284, ...}) = 0
mmap(0xfe54000, 1461132, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfe54000
mprotect(0xff9d000, 113548, PROT_NONE)  = 0
mmap(0xffac000, 45056, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3,
0x148000) = 0xffac000
mmap(0xffb7000, 7052, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1,
0) = 0xffb7000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3001a000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x3001b000
mprotect(0xffac000, 24576, PROT_READ)   = 0
mprotect(0xffec000, 4096, PROT_READ)    = 0
mprotect(0x30028000, 4096, PROT_READ)   = 0
munmap(0x3002a000, 59873)               = 0
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
brk(0)                                  = 0x10021000
brk(0x10042000)                         = 0x10042000
getuid()                                = 1005
geteuid()                               = 1005
rt_sigaction(SIGALRM, NULL, {SIG_DFL}, 8) = 0
rt_sigaction(SIGALRM, {SIG_DFL}, NULL, 8) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCSETSW, {B38400 -opost -isig -icanon -echo ...}) = 0
                                                              ioctl(0, TCGETS, {B38400 -opost
-isig -icanon -echo ...}) = 0
  rt_sigaction(SIGINT, {0x100016f0, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0
                                                                         rt_sigaction(SIGINT,
{0x100016f0, [INT], SA_RESTART}, {0x100016f0, [INT], SA_RESTART}, 8) = 0
                                             rt_sigaction(SIGTERM, {0x100016f0, [TERM],
SA_RESTART}, {SIG_DFL}, 8) = 0

rt_sigaction(SIGPIPE, {0x100016f0, [PIPE], SA_RESTART}, {SIG_DFL}, 8) = 0
                                                                      rt_sigaction(SIGHUP,
{0x100016f0, [HUP], SA_RESTART}, {SIG_DFL}, 8) = 0
)                     = 3(1, "rz\r", 3rz
                         access("image.iso", R_OK)               = 0
                                                                    stat64("image.iso",
{st_mode=S_IFREG|0700, st_size=4303790080, ...}) = 0
                   ioctl(0, TCFLSH, 0)                     = 0
                                                              select(1, [0], NULL, NULL, {0, 0})      
= 0 (Timeout)

ioctl(0, TCFLSH, 0)                     = 0
                                     write(1, "**\30B00000000000000\r\212\21) = 20
                                                                                  write(2,
"\r\n", 2
)                     = 2
                         write(2, "Can\'t open any requested files.", 31Can't open any requested
files.) = 31

write(2, "\r\n", 2
)                     = 2
                         ioctl(1, TCFLSH, 0)                     = 0
                                                                    write(1,
"\30\30\30\30\30\30\30\30\30\30\10\10\10\10\10\10\10\10"..., 20) = 20
                         ioctl(0, TCSBRK, 0x1)                   = 0
                                                                    ioctl(0, TCFLSH, 0x2)                  
= 0

ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
                                                   ioctl(0, TCSETSW, {B38400 opost isig icanon
echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCXONC, TCOON)                 = 0
exit_group(128)                         = ?
$ **01000000039a32
-bash: **01000000039a32: command not found

$ uname -a
Linux mybox 2.6.16-1-powerpc #2 Thu Mar 23 07:02:15 UTC 2006 ppc GNU/Linux

Please note that I am still using SecureCRT v3.4.8 in Windows XP Pro. SP2 (all updates). I have
no problems downloading smaller files. Does anyone know what's going on? Is there another SSH
clients (Windows XP or Linux) that will let me download big files and be able to resume (scp
can't. sz -r can). I cannot download nonstop since I need to take breaks like not download
during the day time hours.

hank you in advance. :)
--
"Size isn't everything. The whale is endangered, while the ant continues to do just fine." --Bill Vaughan
  /\___/\                                                    
 / /\ /\ \      Phillip (Ant) @ http://antfarm.ma.cx (Personal Web Site)
| |o   o| |          Ant's Quality Foraged Links (AQFL): http://aqfl.net
   \ _ /                        Please remove ANT if replying by e-mail.
    ( )

 
 
 

Unable to download big files with sz command via SSH (SecureCRT)...

Post by The Ghost In The Machin » Tue, 04 Apr 2006 08:58:49



> Hello! I am having problems downloading big files like image ISO. sz <filename> fails without
> any errors. See below (copied and pasted):

> $ ls -all *.iso
> -rwx------  1 foo users 4303790080 Apr  1 07:49 image.iso

> $ sz image.iso
> $

> As you can see, nothing happened. No error either. I tried strace with sz:

[snippage]

Quote:

> Please note that I am still using SecureCRT v3.4.8 in Windows XP Pro. SP2 (all updates). I have
> no problems downloading smaller files. Does anyone know what's going on? Is there another SSH
> clients (Windows XP or Linux) that will let me download big files and be able to resume (scp
> can't. sz -r can). I cannot download nonstop since I need to take breaks like not download
> during the day time hours.

> hank you in advance. :)

Your file is over 4GB in size.  I for one would suspect that sz can't
handle files that big for some reason.

It is also possible that you have a local linux setup that can't handle
files over 2 GB (e.g., x86/32 implementations of ext2).   If you can, try
converting to another file system such as reiserfs or jfs.

--

It's still legal to go .sigless.

 
 
 

Unable to download big files with sz command via SSH (SecureCRT)...

Post by Tristan Mille » Tue, 04 Apr 2006 16:58:45


Greetings.



> Please note that I am still using SecureCRT v3.4.8 in Windows XP Pro. SP2
> (all updates). I have no problems downloading smaller files. Does anyone
> know what's going on? Is there another SSH clients (Windows XP or Linux)
> that will let me download big files and be able to resume (scp can't. sz
> -r can). I cannot download nonstop since I need to take breaks like not
> download during the day time hours.

Try Kermit, maybe.  I don't know for sure if it supports resume but it
probably does.

Regards,
Tristan

--
   _
  _V.-o  Tristan Miller [en,(fr,de,ia)]  ><  Space is limited
 / |`-'  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  <>  In a haiku, so it's hard
(7_\\    http://www.nothingisreal.com/   ><  To finish what you

 
 
 

Unable to download big files with sz command via SSH (SecureCRT)...

Post by Tris Orendorf » Wed, 05 Apr 2006 04:06:21




Quote:> Please note that I am still using SecureCRT v3.4.8 in Windows XP Pro.
> SP2 (all updates). I have no problems downloading smaller files. Does
> anyone know what's going on? Is there another SSH clients (Windows XP
> or Linux) that will let me download big files and be able to resume
> (scp can't. sz -r can). I cannot download nonstop since I need to take
> breaks like not download during the day time hours.

It looks like sz is limited to a file size of 2GB.  The linux program "wget
--continue" will allow you to resume lost or disconnected sessions.
 
 
 

Unable to download big files with sz command via SSH (SecureCRT)...

Post by ANT.. » Tue, 11 Apr 2006 08:01:05




> > Hello! I am having problems downloading big files like image ISO. sz <filename> fails without
> > any errors. See below (copied and pasted):

> > $ ls -all *.iso
> > -rwx------  1 foo users 4303790080 Apr  1 07:49 image.iso

> > $ sz image.iso
> > $

> > As you can see, nothing happened. No error either. I tried strace with sz:
> [snippage]

> > Please note that I am still using SecureCRT v3.4.8 in Windows XP Pro. SP2 (all updates). I have
> > no problems downloading smaller files. Does anyone know what's going on? Is there another SSH
> > clients (Windows XP or Linux) that will let me download big files and be able to resume (scp
> > can't. sz -r can). I cannot download nonstop since I need to take breaks like not download
> > during the day time hours.

> > hank you in advance. :)
> Your file is over 4GB in size.  I for one would suspect that sz can't
> handle files that big for some reason.

Interesting. You might be right on that,but I tried a 5 GB file (different) and that worked.
Weird.

Quote:> It is also possible that you have a local linux setup that can't handle
> files over 2 GB (e.g., x86/32 implementations of ext2).   If you can, try
> converting to another file system such as reiserfs or jfs.

It looks like ext3 from /etc/fstab. Is ext3 OK?
--
"The eyeless ant asked God, 'Give me eye-lashes.'" --Georgian Proverb
  /\___/\                                                    

| |o   o| |          Ant's Quality Foraged Links (AQFL): http://aqfl.net
   \ _ /                        Please remove ANT if replying by e-mail.
    ( )
 
 
 

Unable to download big files with sz command via SSH (SecureCRT)...

Post by ANT.. » Tue, 11 Apr 2006 08:02:47



> Greetings.


> > Please note that I am still using SecureCRT v3.4.8 in Windows XP Pro. SP2
> > (all updates). I have no problems downloading smaller files. Does anyone
> > know what's going on? Is there another SSH clients (Windows XP or Linux)
> > that will let me download big files and be able to resume (scp can't. sz
> > -r can). I cannot download nonstop since I need to take breaks like not
> > download during the day time hours.
> Try Kermit, maybe.  I don't know for sure if it supports resume but it
> probably does.

I don't think it does, and it's slower if I remember from BBS' days. Also,
SecureCRT doesn't have Kermit, but it has Xmodem (yuck!).
--
"The eyeless ant asked God, 'Give me eye-lashes.'" --Georgian Proverb
  /\___/\                                                    

| |o   o| |          Ant's Quality Foraged Links (AQFL): http://aqfl.net
   \ _ /                        Please remove ANT if replying by e-mail.
    ( )
 
 
 

Unable to download big files with sz command via SSH (SecureCRT)...

Post by ANT.. » Tue, 11 Apr 2006 08:07:36


Quote:> > Please note that I am still using SecureCRT v3.4.8 in Windows XP Pro.
> > SP2 (all updates). I have no problems downloading smaller files. Does
> > anyone know what's going on? Is there another SSH clients (Windows XP
> > or Linux) that will let me download big files and be able to resume
> > (scp can't. sz -r can). I cannot download nonstop since I need to take
> > breaks like not download during the day time hours.
> It looks like sz is limited to a file size of 2GB.  The linux program "wget
> --continue" will allow you to resume lost or disconnected sessions.

Yeah, but it's not secured with wget but I can live with that. I think I have a bigger problem.
Weird part. I can't download via HTTP either! I get:

Forbidden

You don't have permission to access /~ant/image.iso on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to
handle the request.
Apache/2.0.55 (Debian) PHP/4.4.2-1+b1 mod_ssl/2.0.55 OpenSSL/0.9.8a Server at mybox.net Port
80

Note: Changed the domain name to keep confidential.

I already checked chgrp and chown. Note FS is ext3 so that should be fine.
--
"The eyeless ant asked God, 'Give me eye-lashes.'" --Georgian Proverb
  /\___/\                                                    

| |o   o| |          Ant's Quality Foraged Links (AQFL): http://aqfl.net
   \ _ /                        Please remove ANT if replying by e-mail.
    ( )

 
 
 

Unable to download big files with sz command via SSH (SecureCRT)...

Post by joseph2 » Thu, 27 Apr 2006 12:23:29


ANT...@zimage.com wrote:
> Hello! I am having problems downloading big files like image ISO. sz

<filename> fails without
> any errors. See below (copied and pasted):

> $ ls -all *.iso
> -rwx------  1 foo users 4303790080 Apr  1 07:49 image.iso

> $ sz image.iso
> $

> As you can see, nothing happened. No error either. I tried strace with sz:

> $ strace sz image.iso
> execve("/usr/bin/sz", ["sz", "image.iso"], [/* 17 vars */]) = 0
> uname({sys="Linux", node="mybox", ...}) = 0
> brk(0)                                  = 0x10021000
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x30019000
> access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or
directory)
> open("/etc/ld.so.cache", O_RDONLY)      = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=59873, ...}) = 0
> mmap(NULL, 59873, PROT_READ, MAP_PRIVATE, 3, 0) = 0x3002a000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
> open("/lib/tls/libnsl.so.1", O_RDONLY)  = 3
> read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0>@"..., 512)
= 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=85688, ...}) = 0
> mmap(0xffc9000, 159360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,
0) = 0xffc9000
> mprotect(0xffdd000, 77440, PROT_NONE)   = 0
> mmap(0xffec000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE

MAP_FIXED|MAP_DENYWRITE, 3,
> 0x13000) = 0xffec000
> mmap(0xffee000, 7808, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE

MAP_FIXED|MAP_ANONYMOUS, -1,
> 0) = 0xffee000
> close(3)                                = 0
> access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or
directory)
> open("/lib/tls/libc.so.6", O_RDONLY)    = 3
> read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\1\314"...,
512) = 512
> fstat64(3, {st_mode=S_IFREG|0755, st_size=1390284, ...}) = 0
> mmap(0xfe54000, 1461132, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
3, 0) = 0xfe54000
> mprotect(0xff9d000, 113548, PROT_NONE)  = 0
> mmap(0xffac000, 45056, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE

MAP_FIXED|MAP_DENYWRITE, 3,
> 0x148000) = 0xffac000
> mmap(0xffb7000, 7052, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE

MAP_FIXED|MAP_ANONYMOUS, -1,

- Show quoted text -

> 0) = 0xffb7000
> close(3)                                = 0
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x3001a000
> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x3001b000
> mprotect(0xffac000, 24576, PROT_READ)   = 0
> mprotect(0xffec000, 4096, PROT_READ)    = 0
> mprotect(0x30028000, 4096, PROT_READ)   = 0
> munmap(0x3002a000, 59873)               = 0
> fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
> fstat64(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
> brk(0)                                  = 0x10021000
> brk(0x10042000)                         = 0x10042000
> getuid()                                = 1005
> geteuid()                               = 1005
> rt_sigaction(SIGALRM, NULL, {SIG_DFL}, 8) = 0
> rt_sigaction(SIGALRM, {SIG_DFL}, NULL, 8) = 0
> ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
> ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
> ioctl(0, TCSETSW, {B38400 -opost -isig -icanon -echo ...}) = 0
>                                                               ioctl(0,

TCGETS, {B38400 -opost
> -isig -icanon -echo ...}) = 0
>   rt_sigaction(SIGINT, {0x100016f0, [INT], SA_RESTART}, {SIG_DFL}, 8) = 0

rt_sigaction(SIGINT,
> {0x100016f0, [INT], SA_RESTART}, {0x100016f0, [INT], SA_RESTART}, 8) = 0
>                                              rt_sigaction(SIGTERM,

{0x100016f0, [TERM],
> SA_RESTART}, {SIG_DFL}, 8) = 0

> rt_sigaction(SIGPIPE, {0x100016f0, [PIPE], SA_RESTART}, {SIG_DFL}, 8) = 0

rt_sigaction(SIGHUP,
> {0x100016f0, [HUP], SA_RESTART}, {SIG_DFL}, 8) = 0
> )                     = 3(1, "rz\r", 3rz
>                          access("image.iso", R_OK)               = 0
>                                                                     stat6
("image.iso",
> {st_mode=S_IFREG|0700, st_size=4303790080, ...}) = 0
>                    ioctl(0, TCFLSH, 0)                     = 0
>                                                               select(1,

[0], NULL, NULL, {0, 0})      
> = 0 (Timeout)

> ioctl(0, TCFLSH, 0)                     = 0
>                                      write(1,

"**\30B00000000000000\r\212\21) = 20

write(2,
> "\r\n", 2
> )                     = 2
>                          write(2, "Can\'t open any requested files.",

31Can't open any requested
> files.) = 31

> write(2, "\r\n", 2
> )                     = 2
>                          ioctl(1, TCFLSH, 0)                     = 0

write(1,
> "\30\30\30\30\30\30\30\30\30\30\10\10\10\10\10\10\10\10"..., 20) = 20
>                          ioctl(0, TCSBRK, 0x1)                   = 0

ioctl(0, TCFLSH, 0x2)                  
> = 0

> ioctl(0, TCGETS, {B38400 -opost -isig -icanon -echo ...}) = 0
>                                                    ioctl(0, TCSETSW,

{B38400 opost isig icanon
> echo ...}) = 0
> ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
> ioctl(0, TCXONC, TCOON)                 = 0
> exit_group(128)                         = ?
> $ **01000000039a32
> -bash: **01000000039a32: command not found

> $ uname -a
> Linux mybox 2.6.16-1-powerpc #2 Thu Mar 23 07:02:15 UTC 2006 ppc GNU/Linux

> Please note that I am still using SecureCRT v3.4.8 in Windows XP Pro. SP2

(all updates). I have
> no problems downloading smaller files. Does anyone know what's going on?

Is there another SSH

> clients (Windows XP or Linux) that will let me download big files and be
able to resume (scp
> can't. sz -r can). I cannot download nonstop since I need to take breaks
like not download
> during the day time hours.

> hank you in advance. :)

Strange, all the properly implemented ftp clients i have used can retrieve
over 4GB file in restartable sessions.   It seems like the webheads /
chatheads / blogheads have to poorly reinvent everything.

--
JosephKK
Gegen dummheit kampfen die Gotter Selbst, vergebens.??
--Schiller