[MacPorts] #65198: Macports selfupdate error

MacPorts noreply at macports.org
Thu May 19 14:33:16 UTC 2022


#65198: Macports selfupdate error
----------------------+--------------------
  Reporter:  ivanavb  |      Owner:  (none)
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  base     |    Version:
Resolution:           |   Keywords:
      Port:           |
----------------------+--------------------
Changes (by ryandesign):

 * component:  ports => base


Old description:

> 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

New description:

 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

--

Comment:

 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
 [wiki:howto/SyncingWithGit using git] or [wiki:howto/PortTreeTarball 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/65198#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list