Opened 12 years ago

Closed 12 years ago

#37315 closed defect (fixed)

distfiles available only via FTP are not mirrored

Reported by: dhalperi@… Owned by: wsiegrist@…
Priority: Normal Milestone:
Component: server/hosting Version:
Keywords: Cc:
Port:

Description

I am trying to install the freetds +odbc variant. There appears to be no copy of any of the files it tries to fetch on the Internet, so I had to finally follow the instructions here (https://trac.macports.org/wiki/howto/InstallingOlderPort) to install an old version (@0.91, found via https://trac.macports.org/browser/trunk/dports/databases/freetds/Portfile?rev=98613#L5) that was available on the macports download site (http://distfiles.macports.org/freetds/).

I find it strange that the portfile would be updated out without the new version being available in any of the macports mirrors!

Just wanted to report the problem. Any feedback on what I should do differently in the future is welcome!

Change History (5)

comment:1 in reply to:  description Changed 12 years ago by larryv (Lawrence Velázquez)

Odd. I can fetch the distfile just fine.

% sudo port -d checksum freetds
DEBUG: Copying /Users/larryv/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: Changing to port directory: /Users/larryv/Projects/MacPorts/trunk/dports/databases/freetds
DEBUG: OS darwin/12.2.0 (Mac OS X 10.8) arch i386
DEBUG: org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
DEBUG: org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
DEBUG: adding the default universal variant
DEBUG: Reading variant descriptions from /Users/larryv/Projects/MacPorts/trunk/dports/_resources/port1.0/variant_descriptions.conf
DEBUG: Attempting ln -sf /opt/local/var/macports/build/_Users_larryv_Projects_MacPorts_trunk_dports_databases_freetds/freetds/work /Users/larryv/Projects/MacPorts/trunk/dports/databases/freetds/work
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
DEBUG: egid changed to: 501
DEBUG: euid changed to: 502
DEBUG: Starting logging for freetds
DEBUG: Executing org.macports.main (freetds)
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
DEBUG: egid changed to: 501
DEBUG: euid changed to: 502
DEBUG: fetch phase started at Fri Dec 14 23:19:29 EST 2012
--->  Fetching distfiles for freetds
DEBUG: Can't run fetch on this port without elevated privileges. Escalating privileges back to root.
DEBUG: euid changed to: 0. egid changed to: 0.
DEBUG: changing euid/egid - current euid: 0 - current egid: 0
DEBUG: egid changed to: 501
DEBUG: euid changed to: 502
Warning: Your DNS server(s) incorrectly claim to know the address of nonexistent hosts. This may cause checksum mismatches for some ports.
DEBUG: Executing org.macports.fetch (freetds)
--->  freetds-0.92.405.tar.gz doesn't seem to exist in /opt/local/var/macports/distfiles/freetds
--->  Attempting to fetch freetds-0.92.405.tar.gz from ftp://ftp.freetds.org/pub/freetds/stable/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 2044k  100 2044k    0     0   508k      0  0:00:04  0:00:04 --:--:--  511k
DEBUG: Privilege de-escalation not attempted as not running as root.
DEBUG: checksum phase started at Fri Dec 14 23:19:33 EST 2012
--->  Verifying checksum(s) for freetds
DEBUG: Executing org.macports.checksum (freetds)
--->  Checksumming freetds-0.92.405.tar.gz
DEBUG: Correct (rmd160) checksum for freetds-0.92.405.tar.gz
DEBUG: Correct (sha256) checksum for freetds-0.92.405.tar.gz
%

I can also successfully install freetds +odbc.

Replying to dhalperi@…:

I find it strange that the portfile would be updated out without the new version being available in any of the macports mirrors!

Do you remember if your system tried to fetch from ftp://ftp.freetds.org/pub/freetds/stable/, like mine did?

Just wanted to report the problem. Any feedback on what I should do differently in the future is welcome!

You should generally try to attach main.log, which contains a lot of useful debugging information. Its location is usually printed after a failed install attempt.

Last edited 12 years ago by larryv (Lawrence Velázquez) (previous) (diff)

comment:2 Changed 12 years ago by dhalperi@…

Thanks! My system did indeed try to fetch from ftp.freetds.org like yours did; the connection timed out.

I just switched ISPs (walked to a nearby coffee shop from the university) and this time the download succeeded! Bugs in the tubes, I guess.

I'm still a bit confused why the macports mirrors have older versions of the tar.gz file but not the newest one (the port was changed 5 weeks ago, so it shouldn't be propagation time).

Thanks again!

p.s. I went and looked for main.log, but couldn't find it. Maybe it was auto-deleted when the port cleanly installed this time?

comment:3 in reply to:  2 Changed 12 years ago by larryv (Lawrence Velázquez)

Replying to dhalperi@…:

Thanks! My system did indeed try to fetch from ftp.freetds.org like yours did; the connection timed out.

I just switched ISPs (walked to a nearby coffee shop from the university) and this time the download succeeded! Bugs in the tubes, I guess.

Some ISPs do impose restrictions; we commonly encounter tickets involving blocked rsync connections on port 873 that interfere with port selfupdate.

p.s. I went and looked for main.log, but couldn't find it. Maybe it was auto-deleted when the port cleanly installed this time?

Yes, by default the logs are auto-cleaned after successful builds, unless you set keeplogs in macports.conf or use -k on the command line.

comment:4 Changed 12 years ago by jmroot (Joshua Root)

Component: portsserver/hosting
Keywords: freetds odbc removed
Owner: changed from macports-tickets@… to wsiegrist@…
Summary: impossible to install FreeTDS +odbcdistfiles available only via FTP are not mirrored
Version: 2.1.2

The distfiles mirror is currently unable to download from FTP sites.

comment:5 Changed 12 years ago by wsiegrist@…

Resolution: fixed
Status: newclosed

We recently worked around the no-FTP issue for the slaves but I forgot to apply the workaround to the distfiles server. A full mirror run is in progress now and I manually triggered the mirroring of freetds in the meantime.

http://distfiles.macports.org/freetds/freetds-0.92.405.tar.gz

Note: See TracTickets for help on using tickets.