PleskAPIInvalidSecretKeyException : key is not found

This is where the frequently asked questions, and responses is kept. You should do a quick search on any questions before posting to the general forum. Your question may already be answered.

Moderators: wizard, magicspam

Post Reply
magicspam
Posts: 1553
Joined: Tue Oct 28, 2008 2:27 pm

PleskAPIInvalidSecretKeyException : key is not found

Post by magicspam » Wed Oct 22, 2014 2:33 pm

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 --

Post Reply

Return to “Frequently Asked Questions (FAQ)”

Who is online

Users browsing this forum: No registered users and 19 guests