[MacPorts] #63613: port install: fetch shouldn't abort the whole command on a 503 error

MacPorts noreply at macports.org
Tue Oct 12 03:39:18 UTC 2021


#63613: port install: fetch shouldn't abort the whole command on a 503 error
-------------------------+--------------------
 Reporter:  greyhare     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  base         |    Version:  2.7.1
 Keywords:               |       Port:
-------------------------+--------------------
 I have no idea why I'm getting 503 errors from `packages.macports.org`,
 but IMHO `port` shouldn't immediately die on 4xx or 5xx errors. It should
 instead try the next download location.

 {{{
 $ sudo port upgrade xterm
 --->  Computing dependencies for xterm
 --->  Fetching archive for xterm
 --->  Attempting to fetch xterm-369_0.darwin_20.x86_64.tbz2 from
 https://packages.macports.org/xterm
 --->  Attempting to fetch xterm-369_0.darwin_20.x86_64.tbz2.rmd160 from
 https://packages.macports.org/xterm
 Error: Failed to archivefetch xterm: Failed to fetch signature for
 archive: The requested URL returned error: 503
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xterm/xterm/main.log
 for details.
 Error: Follow https://guide.macports.org/#project.tickets if you believe
 there
 is a bug.
 }}}

 The `archivefetch` lines from `main.log`:

 {{{
 :msg:archivefetch --->  Fetching archive for xterm
 :debug:archivefetch Executing org.macports.archivefetch (xterm)
 :debug:archivefetch euid/egid changed to: 0/0
 :debug:archivefetch chowned /opt/local/var/macports/incoming to macports
 :debug:archivefetch euid/egid changed to: 502/501
 :info:archivefetch --->  xterm-369_0.darwin_20.x86_64.tbz2 doesn't seem to
 exist in /opt/local/var/macports/incoming/verified
 :msg:archivefetch --->  Attempting to fetch xterm-
 369_0.darwin_20.x86_64.tbz2 from https://packages.macports.org/xterm
 :msg:archivefetch --->  Attempting to fetch xterm-
 369_0.darwin_20.x86_64.tbz2.rmd160 from
 https://packages.macports.org/xterm
 :debug:archivefetch The requested URL returned error: 503
 :debug:archivefetch     while executing
 :debug:archivefetch "curl fetch --effective-url effectiveURL
 {*}$fetch_options ${file_url}.rmd160 $signature"
 :error:archivefetch Failed to archivefetch xterm: Failed to fetch
 signature for archive: The requested URL returned error: 503
 :debug:archivefetch Error code: NONE
 :debug:archivefetch Backtrace: Failed to fetch signature for archive: The
 requested URL returned error: 503
 :debug:archivefetch     while executing
 :debug:archivefetch "portarchivefetch::fetchfiles"
 :debug:archivefetch     (procedure "portarchivefetch::archivefetch_main"
 line 5)
 :debug:archivefetch     invoked from within
 :debug:archivefetch "$procedure $targetname"
 :error:archivefetch See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_x11_xterm/xterm/main.log
 for details.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/63613>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list