FS#12396 - Output http_proxy infomation in pacman debug output

Attached to Project: Pacman
Opened by Phillip Smith (fukawi2) - Wednesday, 10 December 2008, 01:28 GMT
Last edited by Dan McGee (toofishes) - Saturday, 03 January 2009, 05:33 GMT
Task Type Bug Report
Category Backend/Core
Status Closed
Assigned To Dan McGee (toofishes)
Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version 3.2.1
Due in Version 3.2.2
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Edit: changed description to reflect actual request. See comment #3.


Running `pacman -Sy` says it is updating package databases, but there not even any tcp traffic generated. Trying `pacman -Syy` doesn't help either.

- Version: pacman 3.2.1
- Fresh FTP installation of x86_64.
- Happens with multiple mirrors.
- DOES work if wget is used in pacman.conf as the XFerCommand
- Installing packages still works fine (using the existing package database). eg, `pacman -S tcpdump` downloads and installs tcpdump fine.
- tcpdump running on my gateway shows no traffic, except when installing a package (as above)
- iptables not setup or running

===========================================================================

Output:
root /tmp # pacman -Sy
:: Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from ftp.archlinux.org : Connection timed out
error: failed to update core (Connection timed out)
root /tmp # pacman -Syy
:: Synchronizing package databases...
error: failed retrieving file 'core.db.tar.gz' from ftp.archlinux.org : Connection timed out
error: failed to update core (Connection timed out)

===========================================================================

pacman.conf: (comments removed)
[options]
HoldPkg = pacman glibc
SyncFirst = pacman
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

ShowSize
TotalDownload

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

===========================================================================

mirrorlist:
Server = ftp://ftp.archlinux.org/$repo/os/x86_64

# Australia
#Server = ftp://mirror.pacific.net.au/linux/archlinux/$repo/os/x86_64

#Server = ftp://mirror.internode.on.net/pub/archlinux/$repo/os/x86_64
#Server = http://mirror.internode.on.net/pub/archlinux/$repo/os/x86_64

===========================================================================

Output from tcpdump on my gateway: (this shows traffic when I install a package as described above)

# tcpdump -lnn host 10.16.1.176
tcpdump: WARNING: bond0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on bond0, link-type EN10MB (Ethernet), capture size 96 bytes

0 packets captured
3357 packets received by filter
0 packets dropped by kernel
This task depends upon

Closed by  Dan McGee (toofishes)
Saturday, 03 January 2009, 05:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  Commit cc7f3b705e
Comment by Phillip Smith (fukawi2) - Wednesday, 10 December 2008, 01:46 GMT
Now downloading packages from existing package cache does NOT work:
pacman -S abcde
error: failed retrieving file : Connection timed out
Comment by Phillip Smith (fukawi2) - Wednesday, 10 December 2008, 02:13 GMT Comment by Phillip Smith (fukawi2) - Wednesday, 10 December 2008, 03:57 GMT
I'm an idiot.

http_proxy environment variable was set which screwed it all up. Not sure why wget still worked though - it normally respects the http_proxy environment var.

Can this be made in to a Feature Request for the --debug output of pacman to include information about any proxy it's using?
Comment by Dan McGee (toofishes) - Wednesday, 10 December 2008, 13:11 GMT
Yeah, this shouldn't be terribly hard to do.
Comment by Dan McGee (toofishes) - Thursday, 11 December 2008, 01:46 GMT
  • Field changed: Status (Unconfirmed → Assigned)
  • Field changed: Category (General → Backend/Core)
  • Field changed: Reported Version (None → 3.2.1)
  • Field changed: Due in Version (Undecided → 3.2.2)
Addressed locally.
Comment by Phillip Smith (fukawi2) - Thursday, 11 December 2008, 01:59 GMT
Thanks guys, that would be cool - hopefully might save another idiot like me creating a bug report ;)

Loading...