Unable to upload license key: mkstemp("/etc/sw/keys/keys/keyXXXXXXXX") failed: Permission denied

Created:

2016-11-16 13:09:17 UTC

Modified:

2017-04-24 11:56:09 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to upload license key: mkstemp("/etc/sw/keys/keys/keyXXXXXXXX") failed: Permission denied

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux
  • Plesk 12.0 for Linux

Symptoms

Unable to upload a license in Plesk:

Error: The license key is invalid. In order to use Plesk, please obtain and install a new valid license key.
Your license key has expired. To continue using your Plesk, you must purchase a non-expiring commercial license key.
Error: error: mkstemp("/etc/sw/keys/keys/keyXXXXXXXX") failed: Permission denied

or:

The uploaded key file is not valid or does not contain a license key. [error: mkstemp("/etc/sw/keys/backup/keyXXXXXXXX") failed: Permission denied]

Cause

There is no such folder /etc/sw/keys/backup/ or incorrect permissions are set for /etc/sw/keys/backup/

Resolution

  1. Create folder /etc/sw/keys/backup/ if it is missing:

    # mkdir /etc/sw/keys/backup/
  2. Grant correct permissions:

    # chmod 2770 /etc/sw/keys/backup

Additional information

#213385049 /etc/sw/keys broken permissions after upgrade

Have more questions? Submit a request
Please sign in to leave a comment.