‘Error reading launcher key’ after running diagnostics command
Troubleshooting error reading launcher key after run-diagnostics command.
Details on configuring TLS certifificates for each Posit professional product are available at the links below:
- Configuring SSL Certificates in Workbench
- Configuring SSL Certificates in Connect
- Configuring SSL Certificates in Package Manager
Introduction
After running the rstudio-server run-diagnostics command on a Posit Workbench node, the node enters an error state with the message ‘Error reading launcher key’. This can occur in load-balanced environments when you execute the diagnostics command.
Problem
This issue occurs when running the diagnostic script, because Workbench performs an rstudio-server reload. During the reload, the rserver process has already lowered its privileges to the server user (typically rstudio-server), which then cannot access launcher.pem when it is owned by root with restrictive (0600) permissions.
Workbench version 2024.12.1 fixes this issue.
Solution
You can resolve this error in one of the following ways:
Temporary fix
- Check the permissions of the launcher key file:
ls -la /etc/rstudio/launcher.pem
- If the file is owned by
rootand not readable byrstudio-server, update the ownership:
chown rstudio-server /etc/rstudio/launcher.pem
- Alternatively, restart the Workbench services:
sudo rstudio-server restart
Permanent fix
Upgrade to Workbench version 2024.12.1 or later, which includes a fix for this issue.
If you’re still having issues, you can reach out to Support by opening a ticket.