-
-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Access denied: /tmp/blahblahblah #661
Comments
|
Yes I think this is related to that fix. Let me look into this. |
It was going to be a big post about my beautiful Btrfs layout and snapper which manages backups to keep free space above the threshold quota, but then I realized my Anyway, nothing unusual going on there. Low usage values, a lot of free RAM, and untouched swap.
I'm pretty sure the problem arouse because of the permissions that were f###ed up. |
This warrants a patch release, methinks. |
Here is the offending line: -- This is a migration strategy - it ensures that directories created with
-- old versions of Aura automatically have their permissions fixed.
then void . runProcess . setStderr closed . setStdout closed $ proc "chmod" ["755", pth] |
Proposed fix: then case pth of
"/var/cache/aura/vcs" -> void . runProcess . setStderr closed . setStdout closed $ proc "chmod" ["755", pth]
"/tmp" -> void . runProcess . setStderr closed . setStdout closed $ proc "chmod" ["1777", pth]
_ -> pure () |
Seems to leave the permissions as they were:
The changes introduced above can be removed in a future release. |
...more like: then case pth of
"/var/cache/aura/vcs" -> setMode "755"
"/tmp" -> setMode "1777"
_ -> pure ()
where
setMode mode = void . runProcess . setStderr closed . setStdout closed $ proc "chmod" [mode, pth] or whatever is the right syntax / indentation in Haskell. |
i LOVE the fact that mere upgrade of aura-bin f###ed up permission again, so I had to run one more time with |
That sounds like a job for a pacman's post-install script, actually. |
Thanks for your patience in all this. Aura 4.0 will definitely handle things a little better, and provide a migration command (or a post-install script). |
No worries :) |
So most users haven't moved yet, and will never notice the issue. |
I stumbled upon this too (thx for the fix 👍 ). Quick question, should'nt the build (and so the creation / permission modification of directories) be performed as the building user, to avoid that kind of problems ? |
The build is indeed performed as the user in the end, but you're right that it's probably a better idea to give the top level build directory (be it |
After recent upgrade, I started getting strange messages from various tools, most verbose ones being like this:
So, basically they all have something to do with access to files on
/tmp
.I wonder, could this be related to #651?
My permissions on /tmp are
drwxr-xr-x
, and I'm pretty sure they weredrwxrwxrwx
just recently.The text was updated successfully, but these errors were encountered: