FS#22035 - Pacman says "package installation complete" on connection refused

Attached to Project: Pacman
Opened by Dieter Plaetinck (Dieter_be) - Thursday, 09 December 2010, 17:37 GMT
Last edited by Dan McGee (toofishes) - Monday, 13 December 2010, 19:42 GMT
Task Type Bug Report
Category General
Status Closed
Assigned To Dan McGee (toofishes)
Architecture All
Severity Low
Priority Normal
Reported Version 3.4.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I configured a mirror, but made it resolve to localhost, so that all connections refuse.
Pacman clearly shows the relevant errors, but still says "Package Installation Complete." at the end, end exits (1).

Below the output of:
pacman --root /mnt --config /tmp/pacman.conf --noconfirm -S "attr" "bash" "binutils" "bzip2" "coreutils" "cryptsetup" "dash" "dcron" "device-mapper" "dhcpcd" "diffutils" "e2fsprogs" "file" "filesystem" "findutils" "gawk" "gcc-libs" "gen-init-cpio" "gettext" "glibc" "grep" "grub" "gzip" "initscripts" "iputils" "jfsutils" "kernel26" "less" "licenses" "logrotate" "lvm2" "mailx" "man-db" "man-pages" "mdadm" "nano" "net-tools" "pacman" "pciutils" "pcmciautils" "perl" "ppp" "procps" "psmisc" "reiserfsprogs" "rp-pppoe" "sed" "shadow" "sysfsutils" "syslog-ng" "sysvinit" "tar" "tcp_wrappers" "texinfo" "udev" "usbutils" "util-linux-ng" "vi" "wget" "which" "wpa_supplicant" "xfsprogs"
resolving dependencies...
looking for inter-conflicts...

Targets (97): linux-api-headers-2.6.34-1 tzdata-2010o-1 glibc-2.12.1-4 attr-2.4.44-1 ncurses-5.7-4 readline-6.1.002-2 bash-4.1.009-1 zlib-1.2.5-2 binutils-2.20.1-4 bzip2-1.0.6-1 gcc-libs-4.5.1-2 db-5.1.19-3 cracklib-2.8.16-1 pam-1.1.1-2 shadow-4.1.4.2-3 acl-2.2.49-1 gmp-5.0.1-1 libcap-2.19-1 coreutils-8.7-1 iana-etc-2.30-1 filesystem-2010.10-1 util-linux-ng-2.18-3 libusb-1.0.8-1 pcre-8.10-2 glib2-2.26.1-1 module-init-tools-3.12-1 udev-164-2 device-mapper-2.02.77-1 libgpg-error-1.9-2 libgcrypt-1.4.6-1 popt-1.16-2 cryptsetup-1.1.3-1 dash-0.5.6.1-1 dcron-4.4-2 dhcpcd-5.2.8-1 diffutils-3.0-1 e2fsprogs-1.41.12-1 file-5.04-3 findutils-4.4.2-3 gawk-3.1.8-2 gen-init-cpio-2.6.32-1 gettext-0.18.1.1-1 grep-2.7-1 sed-4.2.1-3 grub-0.97-17 gzip-1.4-2 net-tools-1.60-14 kbd-1.15.2-1 sysvinit-2.88-2 initscripts-2010.07-2 iputils-20100214-2 jfsutils-1.1.14-2 linux-firmware-20101108-1 mkinitcpio-busybox-1.17.2-1 which-2.20-4 mkinitcpio-0.6.7-1 kernel26-2.6.36.1-3 less-436-2 licenses-2.6-1 logrotate-3.7.9-1 lvm2-2.02.77-1 mailx-8.1.1-7 gdbm-1.8.3-7 perl-5.12.1-3 texinfo-4.13a-5 groff-1.20.1-4 man-db-2.5.9-1 man-pages-3.31-1 mdadm-3.1.4-1 nano-2.2.6-1 xz-5.0.0-1 openssl-1.0.0.c-1 expat-2.0.1-5 libarchive-2.8.4-2 libfetch-2.33-1 pacman-mirrorlist-20100825-1 pacman-3.4.1-1 pciutils-3.1.7-1 sysfsutils-2.1.0-5 pcmciautils-017-1 libnl-1.1-2 libpcap-1.1.1-1 ppp-2.4.5-1 procps-3.2.8-2 psmisc-22.13-1 reiserfsprogs-3.6.21-2 rp-pppoe-3.10-5 eventlog-0.2.12-1 tcp_wrappers-7.6-12 syslog-ng-3.1.2-1 tar-1.25-1 usbutils-0.91-3 vi-050325-3 wget-1.12-2 dbus-core-1.4.0-1 wpa_supplicant-0.7.3-1 xfsprogs-3.1.4-1

Total Download Size: 1.58 MB
Total Installed Size: 403.10 MB

Proceed with installation? [Y/n]
:: Retrieving packages from core...
error: failed to commit transaction (Connection refused)
error: failed retrieving file 'libusb-1.0.8-1-i686.pkg.tar.xz' from archlinux.mirror.kangaroot.net : Connection refused
error: failed retrieving file 'udev-164-2-i686.pkg.tar.xz' from archlinux.mirror.kangaroot.net : Connection refused
error: failed retrieving file 'texinfo-4.13a-5-i686.pkg.tar.xz' from archlinux.mirror.kangaroot.net : Connection refused
error: failed retrieving file 'usbutils-0.91-3-i686.pkg.tar.xz' from archlinux.mirror.kangaroot.net : Connection refused
error: failed retrieving file 'xfsprogs-3.1.4-1-i686.pkg.tar.xz' from archlinux.mirror.kangaroot.net : Connection refused
warning: failed to retrieve some files from core
Errors occurred, no packages were upgraded.


Package Installation Complete.

This task depends upon

Closed by  Dan McGee (toofishes)
Monday, 13 December 2010, 19:42 GMT
Reason for closing:  Not a bug
Comment by Dan McGee (toofishes) - Thursday, 09 December 2010, 17:41 GMT
Fail. Not sure why we eat the error code somewhere along the way.
Comment by Dan McGee (toofishes) - Monday, 13 December 2010, 04:48 GMT
dmcgee@galway ~/projects/pacman (master)
$ sudo ./src/pacman/pacman --config /tmp/pacman.conf -v --root /tmp/mnt/ -S xfsprogs
..........
error: failed retrieving file 'xfsprogs-3.1.4-1-x86_64.pkg.tar.xz' from localhost : Connection refused
warning: failed to retrieve some files from core
error: failed to commit transaction (Connection refused)
Errors occurred, no packages were upgraded.

dmcgee@galway ~/projects/pacman (master)
$ echo $?
1

Interestingly enough, I'm seeing this exact behavior with both pacman master and maint branches, so I'm going to toss this back to you Dieter to see why it isn't working for you. I've attached my minimal pacman.conf for testing, run with the above command after doing `mkdir /tmp/mnt` and `mkdir -p /tmp/pacman/sync`.
Comment by Dieter Plaetinck (Dieter_be) - Monday, 13 December 2010, 19:26 GMT
note that the OP was not about exit code ( that was already good: 1), but rather the "package installation complete" message.
I've tried to reproduce it on my own pc with your commands, which gives me a similar output as yours.
On my current archiso testbuilds it also behaves similarly. I believe doing the exact same thing on the 2010.05 images (which also ship pacman 3.4.1) showed me the mentioned bogus string.

But since it works fine on my current archiso testbuilds I suggest we close the ticket. Maybe this got fixed with a minor patch in the 3.4.1 series.
Comment by Dan McGee (toofishes) - Monday, 13 December 2010, 19:42 GMT
Oh, it was? Well in that case, it is obvious- that message is in your code, not ours. :)

Loading...