Opened 9 years ago

Closed 9 years ago

#47621 closed defect (invalid)

fetch failed, but should not

Reported by: bolet@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.3.3
Keywords: Cc:
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

All ports fail to update with the:

Error: org.macports.fetch for port X returned: fetch failed

And every time the list of (apr is just an example, but same happens for all ports):

Attempting to fetch apr-1.5.2.tar.bz2 from http://lil.fr.distfiles.macports.org/apr
Attempting to fetch apr-1.5.2.tar.bz2 from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/apr
...
...
Error: org.macports.fetch for port apr returned: fetch failed
Please see the log file for port apr for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr/apr/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

But if I curl or wget the URL, the file extsits:

pinaud:/ root# wget --spider http://lil.fr.distfiles.macports.org/apr/apr-1.5.2.tar.bz2
converted 'http://lil.fr.distfiles.macports.org/apr/apr-1.5.2.tar.bz2' (ASCII) -> 'http://lil.fr.distfiles.macports.org/apr/apr-1.5.2.tar.bz2' (UTF-8)
Mode « spider » activé. Vérification de l'existence d'un fichier distant.
--2015-05-02 17:42:57--  http://lil.fr.distfiles.macports.org/apr/apr-1.5.2.tar.bz2
Résolution de lil.fr.distfiles.macports.org (lil.fr.distfiles.macports.org)… 87.98.244.45
Connexion à lil.fr.distfiles.macports.org (lil.fr.distfiles.macports.org)|87.98.244.45|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 826885 (808K) [application/x-bzip2]
Le fichier distant existe.

Sorry it's french but you get the "200 OK" message.

What's wrong?

PS : running on 10.4.11, MacPorts is at 2.3.3

Attachments (1)

apr_main.log (6.3 KB) - added by bolet@… 9 years ago.
original path: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr/apr/main.log

Download all attachments as: .zip

Change History (9)

comment:1 Changed 9 years ago by bolet@…

All ports fail to update with the: Error: org.macports.fetch for port X returned: fetch failed

--->  Attempting to fetch apr-1.5.2.tar.bz2 from http://lil.fr.distfiles.macports.org/apr
--->  Attempting to fetch apr-1.5.2.tar.bz2 from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/apr
...
Error: org.macports.fetch for port apr returned: fetch failed
Please see the log file for port apr for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr/apr/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

But if I curl or wget the URL, the file extsits:

pinaud:~/bin root# wget --spider http://lil.fr.distfiles.macports.org/apr/apr-1.5.2.tar.bz2
converted 'http://lil.fr.distfiles.macports.org/apr/apr-1.5.2.tar.bz2' (ASCII) -> 'http://lil.fr.distfiles.macports.org/apr/apr-1.5.2.tar.bz2' (UTF-8)
Mode « spider » activé. Vérification de l'existence d'un fichier distant.
--2015-05-02 17:42:57--  http://lil.fr.distfiles.macports.org/apr/apr-1.5.2.tar.bz2
Résolution de lil.fr.distfiles.macports.org (lil.fr.distfiles.macports.org)… 87.98.244.45
Connexion à lil.fr.distfiles.macports.org (lil.fr.distfiles.macports.org)|87.98.244.45|:80… connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 826885 (808K) [application/x-bzip2]
Le fichier distant existe.

Sorry it's french but you get the "200 OK" message.

What's wrong?

PS : running on 10.4.11, MacPorts is at 2.3.3

comment:2 Changed 9 years ago by IvoClarysse (Ivo Clarysse)

Could you share the contents of

/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr/apr/main.log

Changed 9 years ago by bolet@…

Attachment: apr_main.log added

original path: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr/apr/main.log

comment:3 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Component: portsbase
Description: modified (diff)

comment:4 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Do you use a proxy server on your network? If so, have you informed MacPorts about it? You may either need to set it in System Preferences, or else you may need to set it in macports.conf, I don't know exactly.

comment:5 Changed 9 years ago by bolet@…

Mac is just behind a NAT router, so it has direct Internet access. I used a local apache as a caching proxy for a while, but now stopped. Maybe System Preferences still use it, I will check ASAP. But /opt/local/etc/macports/macports.conf mentions no proxy. And both wget and curl work... maybe they don't use System settings whereas MacPorts does? Thanks for the tip.

comment:6 in reply to:  5 Changed 9 years ago by larryv (Lawrence Velázquez)

Replying to bolet@…:

But /opt/local/etc/macports/macports.conf mentions no proxy. And both wget and curl work... maybe they don't use System settings whereas MacPorts does?

These comments in macports.conf explain exactly where MacPorts gets its proxy settings.

# Override proxy-related environment variables. By default, MacPorts
# takes proxy settings from the environment, from the proxy_* options
# below, and from Network Preferences, in that order. If this is set to
# "yes", MacPorts uses proxy_*, then Network Preferences, then the
# environment. (Note that Network Preferences does not have a setting
# for rsync proxies. Also note that sudo(8) sanitizes its environment on
# OS X 10.5 and later, so it may have to be configured to pass desired
# variables to MacPorts.)
#proxy_override_env  	no

# Proxies. These have no default values. The analogous environment
# variables are "http_proxy", "HTTPS_PROXY", "FTP_PROXY", and
# "RSYNC_PROXY".
#proxy_http          	proxy1:12345
#proxy_https         	proxy2:67890
#proxy_ftp           	proxy3:02139
#proxy_rsync         	proxy4:11377

comment:7 Changed 9 years ago by bolet@…

System Settings were "web proxy" on, I turned it off. Issue fixed. THANKS.

NB: had to use command line.

cd System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support
./networksetup-panther -setwebproxystate "Local Network" off

comment:8 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Great, glad you got it working.

Note: See TracTickets for help on using tickets.