Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#40066 closed defect (invalid)

Selfupdate permission error

Reported by: support@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 2.2.0
Keywords: Cc:
Port:

Description (last modified by neverpanic (Clemens Lang))

Hi,

I cant seem to get port working correctly, below is my shell return.

server:sshfs-fuse-2.4 NBhosting$ port -v selfupdate
--->  Updating MacPorts base sources using rsync
receiving file list ... done
rsync: mkstemp "/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/.base.tar.rmQwoq" failed: Permission denied (13)
inflate returned -3 (140 bytes)
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/token.c(419) [receiver=2.6.9]
rsync: connection unexpectedly closed (31 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [generator=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: 12
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

Change History (5)

comment:1 Changed 11 years ago by support@…

i got xcode and commandline tools installed and the user macports added to /opt but no luck

comment:2 Changed 11 years ago by neverpanic (Clemens Lang)

Component: portsbase
Description: modified (diff)
Priority: HighNormal

Please try again with sudo. Do not set priority to high, since doing so is reserved for MacPorts developers as documented in the Ticket Guidelines prominently linked from the new ticket page.

comment:3 Changed 11 years ago by support@…

thanks that fixed it

comment:4 Changed 11 years ago by neverpanic (Clemens Lang)

Resolution: invalid
Status: newclosed

comment:5 Changed 11 years ago by neverpanic (Clemens Lang)

Please also revert the permission change to /opt or /opt/local; the macports user cannot write those directories on purpose.

Note: See TracTickets for help on using tickets.