public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] rsync "locks up" and doesn't continue
@ 2006-09-25  0:59 Iain Buchanan
  2006-09-27 19:03 ` Stewart Taylor
  0 siblings, 1 reply; 3+ messages in thread
From: Iain Buchanan @ 2006-09-25  0:59 UTC (permalink / raw
  To: gentoo-user

Hi all,

I have a script that downloads my distfiles from machines on our LAN
before going over the internet.  It uses rsync over ssh to get files
locally, then defaults to wget for internet downloads.

The command line is basically this:
/usr/bin/rsync -avzP --password-file=<filename> rsync://<user>@<host/path> <filename>"

which works fine most of the time, so I know the syntax, password and
permissions are correct.  However, sometimes rsync "dies" (the download
process just stops) and I get this sort of message:


Password: *password sent*

receiving file list ...
rsync: link_stat "/usr/portage/distfiles/Net-DNS-0.59.tar.gz" failed: No
such file or directory (2)
0 files to consider

sent 8 bytes  received 21 bytes  58.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files could not be transferred (code 23) at
main.c(1298) [receiver=2.6.8]


And the download won't continue - nor do I get the prompt back because
rsync seems to lock the script up at this point by not returning.  This
is really annoying when it stops at 3 of 50!  I don't mind killing it,
but sometimes this is supposed to run unattended...

Now fair enough, if the file doesn't exist, I can't rsync it, but most
of the time, this makes rsync just exit, and the script continues.

All I can get from google and docs is that code 23 is a "general" error,
meaning some read / write / delete failed.  I'm not out of disk space.

can anyone shed light on this issue?  thanks!
-- 
Iain Buchanan <iain at pcorp dot com dot au>

I have an existential map.  It has "You are here" written all over it.
		-- Steven Wright

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] rsync "locks up" and doesn't continue
  2006-09-25  0:59 [gentoo-user] rsync "locks up" and doesn't continue Iain Buchanan
@ 2006-09-27 19:03 ` Stewart Taylor
  2006-09-28  5:47   ` Iain Buchanan
  0 siblings, 1 reply; 3+ messages in thread
From: Stewart Taylor @ 2006-09-27 19:03 UTC (permalink / raw
  To: gentoo-user


Hi

Don't know if this will help but I had a similar problem when I set up my 
archiving system. The problem was that I set it to use ssh which needs it own 
password and the password file was only used by rsync. the answer was to not use 
ssh  and just use rsync client to rsync server. This was just over my lan but it 
solved the problem.

HTH

Stewart.

Iain Buchanan wrote:
> Hi all,
> 
> I have a script that downloads my distfiles from machines on our LAN
> before going over the internet.  It uses rsync over ssh to get files
> locally, then defaults to wget for internet downloads.
> 
> The command line is basically this:
> /usr/bin/rsync -avzP --password-file=<filename> rsync://<user>@<host/path> <filename>"
> 
> which works fine most of the time, so I know the syntax, password and
> permissions are correct.  However, sometimes rsync "dies" (the download
> process just stops) and I get this sort of message:
> 
> 
> Password: *password sent*
> 
> receiving file list ...
> rsync: link_stat "/usr/portage/distfiles/Net-DNS-0.59.tar.gz" failed: No
> such file or directory (2)
> 0 files to consider
> 
> sent 8 bytes  received 21 bytes  58.00 bytes/sec
> total size is 0  speedup is 0.00
> rsync error: some files could not be transferred (code 23) at
> main.c(1298) [receiver=2.6.8]
> 
> 
> And the download won't continue - nor do I get the prompt back because
> rsync seems to lock the script up at this point by not returning.  This
> is really annoying when it stops at 3 of 50!  I don't mind killing it,
> but sometimes this is supposed to run unattended...
> 
> Now fair enough, if the file doesn't exist, I can't rsync it, but most
> of the time, this makes rsync just exit, and the script continues.
> 
> All I can get from google and docs is that code 23 is a "general" error,
> meaning some read / write / delete failed.  I'm not out of disk space.
> 
> can anyone shed light on this issue?  thanks!

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] rsync "locks up" and doesn't continue
  2006-09-27 19:03 ` Stewart Taylor
@ 2006-09-28  5:47   ` Iain Buchanan
  0 siblings, 0 replies; 3+ messages in thread
From: Iain Buchanan @ 2006-09-28  5:47 UTC (permalink / raw
  To: gentoo-user

On Wed, 2006-09-27 at 20:03 +0100, Stewart Taylor wrote:
> Hi
> 
> Don't know if this will help but I had a similar problem when I set up my 
> archiving system. The problem was that I set it to use ssh which needs it own 
> password and the password file was only used by rsync. the answer was to not use 
> ssh  and just use rsync client to rsync server. This was just over my lan but it 
> solved the problem.

thanks for the tip, but it works some of the time - it's only the
occasional (1 out of 10?) times that it locks up, so I'm assuming it's
not a password problem.

The rsync is all coming from one machine, so I don't know why it's only
failing some of the time - I would guess if it's a password problem, it
would fail all the time!

thanks,
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

Goto, n.:
	A programming tool that exists to allow structured programmers
	to complain about unstructured programmers.
		-- Ray Simard

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-09-28  5:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-25  0:59 [gentoo-user] rsync "locks up" and doesn't continue Iain Buchanan
2006-09-27 19:03 ` Stewart Taylor
2006-09-28  5:47   ` Iain Buchanan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox