Opened 19 months ago

Last modified 19 months ago

#67272 new defect

Port selfupdate is NOT working on macOS Catalina version 10.15.7

Reported by: FCruz2 Owned by:
Priority: Normal Milestone:
Component: base Version: 2.7.2
Keywords: Cc:
Port:

Description (last modified by jmroot (Joshua Root))

Can someone please help with this issue ? When I run "sudo port -d selfupdate" I get a list of errors according to :

sudo port -d selfupdate

DEBUG: Copying /Users/fjalcruz/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
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: failed to connect to rsync.macports.org: Operation timed out (60)
rsync error: error in socket IO (code 10) at /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-54.120.1/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 [macports::shellescape rsync://${rsync_server}/$rsync_dir] [macports::shellescape $mp_so..."
    (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

Change History (3)

comment:1 Changed 19 months ago by jmroot (Joshua Root)

Description: modified (diff)
Keywords: selfupdate removed
Port: selfupdate removed
Priority: HighNormal

comment:2 Changed 19 months ago by FCruz2

Dear Joshua Root

I followed your (Wiki's) suggestion of "You can sync your port tree using Git" (wiki:howto/SyncingWithGit), and, in the end, after I run the final step "Step 3: " everything goes well:

sudo port -v sync

--->  Updating the ports tree
Synchronizing local ports tree from file:///opt/local/var/macports/sources/github.com/macports/macports-ports/
From https://github.com/macports/macports-ports
   3c87f3a4d2b..b2c7723061c  master     -> origin/master
First, rewinding head to replay your work on top of it...
Fast-forwarded master to b2c7723061c73bbb516c10b43a2e62482a5cc1be.
Creating port index in /opt/local/var/macports/sources/github.com/macports/macports-ports
Adding port devel/minizinc
Adding port graphics/babl
Adding port lang/py-htmldocs
Adding subport py27-htmldocs
Adding subport py37-htmldocs
Adding subport py38-htmldocs
Adding subport py39-htmldocs
Adding subport py310-htmldocs
Adding subport py311-htmldocs
Adding port lang/vala
Adding port net/trurl
Adding port python/py-dicom
Adding subport py27-dicom
Adding port python/py-tornado
Adding subport py27-tornado
Adding subport py35-tornado
Adding subport py36-tornado
Adding subport py37-tornado
Adding subport py38-tornado
Adding subport py39-tornado
Adding subport py310-tornado
Adding subport py311-tornado
Adding port sysutils/fluent-bit
Adding port sysutils/pv

Total number of ports parsed:	24 
Ports successfully parsed:	24 
Ports failed:			0 
Up-to-date ports skipped:	33452

HOWEVER, when I try to update Macports I get another ERROR message as:

sudo port -v selfupdate
 

--->  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 /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-54.120.1/rsync/clientserver.c(106) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzvl --delete-after --include=/base.tar --include=/base.tar.rmd160 --exclude=* rsync://rsync.macports.org/macports/release/tarballs/ /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
Exit code: 10
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
Last edited 19 months ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

That's right. You can tell MacPorts to use a method other than rsync for sudo port sync, but rsync is the only available method for the part of sudo port selfupdate that updates MacPorts base. Therefore, if you cannot use rsync, you can't use sudo port selfupdate. You'll have to manually install new MacPorts base releases when they become available, such as by downloading the installer from our web site and running it.

The FAQ entry doesn't seem to point this out; it should probably be added. Anyone can edit the wiki.

Note: See TracTickets for help on using tickets.