Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549482 - sync: rsync plugin can't handle repos without timestamp.chk
Summary: sync: rsync plugin can't handle repos without timestamp.chk
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 240187
  Show dependency tree
 
Reported: 2015-05-14 17:46 UTC by Michał Górny
Modified: 2015-12-12 12:05 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-05-14 17:46:44 UTC
Long story short, most of rsync repos in repositories.xml fail:

>>> Syncing repository 'R_Overlay' into '/home/mgorny/repos/R_Overlay'...
receiving incremental file list
rsync: link_stat "/metadata/timestamp.chk" (in roverlay) failed: No such file or directory (2)

Number of files: 0
Number of created files: 0
Number of regular files transferred: 0
Total file size: 0 bytes 
Total transferred file size: 0 bytes 
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 108
Total bytes sent: 51
Total bytes received: 108

sent 51 bytes  received 108 bytes  106.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1637) [Receiver=3.1.1]
Comment 1 Zac Medico gentoo-dev 2015-05-14 18:20:31 UTC
Maybe we should add a repos.conf setting to control this, and enable it in the default [gentoo] configuration.
Comment 2 Nikoli 2015-05-15 04:06:41 UTC
This bug seems to be related to bug #488972
Comment 3 Zac Medico gentoo-dev 2015-05-16 22:16:15 UTC
(In reply to Nikoli from comment #2)
> This bug seems to be related to bug #488972

Yes, it's possible for the overlay to use the egencache --write-timestamp option to create metadata/timestamp.chk.
Comment 4 Sebastian 2015-12-12 08:22:16 UTC
Hello all,

I download portage snapshots on one PC (A) and then use rsync on the other PCs to update portage from A. Since a few days I have the following issue. The snaptshots don't contain "/metadata/timestamp.chk" anymore. So rsync on the other PCs fails with the error you already mentioned:

rsync: link_stat "/metadata/timestamp.chk" (in roverlay) failed: No such file or directory (2)

Should I raise a new bug for this? Is this already a known issue?

Thanks!

Sebastian
Comment 5 and 2015-12-12 12:05:23 UTC
Confirmed,
since
https://distfiles.gentoo.org/snapshots/portage-20151209.tar.xz
no metadata/timestamp.chk include anymore.

When using these daily portage archives as local source for rsync server,
emerge (2.2.24) will complain.

receiving incremental file list
rsync: link_stat "/metadata/timestamp.chk" (in gentoo-portage) failed: No such file or directory (2)