Opened 2 years ago

Closed 14 months ago

#65198 closed defect (worksforme)

Macports selfupdate error

Reported by: ivanavb (Ivana Bukvin) Owned by:
Priority: Normal Milestone:
Component: base Version:
Keywords: Cc:
Port:

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

Hi,

I have a problem updating macports, and I'm not sure how to fix it. I tried running sudo port -d selfupdate, this is the output:

DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
--->  Updating MacPorts base sources using rsync
DEBUG: system: /usr/bin/rsync -rtzvl --delete-after rsync://rsync.macports.org/macports/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
rsync: getaddrinfo: rsync.macports.org 873: nodename nor servname provided, or not known
rsync error: error in socket IO (code 10) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-52.200.2/rsync/clientserver.c(106) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzvl --delete-after rsync://rsync.macports.org/macports/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
Exit code: 10
DEBUG: Error synchronizing MacPorts sources: command execution failed
    while executing
"error "Error synchronizing MacPorts sources: $eMessage""
    invoked from within
"try -pass_signal {
        system "$rsync_path $rsync_options rsync://${rsync_server}/$rsync_dir $mp_source_path"
    } catch {{*} eCode eMessage} {
 ..."
    (procedure "selfupdate::main" line 30)
    invoked from within
"selfupdate::main {options_global_order {} options_selfupdate_order {}} base_updated"
    ("uplevel" body line 1)
    invoked from within
"uplevel [list selfupdate::main $optionslist $updatestatusvar]"
    (procedure "macports::selfupdate" line 2)
    invoked from within
"macports::selfupdate [array get options] base_updated"
Error: Error synchronizing MacPorts sources: command execution failed
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed

I understand the problem is with rsync, but I don't know how to solve it. Could you please help me?

Thank you!

Best wishes,
Ivana

Change History (2)

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

Component: portsbase
Description: modified (diff)

Please remember to use WikiFormatting.

I'm not certain whether the error message means that it cannot reach our rsync server or that it cannot resolve the hostname into an IP address.

Does it always fail? Has it ever worked? Does restarting the computer help?

Inability to connect to our rsync servers is usually caused by a problem with your network connection, such as an intentional blocking of rsync traffic by your corporate network administrator, or a feature or bug of your antivirus or network monitoring software, or something similar.

If you cannot resolve the problem, you will have to configure MacPorts to sync its ports using a method other than rsync (for example using git or using a tarball). selfupdate cannot use a method other than rsync, so you cannot use selfupdate and must install new versions of MacPorts when they are released by downloading and running the installer from our web site, or building from source manually, and must use sudo port sync instead of sudo port selfupdate to update your ports tree.

comment:2 Changed 14 months ago by ryandesign (Ryan Carsten Schmidt)

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