Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 195199

Summary: emerge-webrsync fails to resume or redownload broken snapshot
Product: Portage Development Reporter: Daniele C. <legolas558>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED OBSOLETE    
Severity: normal CC: alex_y_xu
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Daniele C. 2007-10-09 10:34:58 UTC
I launched emerge-webrsync:
$ sudo emerge-webrsync

The download started, but no progress bar was shown, so I interrupted the program execution.

Next I could not more resume emerge-webrsync execution because I got the messages:
$ sudo emerge-webrsync
Fetching most recent snapshot
Attempting to fetch file dated: 20071008
portage-20071008.tar.bz2: FAILED
md5sum: WARNING: 1 of 1 computed checksum did NOT match
$ 

The above errors does not always happen, but most times does (sorry cannot be more precise).

With the above (apparenty unrecoverable) faulty situation, I did:
$ ls -ahl /var/tmp/emerge-webrsync
124K -rw-r--r-- 1 root root 121K  9 ott 12:15 portage-20071008.tar.bz2
300K -rw-r--r-- 1 root root 297K  9 ott 12:12 portage-20071008.tar.bz2.1
4,0K -rw-r--r-- 1 root root   59  9 ott 11:45 portage-20071008.tar.bz2.md5sum

After deleting the temporary files:
$ sudo rm -f /var/tmp/emerge-webrsync/*

Everything went OK and I could run again emerge-webrsync

I think that if emerge-webrsync finds the snapshot file locally it should attempt to resume like emerge does - or at least allow automatic redownload.
Comment 1 Alex Xu (Hello71) 2015-06-10 16:40:01 UTC
emerge-webrsync now creates a randomly-named temp directory in ${PORTAGE_TMPDIR} and tries to clean it up before exiting.