ros-infrastructure / buildfarm

Build scripts and notes for catkin debian build pipeline.
6 stars 15 forks source link

transparent proxy causes hash sum mismatch #9

Closed tfoote closed 12 years ago

tfoote commented 12 years ago

In the debbuilds. If the sourcedebs are reuploaded with the same filename the transparent proxy provides the old copy causing hash mismatches.

+ git clone git://github.com/willowgarage/catkin-debs.git
Initialized empty Git repository in /home/rosbuild/hudson/workspace/ros-fuerte-genpy_binarydeb_lucid_i386/catkin-debs/.git/
+ sudo /home/rosbuild/hudson/workspace/ros-fuerte-genpy_binarydeb_lucid_i386/catkin-debs/scripts/jenkins/apt_env/setup_apt_root.py lucid i386 /var/cache/pbuilder-fuerte-lucid-i386/apt-conf-0 --local-conf-dir /home/rosbuild/hudson/workspace/ros-fuerte-genpy_binarydeb_lucid_i386
+ sudo /home/rosbuild/hudson/workspace/ros-fuerte-genpy_binarydeb_lucid_i386/catkin-debs/scripts/jenkins/apt_env/assert_package_dependencies_present.py /var/cache/pbuilder-fuerte-lucid-i386/apt-conf-0 /home/rosbuild/hudson/workspace/ros-fuerte-genpy_binarydeb_lucid_i386/apt.conf ros-fuerte-genpy -u
Reading package lists...
Building dependency tree...
Need to get 52.5kB of source archives.
Get:1 http://50.28.27.175/repos/building/ lucid/main ros-fuerte-genpy 0.2.3-0lucid (dsc) [896B]
Get:2 http://50.28.27.175/repos/building/ lucid/main ros-fuerte-genpy 0.2.3-0lucid (tar) [49.8kB]
Get:3 http://50.28.27.175/repos/building/ lucid/main ros-fuerte-genpy 0.2.3-0lucid (diff) [1814B]
Failed to fetch http://50.28.27.175/repos/building/pool/main/r/ros-fuerte-genpy/ros-fuerte-genpy_0.2.3-0lucid.dsc  Hash Sum mismatch
Failed to fetch http://50.28.27.175/repos/building/pool/main/r/ros-fuerte-genpy/ros-fuerte-genpy_0.2.3-0lucid.debian.tar.gz  Hash Sum mismatch
Fetched 52.5kB in 0s (0B/s)
E: Failed to fetch some archives.
Exception processing package ros-fuerte-genpy: Command '['apt-get', 'source', 'ros-fuerte-genpy', '-c', '/home/rosbuild/hudson/workspace/ros-fuerte-genpy_binarydeb_lucid_i386/apt.conf']' returned non-zero exit status 100
Dependencies not satisfied for packages: ['ros-fuerte-genpy']
Notifying upstream projects of job completion
Finished: FAILURE
tfoote commented 12 years ago

Manually clearing the squid cache fixed this instance of the problem.

kwc commented 12 years ago

two causal issues: squid proxy is not updating its cache, and sourcedeb jobs get multi-triggered for each release as the trigger off any SCM change

tfoote commented 12 years ago

You can nolonger upload sourcedebs with the same filename, thus we won't hit this error again. fd7ae846545fc2a926f164e23df9781c2a092575

example:

+ dput -u -c /home/rosbuild/hudson/workspace/fuerte_ros_tutorials_sourcedeb/output/dput.cf uploadhost /home/rosbuild/hudson/workspace/fuerte_ros_tutorials_sourcedeb/output/ros-fuerte-ros-tutorials_0.2.8-0lucid_source.changes
File "pool/main/r/ros-fuerte-ros-tutorials/ros-fuerte-ros-tutorials_0.2.8-0lucid.dsc" is already registered with different checksums!
md5 expected: 7bdd2f0fd3262f1e2244633f6ee82c24, got: 896d68fac81a365bef5ff40b5ad85af4
sha1 expected: 784596ab16899b8b9c93dcd75ae8f02c42d946e2, got: acb6d423cfcff54e924a387009deeb4d4b9e4f08
sha256 expected: 0770b51a5eb47149888ec85dd05fa28a1141bc9f6dd50e7a8e2f280bae52b27c, got: 6bcf5c929ecce70f24e043173466aca497bb1383c437059311151d2b0445ca97
There have been errors!
Error: post upload command failed.
Package includes an .orig.tar.gz file although the debian revision suggests
that it might not be required. Multiple uploads of the .orig.tar.gz may be
rejected by the upload queue management software.
Uploading to uploadhost (via scp to 50.28.27.175):
Successfully uploaded packages.
Notifying upstream projects of job completion
Finished: FAILURE