Opened 6 years ago

Closed 6 years ago

#56736 closed defect (duplicate)

Port activation fails on MacPorts 2.5.2

Reported by: sideeffect42 (Dennis Camera) Owned by:
Priority: Normal Milestone:
Component: base Version: 2.5.2
Keywords: tiger leopard legacy-os Cc:
Port:

Description

Since upgrading to MacPorts 2.5.2 from 2.4.4 sometimes the activation of ports fails with a "permission denied" error.

--->  Removing work directory for ntp
Error: Couldn't activate ntp 4.2.8p11_0: can't create directory "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_sysutils_ntp": permission denied
Error: rev-upgrade failed: Error rebuilding ntp
Error: Follow https://guide.macports.org/#project.tickets to report a bug.

(ntp is just used as an example here. The error also occurs with different ports)

When running port activate [port] @[new version] afterwards the activation works.

Change History (6)

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten Schmidt)

There are other tickets reporting this as well.

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

Is there a log?

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

Since this can't be reproduced on the current macOS release, it will be very difficult to investigate further without a log or debug output.

comment:4 Changed 6 years ago by sideeffect42 (Dennis Camera)

I couldn't trigger the bug again. It doesn't occur on each install/upgrade but only on a fraction of them.

jmroot, do you have something specific in mind that would help you? I'll keep trying and when I hit it the next time update the ticket with as much info as I can.

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

A backtrace would be the most important thing to have. Running with the -d option will print one when the failure happens. There may also be one in the log file.

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

Resolution: duplicate
Status: newclosed

Most likely the same underlying problem as #56721.

Note: See TracTickets for help on using tickets.