Bug 2871 - rsync fails on chown command.
Summary: rsync fails on chown command.
Status: RESOLVED WORKSFORME
Alias: None
Product: rsync
Classification: Unclassified
Component: core (show other bugs)
Version: 2.6.4
Hardware: PA-RISC HP-UX
: P3 major (vote)
Target Milestone: ---
Assignee: Wayne Davison
QA Contact: Rsync QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-12 14:58 UTC by Jeff Huff
Modified: 2005-07-15 12:21 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Huff 2005-07-12 14:58:51 UTC
When using rsync to copy files within the same server, to a different structure,
have been getting the following errors:
rsync: chown "/newexport/home/huffjl/dmesgout" failed: Invalid argument (22)

The original file looks like:

-rw-r--r--   1 nobody     sys             29 Sep  5  export/home/huffjl/dmesgout

The resultant file looks like this, if copied at all:

----------   1 root       sys             29 Sep  5  export/home/huffjl/dmesgout

After a "quantity" of these errors, rsync just stops, no errors, no messages.

The primary command used was:
rsync -ax /export/home/huffjl/ /newexport/home/huffjl
Comment 1 Wayne Davison 2005-07-15 12:21:36 UTC
I doubt that this is an rsync problem, so I would suggest that you investigate
what is going on with your OS.  Some suggestions:

Use higher levels of verbosity to see what username mapping rsync is doing for
these files.  That might show you what user is having a problem.

Try using the --numeric-ids option to see if that avoids the problem (which
might help you to narrow down what is going wrong).

Try running rsync under strace (or truss, or whatever your OS supplies) to see
what arguments are being passed to the chown() call.  See the issues and
debugging web page, http://rsync.samba.org/issues.html, for a script that can be
used for this purpose.