-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Poor error message when tmp dir is mounted as noexec with CLIv2 #5909
Comments
Hi @ctaintor, Thanks for reporting. I'm not able to reproduce with only a
As well as with
But not without both:
I can confirm the |
thanks for digging further - what you say about root directory makes sense since for us it is with a security hardened versino of AL2. I'm looking forward to understanding what PyInstaller is doing :) |
I don't have any updates on what PyInstaller is doing in this case. However, we have a new proposal for a source distribution that would probably be a better fit for security hardened cases where you would like to maintain complete control over the build and install: I would say that once that is made fully available it would solve your use case. |
Closing this out. Please track on the progress of the source distribution as that will be the path forward for cases like this. |
|
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
Currently if you try to run the CLIv2 in an environment where the tmp directory is mounted
noexec
you get a very confusing error message. This makes it hard to figure out how to fix the issue and also leads to question on why the CLI needs to have tmp mounted withexec
.This bug is reported in #5047 but it was unfortunately closed since there is a workaround. I opened this to track the poor error message
SDK version number
Platform/OS/Hardware/Device
To Reproduce (observed behavior)
noexec
. Example can be found in MemoryError thrown in aws cli 2 in buster-slim docker image #5047aws
- you will get output like thisthe workaround for now is to set
$TMPDIR
(or$HOME
since Python will fallback to this for tmpdir)Expected behavior
I'd expect either:
noexec
OR
Logs/output
Additional context
The text was updated successfully, but these errors were encountered: