Opened 15 years ago

Closed 14 years ago

Last modified 8 years ago

#21034 closed defect (fixed)

syncing with daily tarball does not work

Reported by: guitman423@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.8.1
Component: base Version: 1.8.0
Keywords: Cc:
Port:

Description (last modified by tobypeterson)

After I install macports on my OS X 10.5.8 Server, I can not update macports or install any packages. I am behind a firewall that restricts rsync, so I have modified my sources.conf file to use the tarball option instead. The tarball download works, but I received the message about "source indexes" and I can not proceed.

"sudo port -d selfupdate" yields:

Warning: No index(es) found! Have you synced your source indexes?
--->  Updating the ports tree
DEBUG: Synchronizing ports tree(s)
Synchronizing local ports tree from http://www.macports.org/files/ports.tar.gz
No updates for http://www.macports.org/files/ports.tar.gz
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/base
--->  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-35.2/rsync/clientserver.c(105) [receiver=2.6.9]
DEBUG: Error synchronizing MacPorts sources: shell command "/usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/base/ /opt/local/var/macports/sources/rsync.macports.org/release/base" returned error 10
Command output: rsync: failed to connect to rsync.macports.org: Operation timed out (60)
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-35.2/rsync/clientserver.c(105) [receiver=2.6.9]

    while executing
"macports::selfupdate [array get global_options]"
Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: shell command "/usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/base/ /opt/local/var/macports/sources/rsync.macports.org/release/base" returned error 10
Command output: rsync: failed to connect to rsync.macports.org: Operation timed out (60)
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-35.2/rsync/clientserver.c(105) [receiver=2.6.9]

Change History (14)

comment:1 Changed 15 years ago by tobypeterson

Description: modified (diff)

comment:2 Changed 15 years ago by tobypeterson

Can you attach /opt/local/etc/macports/sources.conf, or paste its contents?

comment:3 in reply to:  2 Changed 15 years ago by guitman423@…

Replying to toby@…:

Can you attach /opt/local/etc/macports/sources.conf, or paste its contents?

bash-3.2# cat /opt/local/etc/macports/sources.conf
#  MacPorts system wide sources configuration file
#  $Id: sources.conf 42662 2008-11-28 23:18:50Z raimue@macports.org $

#  To setup a local ports repository, insert a "file://" entry following
#  the example below that points to your local ports directory:
#  Example: file:///Users/landonf/misc/MacPorts/ports

#  The default MacPorts repository should always be tagged [default]
#  for proper functionality of various resources (port groups, mirror
#  sites, etc).  If you switch it from the rsync:// URL, be sure to keep
#  it tagged [default].

#  To prevent a source from synchronizing when `port sync` is used,
#  append [nosync] at the end as shown in this example:
#  Example: file:///Users/landonf/misc/MacPorts/ports [nosync]

#  NOTE: The port command parses source URLs in order and installs the
#        first occurrance when a port appears in multiple repositories.
#        So keep "file://" URLs above other URL types.


#  To get the ports tree from the master MacPorts server in California, USA use:
#      rsync://rsync.macports.org/release/ports/
#  To get it from the mirror in Trondheim, Norway use:
#      rsync://trd.no.rsync.macports.org/release/ports/
#  A current list of mirrors is available at http://trac.macports.org/wiki/Mirrors
http://www.macports.org/files/ports.tar.gz [default]
bash-3.2# 

comment:4 Changed 15 years ago by tobypeterson

WikiFormatting!!!

Ok, I think if I'm reading that mess correctly, it's:

http://www.macports.org/files/ports.tar.gz [default]

I didn't even know we supported this sort of thing...

comment:5 Changed 15 years ago by tobypeterson

Component: portsbase

Hmm, I see howto/PortTreeTarball. I didn't even know about that feature... I guess it's broken.

comment:6 Changed 15 years ago by tobypeterson

Resolution: fixed
Status: newclosed

comment:7 Changed 15 years ago by tobypeterson

merged to 1.8.x branch in r56890

comment:8 Changed 15 years ago by blb@…

Milestone: MacPorts 1.8.1

comment:9 in reply to:  5 Changed 15 years ago by guillaume.galuz@…

hi ! i have the same problem as guitman423

i looked up the howto/PortTreeTarball but i'm can't manage to "Edit $prefix/etc/macports/sources.conf, comment out the rsync entry, and add a new entry as follows:

#rsync://rsync.macports.org/release/ports/ [default]
http://www.macports.org/files/ports.tar.gz [default]

it seems i don't have the permissions to edit the files.

what can i do ?

thx !

Last edited 8 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:10 Changed 15 years ago by macports.mschoepl@…

Given that this is the first google result and there is no real solution here:

If you just installed MacPorts and syncinc doesn't work, check if some firewall is blocking rsync, e.g.

  • Little Snitch
  • Peer Guardian
  • ...
  • [maybe even Mac OS-internal firewall (at System Preferences -> Security -> Firewall) (don't know)]

I just fixed someone's installation - took me half an hour of looking in the wrong places...

comment:11 Changed 15 years ago by p.flynn2@…

Disabling Peer Gaurdian worked for me. Thanks!

comment:12 Changed 14 years ago by david.mohl@…

Resolution: fixed
Status: closedreopened

I'm sorry for reviving this, but theres no real solution yet. Sam appears in OS X 10.6.5 with version 1.9.2 I have exactly the same Problem. Other Tickets/Forums/etc didn't help very much.

--->  Updating the ports tree
DEBUG: Synchronizing ports tree(s)
Synchronizing local ports tree from rsync://rsync.macports.org/release/ports/
DEBUG: /usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*' rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports
rsync: failed to connect to rsync.macports.org: Operation timed out (60)
rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-40/rsync/clientserver.c(105) [receiver=2.6.9]
shell command "/usr/bin/rsync -rtzv --delete-after '--exclude=/PortIndex*' rsync://rsync.macports.org/release/ports/ /opt/local/var/macports/sources/rsync.macports.org/release/ports" returned error 10
Error: Synchronization of the local ports tree failed doing rsync
DEBUG: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
    while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source(s) failed

First, it looked like something is blocking my rsync. But then i tested it with some other vServers. Works fine! Just when using macports it causes Problems. Mac Firewall is disabled. Additional Security Software (LittleSnitch & Co.) is not installed.

Tried it in different Networks, always the same Problem.

comment:13 Changed 14 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: reopenedclosed

That's nothing to do with this ticket.

comment:14 Changed 14 years ago by jmroot (Joshua Root)

Summary: Warning: No index(es) found! Have you synced your source indexes?syncing with daily tarball does not work
Note: See TracTickets for help on using tickets.