Bug 1256 - fetcher reports a download failure when only the SRC_URI checksums mismatched
Summary: fetcher reports a download failure when only the SRC_URI checksums mismatched
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 1.0
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1
Assignee: Ke Yu
QA Contact:
URL:
Whiteboard: patch sent out. Aug 9
Depends on:
Blocks:
 
Reported: 2011-07-18 18:12 UTC by Scott Garman
Modified: 2011-08-10 06:30 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Garman 2011-07-18 18:12:06 UTC
A recent change to the bitbake fetcher causes the fetcher to re-try downloads when a bad checksum is detected. This is a good change, but the default user interface does not report any problems with the checksum, but acts as if the download itself failed:

NOTE: Running task 1 of 1 (ID: 0, /toastssd/poky/meta/recipes-multimedia/libpng/libpng_1.2.46.bb, do_fetch)
NOTE: package libpng-1.2.46-r0: task do_fetch: Started
ERROR: Function 'Fetcher failure for URL: 'http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2'. Unable to fetch URL http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2 from any source.' failed
ERROR: Logfile of failure stored in: /toastssd/poky/build/tmp/work/i586-poky-linux/libpng-1.2.46-r0/temp/log.do_fetch.20615
Log data follows:
| NOTE: fetch http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2
| NOTE: fetch http://autobuilder.yoctoproject.org/sources/libpng-1.2.46.tar.bz2
| ERROR: Function 'Fetcher failure for URL: 'http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2'. Unable to fetch URL http://downloads.sourceforge.net/project/libpng/libpng12/1.2.46/libpng-1.2.46.tar.bz2 from any source.' failed
NOTE: package libpng-1.2.46-r0: task do_fetch: Failed
ERROR: Task 0 (/toastssd/poky/meta/recipes-multimedia/libpng/libpng_1.2.46.bb, do_fetch) failed with exit code '1'
ERROR: '/toastssd/poky/meta/recipes-multimedia/libpng/libpng_1.2.46.bb' failed

This confused me as I went back and forth using wget to fetch the URL successfully, and it took me a while before I realized (using bitbake -DD) that the problem was due to a checksum mismatch.

A solution to this is to have bitbake report the checksum mismatch at the default debug level.