Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 362697 - net-proxy/http-replicator no longer serves tbz2 packages with python 2.7
Summary: net-proxy/http-replicator no longer serves tbz2 packages with python 2.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: Gentoo Network Proxy Developers (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-09 10:39 UTC by Paul Hewlett
Modified: 2012-05-04 01:36 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Hewlett 2011-04-09 10:39:23 UTC
I use http-replicator to serve binary packages. Since the upgrade to python 2.7 this fails with msgdirac portage # emerge -auDNg --with-bdeps y world


!!! Binhost package index  has no TIMESTAMP field.

Fetching bininfo from http://gould:8080/All
Loaded metadata pickle.
!!! Error connecting to 'http://gould:8080/All'.
!!! Unable to get listing: None Server request failed: must be string or buffer, not dict

These are the packages that would be merged, in order:



Reproducible: Always

Steps to Reproduce:
1.emerge update master machine 
2.emerge update slave machine
3.



NB - this is from the slave machine(dirac) - master is (gould):

dirac portage # emerge --info
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.11.3-r0, 2.6.38-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-1.12.14
Timestamp of tree: Sat, 09 Apr 2011 01:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=core2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="rsync://ftp.snt.utwente.nl/gentoo ftp://de-mirror.org/distro/gentoo/ ftp://ftp.swin.edu.au/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US af_ZA en_ZA st_ZA xh_ZA zu_ZA en_GB"
MAKEOPTS="-j3"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://gould/gentoo-portage"
USE="64bit 7zip X X509 a52 aac ace acl acm acpi activefilter addns addressbook administrator ads aio akode akonadi alac alias alsa amarok amavis amd64 amr amrnb amrr amrwb analogtv apache2 apcupsd api archive ares assistant bash-completion berkdb blender-game bluetooth boost branding btrfs bzip2 cairo caps cdaudio cdda cddb cdio cdparanoia cdr cgi cjk clamav clamd cli clucene cmake consolekit cpudetection cracklib crypt cups curl cvs cvsgraph cxx dbm dbus declarative desktopglobe device-mapper dga disk-partition djvu dlna dovecot-sasl dri dts dv dvb dvd dvdr dvdread dvi emboss emovix emulation encode exif expat extensions extra extraengine extras fam fbcon fbcondecor festival ffmpeg firefox firefox3 flac flask fontconfig foomaticdb fortran freetds fts3 gcj gcrypt gdbm gdu geoip geolocation gif gimp gmail gnomecanvas gnutls gpg gpm gs gsm gstreamer gutenprint handbook haskell httpd hunspell hvm icecast iconv icu idl ilbc image imagemagick imap inotify intel_led ipod ipv6 ipw4965 iscsi jabber jack java java6 javascript jbig jfs jpeg kde kdm kdrive kerberos kernel-helper kernel-patch kexi kig-scripting konqueror kontact kpathsea kqemu ktts kvm kvm-trace lame laptop lash latex latex3 lcms ldap ldb libnotify libsamplerate libwww live lm_sensors loop-aes lua lvm lxc lzma lzo mad maildir md melt memcache mikmod mmx mng modules mp3 mp4 mp4live mpd mpeg mtp mudflap multilib musepack mysql mysqli nagios-dns ncurses netboot network network-cron newt nforce2 nfs nfsv4 nls nptl nptlonly nsplugin nvidia ocaml ocamlduce ocamlopt odk ogg ogg123 ogm okular openexr opengl openmp opensync openvpn oss pae pam pango pcre pdf perl pg-intdatetime phonon php plasma plotutils pmount pmu png policykit posix postfix postgis postgres ppds pppd procmail pulseaudio pygrub python python2 pyx qemu qemu-ifup qt-dbus qt-webkit qt3support qt4 qtdesigner qthelp qtmultimedia quicktime quotas radio ramfs rar raw rdesktop readline realmedia reiser4 reiserfs reports resolvconf rpm rss rtf samba sasl scanner scintilla screen screenshot script scsi sdl semantic-desktop sensord serial server session slp smbclient smbsharemodes smi smp sms sndfile snmp sox spamassassin span speex spell sql sqlite sse sse2 sse3 ssl startup-notification stream strigi subversion svg swat symlink sysfs tcpd templates theora threads threadsafe tiff tk truetype udev uml unicode unison unzip usb utempter utils uuencode v4l2 valgrind vboxwebsrv vde video vim-pager vim-syntax vim-with-x virt-network virtualbox vistafree visualization vnc voice vorbis vorbis-psy wav wavpack webcam webdav webdav-neon webdav-serf webkit webpresence wifi winbind wininst winpopup wireshark wma wmf wmp wordperfect x264 xattr xcb xcomposite xfs xft xine xinerama xml xorg xosd xpm xprint xrandr xrender xscreensaver xsm xulrunner xv xvid xvmc zip zlib zodb" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="cgid authz_host dir mime" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US af_ZA en_ZA st_ZA xh_ZA zu_ZA en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev intel vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-11 04:24:19 UTC
Is the server running? You don't seem to have included config/log information about the server side.
Comment 2 Paul Hewlett 2011-05-30 09:44:57 UTC
I have fixed this. MY /etc/conf.d/http-replicator file had the following line:

DAEMON_OPTS="$DAEMON_OPTS --alias /var/portage/packages/All:All"

Changing it to :

DAEMON_OPTS="$DAEMON_OPTS --alias /var/portage/packages:All"

fixed the problem.
Comment 3 Christoph Junghans (RETIRED) gentoo-dev 2012-05-03 20:40:36 UTC
(In reply to comment #2)
> I have fixed this. MY /etc/conf.d/http-replicator file had the following
> line:
> 
> DAEMON_OPTS="$DAEMON_OPTS --alias /var/portage/packages/All:All"
> 
> Changing it to :
> 
> DAEMON_OPTS="$DAEMON_OPTS --alias /var/portage/packages:All"
> 
> fixed the problem.

Well, /var/portage/packages/All was the old way to organize PKGDIR, I will change the line to the new default and make a note for older portage versions.

@Zac: do we still have a portage version in the tree enforcing that old layout?
Comment 4 Zac Medico gentoo-dev 2012-05-03 21:08:35 UTC
(In reply to comment #3)
> @Zac: do we still have a portage version in the tree enforcing that old
> layout?

No, the new layout is supported since portage-2.1.6.
Comment 5 Christoph Junghans (RETIRED) gentoo-dev 2012-05-04 01:36:04 UTC
Fixed example conf.