Opened 8 years ago
Closed 8 years ago
#52940 closed defect (invalid)
selfupdate @2.3.5: failing to connect to rsync.macports.org
Reported by: | jrubinator (Jonathan) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 2.3.5 |
Keywords: | Cc: | ||
Port: |
Description
I recently installed macports (version 2.3.5) to my Mac (OS X Yosemite version 10.10.5), but cannot sync my ports:
$ sudo port -d selfupdate DEBUG: Copying /Users/jrubin/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/release/tarballs ---> Updating MacPorts base sources using rsync rsync: failed to connect to rsync.macports.org: Permission denied (13) rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-45/rsync/clientserver.c(105) [receiver=2.6.9] Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs Exit code: 10 DEBUG: Error synchronizing MacPorts sources: command execution failed while executing "macports::selfupdate [array get global_options] base_updated" Error: Error synchronizing MacPorts sources: command execution failed To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: /opt/local/bin/port: port selfupdate failed: Error synchronizing MacPorts sources: command execution failed
I have previously installed and updated XCode to the latest version (and agreed to the license). I have uninstalled and reinstalled MacPorts. Is there something I'm missing?
Change History (4)
comment:1 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 8 years ago by jrubinator (Jonathan)
Looks pretty similar, but there seems to be some extended permissions on /opt. I'm not sure what that implies:
GSG-01661:~ jrubin$ ls -ld /opt /opt/local /opt/local/var /opt/local/var/macports /opt/local/var/macports/sources /opt/local/var/macports/sources/rsync.macports.org /opt/local/var/macports/sources/rsync.macports.org/release /opt/local/var/macports/sources/rsync.macports.org/release/tarballs drwxr-xr-x@ 5 root wheel 170 Nov 22 12:00 /opt drwxr-xr-x 11 root admin 374 Nov 22 12:00 /opt/local drwxr-xr-x 3 root admin 102 Nov 17 00:15 /opt/local/var drwxr-xr-x@ 8 root admin 272 Nov 22 12:00 /opt/local/var/macports drwxr-xr-x 3 root admin 102 Nov 22 12:00 /opt/local/var/macports/sources drwxr-xr-x 3 root admin 102 Nov 22 12:00 /opt/local/var/macports/sources/rsync.macports.org drwxr-xr-x 3 root admin 102 Nov 22 12:00 /opt/local/var/macports/sources/rsync.macports.org/release drwxr-xr-x 2 root admin 68 Nov 22 12:00 /opt/local/var/macports/sources/rsync.macports.org/release/tarballs GSG-01661:~ jrubin$ ls -ld@ /opt drwxr-xr-x@ 5 root wheel 170 Nov 22 12:00 /opt com.apple.FinderInfo 32 GSG-01661:~ jrubin$
comment:3 Changed 8 years ago by raimue (Rainer Müller)
First make sure that your network actually lets you connect to the host and it is not a firewall blocking access. Run this rsync command (intentionally without a target path) to get a listing of the remote files:
$ rsync rsync://rsync.macports.org/release/tarballs/base.tar ... -rw-r--r-- 26,258,432 2016/11/16 19:10:13 base.tar
comment:4 Changed 8 years ago by ryandesign (Ryan Carsten Schmidt)
Resolution: | → invalid |
---|---|
Status: | new → closed |
This doesn't sound like a MacPorts bug. If you need further help resolving your network and/or permissions issues, please write to the macports-users mailing list.
Since you are getting a "permission denied" error, my first question would be: what are the ownership and permissions of that directory, and every directory leading up to it? In other words, what is the output of:
Here's some sample output from a working system: