Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#61084 closed defect (invalid)

port sync fails but port selfupdate works

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

Description (last modified by mf2k (Frank Schima))

I thought this might be a problem with the mirrors but can't find any relevant bug. For a couple of weeks now I've not been able to sync my ports but I've found that I can use selfupdate instead.

Is this a known issue?

 port sync                                                                                                      [13:43:43]
--->  Updating the ports tree
port sync failed: Synchronization of 1 source failed

Updating MacPorts base sources using rsync
MacPorts base version 2.6.3 installed,
MacPorts base version 2.6.3 downloaded.
--->  Updating the ports tree

Change History (7)

comment:1 Changed 4 years ago by mf2k (Frank Schima)

In the future, please use WikiFormatting.

comment:2 Changed 4 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: sync removed

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

No, it's not a known issue.

What URL are you syncing from—what is set in /opt/local/etc/macports/sources.conf? Verify that the server you're configured to use is still listed on wiki:Mirrors and if it isn't, switch to a different mirror.

What's the output of sudo port -d sync?

comment:4 Changed 4 years ago by Themanwithoutaplan

I think I've found the problem: the first line for the mirrors was for a local copy of MacPorts (used when I was making some patches), which I've removed. Strange that MacPorts didn't simply skip that and get on with rsync://rsync.macports.org/release/tarballs/ports.tar but I guess it's my fault and not a bug. Sorry for the noise.

comment:5 in reply to:  4 Changed 4 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Replying to Themanwithoutaplan:

Strange that MacPorts didn't simply skip that and get on with rsync://rsync.macports.org/release/tarballs/ports.tar

Did it not? The message "Synchronization of 1 source failed" makes me hope that it proceeded on to the next source and that that next source did not fail.

Note that you should adopt changes from the new .conf.default files, specifically in this case switching the rsync address to rsync://rsync.macports.org/macports/release/tarballs/ports.tar

comment:6 Changed 4 years ago by jmroot (Joshua Root)

Note that selfupdate not reporting an error that happened in the sync step is #56549.

comment:7 Changed 4 years ago by Themanwithoutaplan

Thanks Ryan, I've updated the configuration. It's a fairly venerable install, though it's now on a new machine. port sync does not fallback to the default but port selfupdate does, it does look like this is a known issue.

Note: See TracTickets for help on using tickets.