Opened 10 years ago

Closed 10 years ago

#42620 closed defect (worksforme)

sudo port -d selfupdate: command failed.

Reported by: kingle.zhuang@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.2.1
Keywords: Cc:
Port:

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

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 (2)

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

Component: portsbase
Description: modified (diff)

Looks like the connection to our rsync server failed.

Has this worked for you before? Or are you perhaps on a network that restricts rsync traffic? Try again in a little while, or on a different network, if this is a laptop and can be easily moved to another network.

selfupdate requires the rsync protocol. If you cannot use rsync on your network, then you cannot use the selfupdate command and must use alternate methods for updating MacPorts base, such as downloading new installers from our web site. To sync your ports, use "sudo port sync". "sync" by default uses rsync, but unlike "selfupdate" can be configured to use other protocols.

When writing in Trac, remember to use WikiFormatting and to preview before submitting.

comment:2 Changed 10 years ago by jmroot (Joshua Root)

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