Public bug reported:
Binary package hint: debmirror
I am using Ubuntu Lucid 64bit, I am partially mirroring some archives
(Ubuntu and Debian), I use a bash script to restart the mirroring
process in case it failed.
I have noticed that it exits returning code zero even though there were
errors downloading some files, expected behavior is to return a code
other than zero
That's the script I use:
for a in {1..100}
do
echo started at $(date) mirroring $tar
debmirror --progress --verbose --host=ftp.debian.com --root=/debian/
--method=ftp --passive --dist=$tar,$tar-proposed-updates
--section=main,contrib,non-free --arch=i386,amd64 --di-dist=$tar
--di-arch=i386,amd64 --nosource --ignore-missing-release --ignore-release-gpg
--timeout=240 --ignore-small-errors --postcleanup --cleanup
/media/repos/Debian/$tar
exit_code=$?
echo "Exit Code : $exit_code"
if [ "$exit_code" -eq "0" ]; then
{
echo ---- After $a tryouts ----
echo "---- ALL DONE ----"
echo ended at $(date) mirroring $tar
break
}
fi
done
output errors are:
[ 12%] Getting:
pool/updates/main/x/xulrunner/xulrunner-1.9-dbg_1.9.0.19-2_amd64.deb
############################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################
Unable to close datastream at /usr/bin/debmirror line 1697
failed:Opening BINARY mode data connection for
pool/updates/main/x/xulrunner/xulrunner-1.9-dbg_1.9.0.19-2_amd64.deb (50368084
bytes).
[ 12%] Getting:
pool/updates/main/x/xulrunner/xulrunner-1.9-dbg_1.9.0.19-2_i386.deb #
failed: at /usr/bin/debmirror line 1703.
[ 12%] Getting:
pool/updates/main/x/xulrunner/xulrunner-1.9-gnome-support_1.9.0.19-2_amd64.deb
# failed: at /usr/bin/debmirror line 1703.
[ 12%] Getting:
pool/updates/main/x/xulrunner/xulrunner-1.9-gnome-support_1.9.0.19-2_i386.deb
# failed:Connection closed at /usr/bin/debmirror line 1703.
[ 12%] Getting:
pool/updates/main/x/xulrunner/xulrunner-1.9_1.9.0.19-2_amd64.deb #
failed:Connection closed at /usr/bin/debmirror line 1703.
[ 12%] Getting: pool/updates/main/x/xulrunner/xulrunner-1.9_1.9.0.19-2_i386.deb
# failed:Connection closed at /usr/bin/debmirror line 1703.
[ 12%] Getting:
pool/updates/main/x/xulrunner/xulrunner-dev_1.9.0.19-2_amd64.deb #
failed:Connection closed at /usr/bin/debmirror line 1703.
[ 12%] Getting: pool/updates/main/x/xulrunner/xulrunner-dev_1.9.0.19-2_i386.deb
# failed:Connection closed at /usr/bin/debmirror line 1703.
Downloaded 16 MiB in 3062s at 5.48 kiB/s.
Everything OK. Moving meta files.
All done.
Errors:
Download of
pool/updates/main/x/xulrunner/xulrunner-1.9-dbg_1.9.0.19-2_amd64.deb failed:
Opening BINARY mode data connection for
pool/updates/main/x/xulrunner/xulrunner-1.9-dbg_1.9.0.19-2_amd64.deb (50368084
bytes).
Download of
pool/updates/main/x/xulrunner/xulrunner-1.9-dbg_1.9.0.19-2_i386.deb failed:
Download of
pool/updates/main/x/xulrunner/xulrunner-1.9-gnome-support_1.9.0.19-2_amd64.deb
failed:
Download of
pool/updates/main/x/xulrunner/xulrunner-1.9-gnome-support_1.9.0.19-2_i386.deb
failed: Connection closed
Download of pool/updates/main/x/xulrunner/xulrunner-1.9_1.9.0.19-2_amd64.deb
failed: Connection closed
Download of pool/updates/main/x/xulrunner/xulrunner-1.9_1.9.0.19-2_i386.deb
failed: Connection closed
Download of pool/updates/main/x/xulrunner/xulrunner-dev_1.9.0.19-2_amd64.deb
failed: Connection closed
Download of pool/updates/main/x/xulrunner/xulrunner-dev_1.9.0.19-2_i386.deb
failed: Connection closed
Failed to download files (8 errors)!
Exit Code : 0
---- After 1 tryouts ----
---- ALL DONE ----
ended at Wed Jun 30 05:09:38 EEST 2010 mirroring security lenny
I tried to reproduce the behavior by starting to mirror then disconnect
the LAN cable. It doesn't always happen.
Please let me know of any other info to provide
Thanks
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: debmirror 1:2.4.4ubuntu2
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
Architecture: amd64
Date: Thu Jul 1 04:42:52 2010
PackageArchitecture: all
ProcEnviron:
LANGUAGE=en_US:en
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: debmirror
** Affects: debmirror (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug lucid
--
debmirror returns exit code zero although there were errors downloading files
https://bugs.launchpad.net/bugs/600460
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs