Opened 10 years ago

Closed 10 years ago

#44410 closed defect (invalid)

Can't self update with tarball

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

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

Outbound 873 is blocked on my network, and there's nothing I can do about it. So I tried to use the tarball:

flamingo:~ joliver.sa$ tail -2 /opt/local/etc/macports/sources.conf
#rsync://rsync.macports.org/release/tarballs/ports.tar [default]
https://distfiles.macports.org/ports.tar.gz [default]

But:

flamingo:~ joliver.sa$ sudo port -d selfupdate
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
--->  Updating MacPorts base sources using rsync
rsync: failed to connect to rsync.macports.org: Operation timed out (60)
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 10
DEBUG: Error synchronizing MacPorts sources: command execution failed
    while executing
"macports::selfupdate [array get global_options] base_updated"
Error: Error synchronizing MacPorts sources: command execution failed
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed

Change History (3)

comment:1 Changed 10 years ago by jnojr@…

Cc: jnojr@… added

Cc Me!

comment:2 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jnojr@… removed
Component: portsbase
Description: modified (diff)

You've configured MacPorts to fetch the ports tree via https, but selfupdate always uses rsync to fetch the base code; it cannot be configured to use https or another method. (See #38265.) You can use "sudo port sync" to sync the ports tree (via https, now that you've changed your sources.conf), and manually update MacPorts base when a new version is released, e.g. by downloading and installing the package from our web site. You can subscribe to the macports-announce mailing list if you'd like to be informed when new versions are released.

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

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.