Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531278 - www-client/firefox-bin - FTP fetch is unreliable, please add HTTP mirror to SRC_URI
Summary: www-client/firefox-bin - FTP fetch is unreliable, please add HTTP mirror to S...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal major (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-30 22:54 UTC by Peter Harpending
Modified: 2016-01-27 05:41 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 Peter Harpending 2014-11-30 22:54:09 UTC
Emerging www-client/firefox-bin fails, because the connections time out when it tries to fetch. This may an upstream issue, or it could be that the gentoo package has the wrong url. Here's the output of "emerge -v www-client/firefox-bin":

------------------------

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

Calculating dependencies... done!
[ebuild     U  ] www-client/firefox-bin-33.0 [31.2.0-r1] USE="startup-notification (-selinux)" LINGUAS="de eo -af -ar -as -ast -be -bg -bn_BD -bn_IN -br -bs -ca -cs -csb -cy -da -el -en_GB -en_ZA -es_AR -es_CL -es_ES -es_MX -et -eu -fa -fi -fr -fy_NL -ga_IE -gd -gl -gu_IN -he -hi_IN -hr -hu -hy_AM -id -is -it -ja -kk -kn -ko -ku -lt -lv -mai -mk -ml -mr -nb_NO -nl -nn_NO -or -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv_SE -ta -te -tr -uk -vi -zh_CN -zh_TW -zu" 42,440 KiB

Total: 1 package (1 upgrade), Size of downloads: 42,440 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) www-client/firefox-bin-33.0::gentoo
>>> Downloading 'ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi/de.xpi'
--2014-11-30 15:46:32--  ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi/de.xpi
           => ‘/usr/portage/distfiles/firefox-33.0-de.xpi’
Resolving ftp.mozilla.org... 63.245.215.56, 63.245.215.46
Connecting to ftp.mozilla.org|63.245.215.56|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi ... done.
==> SIZE de.xpi ... 405657
==> PASV ... couldn't connect to 63.245.215.56 port 52085: Connection timed out
Retrying.

--2014-11-30 15:47:33--  ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi/de.xpi
  (try: 2) => ‘/usr/portage/distfiles/firefox-33.0-de.xpi’
Connecting to ftp.mozilla.org|63.245.215.56|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi ... done.
==> SIZE de.xpi ... 405657
==> PASV ... couldn't connect to 63.245.215.56 port 51738: Connection timed out
Retrying.

--2014-11-30 15:48:36--  ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi/de.xpi
  (try: 3) => ‘/usr/portage/distfiles/firefox-33.0-de.xpi’
Connecting to ftp.mozilla.org|63.245.215.56|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi ... done.
==> SIZE de.xpi ... 405657
==> PASV ... couldn't connect to 63.245.215.56 port 51321: Connection timed out
Giving up.

!!! Couldn't download 'firefox-33.0-de.xpi'. Aborting.
 * Fetch failed for 'www-client/firefox-bin-33.0', Log file:
 *  '/var/tmp/portage/www-client/firefox-bin-33.0/temp/build.log'

>>> Failed to emerge www-client/firefox-bin-33.0, Log file:

>>>  '/var/tmp/portage/www-client/firefox-bin-33.0/temp/build.log'

 * Messages for package www-client/firefox-bin-33.0:

 * Fetch failed for 'www-client/firefox-bin-33.0', Log file:
 *  '/var/tmp/portage/www-client/firefox-bin-33.0/temp/build.log'


------------------------

Here is the build.log:

------------------------

>>> Downloading 'ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi/de.xpi'
--2014-11-30 15:46:32--  ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi/de.xpi
           => ‘/usr/portage/distfiles/firefox-33.0-de.xpi’
Resolving ftp.mozilla.org... 63.245.215.56, 63.245.215.46
Connecting to ftp.mozilla.org|63.245.215.56|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi ... done.
==> SIZE de.xpi ... 405657
==> PASV ... couldn't connect to 63.245.215.56 port 52085: Connection timed out
Retrying.

--2014-11-30 15:47:33--  ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi/de.xpi
  (try: 2) => ‘/usr/portage/distfiles/firefox-33.0-de.xpi’
Connecting to ftp.mozilla.org|63.245.215.56|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi ... done.
==> SIZE de.xpi ... 405657
==> PASV ... couldn't connect to 63.245.215.56 port 51738: Connection timed out
Retrying.

--2014-11-30 15:48:36--  ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi/de.xpi
  (try: 3) => ‘/usr/portage/distfiles/firefox-33.0-de.xpi’
Connecting to ftp.mozilla.org|63.245.215.56|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi ... done.
==> SIZE de.xpi ... 405657
==> PASV ... couldn't connect to 63.245.215.56 port 51321: Connection timed out
Giving up.

!!! Couldn't download 'firefox-33.0-de.xpi'. Aborting.
[31;01m * [39;49;00mFetch failed for 'www-client/firefox-bin-33.0', Log file:
[31;01m * [39;49;00m '/var/tmp/portage/www-client/firefox-bin-33.0/temp/build.log'
Comment 1 Peter Harpending 2014-11-30 22:54:41 UTC
Portage 2.2.14 (python 2.7.8-final-0, default/linux/amd64/13.0/desktop, gcc-4.8.3, glibc-2.20, 3.16.5-gentoo x86_64)
=================================================================
System uname: Linux-3.16.5-gentoo-x86_64-Intel-R-_Core-TM-_i5-4670K_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16377180 total,    828212 free
KiB Swap:   25165820 total,  25160548 free
Timestamp of tree: Sun, 30 Nov 2014 19:30:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2 [disabled]
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r3
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.1
dev-util/ccache:          3.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3, 4.9.1::mipl_emc
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo mv betagarden sage-on-gentoo mva angelos rion causelay raiagent drdim mipl_emc
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE CC-BY-ND-3.0 CC-BY-NC-SA-4.0 OFL-1.0"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mv /var/lib/layman/betagarden /var/lib/layman/sage-on-gentoo /var/lib/layman/mva /var/lib/layman/angelos /var/lib/layman/rion /var/lib/layman/causelay /var/lib/layman/raiagent /var/lib/layman/drdim /var/lib/layman/emc"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam flac fortran gdbm gif gnome-keyring gpm gtk iconv ipv6 jpeg lcms ldap libnotify lprng-compat mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xetex xft xinerama xml xv xvid zlib" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" 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 ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en de eo" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, SYNC, USE_PYTHON
Comment 2 Peter Harpending 2014-12-01 01:44:46 UTC
A temporary solution is 

echo "<=www-client/firefox-bin-33.0" >> /etc/portage/package.mask
Comment 3 charles17 2014-12-01 08:54:56 UTC
wfm
Comment 4 Peter Harpending 2014-12-01 13:48:44 UTC
Ack, the temp. solution is

echo ">=www-client/firefox-bin-33.0" >> /etc/portage/package.mask

Silly me and my errors.
Comment 5 Ben Kohler gentoo-dev 2014-12-01 16:38:31 UTC
This just looks like an interaction between a fussy FTP server (on Mozilla's end) and an odd NAT/firewall setup (on your end).  

I don't see how this could possibly be fixed by gentoo.  You can't connect to Mozilla's FTP, they only host it on FTP, and gentoo can't mirror it.
Comment 6 Peter Harpending 2014-12-01 17:21:21 UTC
I do have trouble with FTP connections, so I'll look into that.
Comment 7 charles17 2014-12-02 12:04:40 UTC
(In reply to Ben Kohler from comment #5)
> I don't see how this could possibly be fixed by gentoo.  You can't connect
> to Mozilla's FTP, they only host it on FTP, and gentoo can't mirror it.

It's also on http:
http://ftp.mozilla.org/pub/mozilla.org/firefox/releases//33.0/linux-i686/xpi/
Comment 8 Ben Kohler gentoo-dev 2015-01-15 15:26:42 UTC
Mozilla team, can you please add an HTTP mirror in SRC_URI? This would help lots of users.

Thanks!
Comment 9 alexander haensch 2015-02-10 17:04:50 UTC
Yes adding http(s) would be great!
In my network, ftp is blocked by the firewall.
Comment 10 Ian Stakenvicius (RETIRED) gentoo-dev 2015-07-16 19:39:14 UTC
I've added support for this for firefox-bin-39.  We will have to see how well this works, especiail after firefox-40 arrives.  Report back if there are issues.

Similar rollouts for thunderbird-bin and seamonkey-bin will come after confirming it works well for firefox-bin.  Leaving this bug open until then.
Comment 11 Dmitry Ivankov 2015-08-08 05:26:47 UTC
ftp://ftp.mozilla.org/pub is gone now
ftp://ftp.mozilla.org/README says switch to http://archive.mozilla.org
So now it has to be done, especially wrt recent pdfjs vulnerability.
Comment 12 Leho Kraav (:macmaN @lkraav) 2015-08-08 12:27:30 UTC
Correct.

>>> Downloading 'ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases//38.1.1esr/linux-i686/xpi/et.xpi'
--2015-08-08 15:26:24--  ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases//38.1.1esr/linux-i686/xpi/et.xpi
           => ‘/usr/local/portage/distfiles/firefox-38.1.1esr-et.xpi’
Resolving ftp.mozilla.org (ftp.mozilla.org)... 63.245.215.56, 63.245.215.46
Connecting to ftp.mozilla.org (ftp.mozilla.org)|63.245.215.56|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /pub/mozilla.org/firefox/releases//38.1.1esr/linux-i686/xpi ... 
No such directory ‘pub/mozilla.org/firefox/releases//38.1.1esr/linux-i686/xpi’.

!!! Couldn't download 'firefox-38.1.1esr-et.xpi'. Aborting.
 * Fetch failed for 'www-client/firefox-bin-38.1.1', Log file:
 *  '/var/tmp/portage/www-client/firefox-bin-38.1.1/temp/build.log'

>>> Failed to emerge www-client/firefox-bin-38.1.1, Log file:
Comment 13 Sergey Popov gentoo-dev 2016-01-27 05:41:44 UTC
As i see, all current in-tree ebuilds of www-client/firefox-bin use http instead of ftp in SRC_URI. Closing this as FIXED