From 80379bae09df0ce18feb35da3b9091b9e1666f4c Mon Sep 17 00:00:00 2001 From: Anurag Sharma Date: Tue, 15 Apr 2025 15:03:21 +0530 Subject: [PATCH] docs: improve clarity on TMPDIR usage during plugin installation --- website/content/docs/debugging.mdx | 12 ------------ website/content/docs/plugins/install.mdx | 4 ++-- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/website/content/docs/debugging.mdx b/website/content/docs/debugging.mdx index 3a92636cd..4e8ee9cd1 100644 --- a/website/content/docs/debugging.mdx +++ b/website/content/docs/debugging.mdx @@ -147,15 +147,3 @@ 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. diff --git a/website/content/docs/plugins/install.mdx b/website/content/docs/plugins/install.mdx index b19e3b282..942d4b16f 100644 --- a/website/content/docs/plugins/install.mdx +++ b/website/content/docs/plugins/install.mdx @@ -27,8 +27,8 @@ Note that Packer checks the plugin installation directory against the `required_ ### Installation directory -By default, Packer installs plugins into the plugins directory at `$HOME/.config/packer/plugins` on Unix and `%APPDATA%\packer.d\plugins` on Windows, but you can specify a different directory using the `PACKER_PLUGIN_PATH environment variable. -Plugin installation requires access to temporary files under `TMPDIR`. If the system's temp directory is non-writable or non-executable, use TMPDIR to override the location of the temporary file store used by Packer. +By default, Packer installs plugins into the plugins directory at `$HOME/.config/packer/plugins` on Unix and `%APPDATA%\packer.d\plugins` on Windows, but you can specify a different directory using the `PACKER_PLUGIN_PATH` environment variable. +~> Note: Plugin installation requires access to temporary files under `TMPDIR`. If the system's temp directory is non-writable or non-executable, use TMPDIR to override the location of the temporary file store used by Packer. Refer to the [Packer configuration reference](/packer/docs/configure) for additional information. ## Requirements