On Monday 31 January 2011 17:16:05 Richard wrote:
On Mon, Jan 31, 2011 at 04:13:33PM +0000, Anne Wilson wrote:
> On Monday 31 January 2011 14:21:32 Richard wrote:
> > On Mon, Jan 31, 2011 at 12:28:04PM +0000, Anne Wilson wrote:
> > > On Monday 31 January 2011 11:39:55 Martin (KDE) wrote:
> > > > Ane, cann you run "lsof | grep pid-of-rsync" if it hangs
(where
> > > > pid-of-rsync is the pid of a rsync process of course)? This command
> > > > will give you all files rsync tries to attach (at the time you run
> > > > lsof). If there are more rsync processes, try grep -E
> > > > "(pid1|pid2|pid3)" instead of the simple grep.
> > >
> > > I seem to be getting the syntax wrong:
> > >
> > > lsof | grep -E (3180|3181|3183)
> > > bash: syntax error near unexpected token `('
> >
> > not sure if you tried this or took my previous example literally..
> > $pid was meant to be replaced by the actual PID of rsync. Did realise
> > too late that my example was very confusing.
> >
> > Try
> >
> > ps axf|grep rsync
> >
> > take the PID from it and do
> >
> > ll /proc/pid-number/fd
>
> No problem - I did realise that.
>
> This command gives me three separate pids, the same three as I listed in
> the command. Each of those pids lists a whole set of files that it has,
> presumably, compared when compiling the file list for transfer. They
> all appear to have the same file list. All of them end with
>
> /home/anne/WebPages /mnt/server_home/anne/
not sure if we are talking about the same thing, I was expecting something
like
$ ll /proc/9661/fd
total 0
lrwx------ 1 rz rz 64 2011-01-31 18:09 0 -> /dev/pts/7
lrwx------ 1 rz rz 64 2011-01-31 18:09 1 -> /dev/pts/7
lrwx------ 1 rz rz 64 2011-01-31 18:09 2 -> /dev/pts/7
lr-x------ 1 rz rz 64 2011-01-31 18:09 3 -> /home/rz/Mail/kde-lists
Is your rsync having all files open at the same time? Can't really
immagine.. but never have debugged rsync.
I did eventually get a file list of that format (totally different content)
from one of the commands. Unfortunately I reached the stage where I had to
give in and reboot. I can't spare any more time for it tonight, but I'll go
back to it tomorrow.
Another method to debug is to start the rsync command with
"strace -o rsync-debug.log -f rsync arguments"
You can look at the debug log with any viewer or do something like
"grep open rsync-debug.log"
and post the last 30 lines here.
OK, I'll try that too. Thanks.
Anne
--
New to KDE Software? - get help from
http://userbase.kde.org