docs: issues when temp is noexec

This commit is contained in:
Anurag Sharma 2025-04-10 13:12:43 +05:30
parent 1d02f14871
commit cab5be8ecf

View file

@ -1,6 +1,6 @@
---
description: |
Learn how to debug issues with Packer builds and plugins using `packer build`, logs, and other troubleshooting tools.
Learn how to debug issues with Packer builds and plugins using `packer build`, logs, and other troubleshooting tools.
page_title: Debugging Packer
---
@ -147,3 +147,13 @@ Failed to initialize build 'docker': error initializing builder 'docker': plugin
you should try setting your temp directory to something shorter. This can be
done through the `TMPDIR` environment variable.
## Issues when temp directory does not allow execution
Sometimes, Packer runs into trouble (eg: when installing a plugin ) because the system's temporary directory (/tmp) is restricted and doesn't allow programs to run there. The temp directory may have been mounted with noexec option. This may lead to `permisson denied` errors.
```text
Continuing to next available version: failed to describe plugin binary "/tmp/packer-plugin-virtualbox_v1.1.1_x5.0_linux_arm64": fork/exec /tmp/packer-plugin-virtualbox_v1.1.1_x5.0_linux_arm64: permission denied
```
To resolve this, set the `TMPDIR` environment variable to a directory that allows execution.