Page 1 of 1

PleskAPIInvalidSecretKeyException : key is not found

Posted: Wed Oct 22, 2014 2:33 pm
by magicspam
If you are getting messages similar to:
Error retrieving version from Plesk API: PleskAPIInvalidSecretKeyException : key is not found Error retrieving version from Plesk API:
This can be resolved by running the following commands on your server (as root):

Code: Select all

/usr/local/psa/bin/secret_key --create -ip-address 127.0.0.1 > /etc/magicspam/.secret_key    
 chown psaadm:psaadm /etc/magicspam/.secret_key
 
Alternatively, you can try removing the MagicSpam package, then before installing again, remove the secret key file to force a reset on install. You would first remove MagicSpam from your Plesk extensions menu and then run:

Code: Select all

 
rm /etc/magicspam/.secret_key
and then install MagicSpam again.

This is caused by the Plesk API authentication key being reset or changed.

In addition, ensure that you have allowed admin interface access from 127.0.0.1.
You can find this in the IP access restriction management menu under Tools & Settings in Plesk.

-- MagicSpam Support Team --