Problem
On a fresh installation of Posit Package Manager, you may see an error similar to the following:
Error running services: Error: Unable to run an executable program within the Server.TempDir='/tmp'; this directory may be mounted 'noexec': Unable to run validator /tmp/tempdir-validator-xxxxx: fork/exec /tmp/tempdir-validator-xxxxx: permission denied;
This error usually occurs when the /tmp directory is mounted as noexec.
Solution
First, you could start by remounting the tmp directory with the following command:
sudo mount -o remount,exec /tmp
From there, restart Package Manager so that it can see these changes:
sudo systemctl restart rstudio-pm
Alternative Solution
Failing the above, you will need to adjust the TMP directory that Package Manager uses:
https://docs.posit.co/rspm/admin/process-management/#temp-directory
For example, with this addition below to your /etc/rstudio-pm/rstudio-pm.gcfg
configuration file in the [Server]
section:
; /etc/rstudio-pm/rstudio-pm.gcfg
[Server]
TempDir = /package-manager-tmp/
Package Manager will now use this directory below instead of /tmp
:
TempDir = /package-manager-tmp/
With that change, you'll also need to make the directory specified and allow access:
mkdir /package-manager-tmp/
chmod 1777 /package-manager-tmp/
Once complete, a restart of the Package Manager service is required so that it can see these changes:
sudo systemctl restart rstudio-pm
Support Ticket
If you still have issues after completing the above, you can always lodge a support ticket, where our group of friendly, and incredibly knowledgeable staff can assist with any issues that you may be having. You can submit a ticket here:
Comments