question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

macos-latest: could not set permissions on '/nix/var/nix/profiles/per-user' to 755

See original GitHub issue

We are getting this error intermittently on the Invoking Nix Build step on macos-latest:

  /nix/var/nix/profiles/default/bin/nix-build ci.nix
  error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted
  ##[error]Action failed with error: Error: The process '/nix/var/nix/profiles/default/bin/nix-build' failed with exit code 1

This action is running after cachix/install-nix-action@v6, and I suspect an eventual fix is there, but it manifests in this action.

I haven’t recognized a pattern yet, other than this happening ~50% of the time on macos-latest and so far not at all on ubuntu-latest.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
domenkozarcommented, Feb 13, 2020

Will fix this in a couple of days.

1reaction
domenkozarcommented, Feb 6, 2020

I think the fix is to finally figure out how to wait for nix-daemon socket on macos.

Read more comments on GitHub >

github_iconTop Results From Across the Web

could not set permissions on '/nix/var/nix/profiles/per-user' to ...
Error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted. Hello. On Ubuntu 21.04 :.
Read more >
Change permissions for files, folders, or disks on Mac
Change permissions for files, folders, or disks on Mac. Permission settings determine who can view and alter files on the computer. You change...
Read more >
XAMPP permissions on Mac OS X? - Stack Overflow
So (a) I have to provide root password every time I copy in web content, and, more problematic, (b) NetBeans says it can't...
Read more >
Permission denied in Mac Terminal? Try this fix - MacPaw
To change permissions in Terminal, do the following: Type this command followed by a space: chmod 755; Drag the file or folder onto...
Read more >
MacOS Folder Insecurity errors during install - Sophos Support
It will not install if the permissions are not correct as per the table below in the ... This gives the admin group...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found