Symptoms
-
Error like the following appears in Plesk:
PLESK_ERROR: ERROR: Zend_Controller_Exception: Permission denied.#0 /usr/local/psa/admin/plib/vendor/plesk/zendframework/library/Zend/Controller/Plugin/Broker.php(309): PleskApplicationControllerPluginForgeryProtection->preDispatch(Object(Zend_Controller_Request_Http))<br />
#1 /usr/local/psa/admin/plib/vendor/plesk/zendframework/library/Zend/Controller/Front.php(941): Zend_Controller_Plugin_Broker->preDispatch(Object(Zend_Controller_Request_Http))<br />
#2 /usr/local/psa/admin/plib/pm/Application.php(99): Zend_Controller_Front->dispatch()<br />
#3 /usr/local/psa/admin/htdocs/modules/panel-migrator/index.php(5): pm_Application->run()<br />
#4 {main} (Broker.php:312)<br />
<br><a href=’http://kb.plesk.com/plesk-error/search?metaId=861467e9d21267761a66b3b9e89adcb0&messageId=899d4d3fea31eb3dbc64a4181f9e5af4&file=Broker.php&line=312&type=Zend_Controller_Exception&version=17.8.11&message=Permission+denied.%23+%2Fpath%2FApplication.php%28%29%3A+Zend_Controller_Front-%3Edispatch%28%29%0A%23+%2Fusr%2Fl’ target=’_blank’>Search for related Knowledge Base articles</a>
PleskPermissionDeniedException: Session token has expired. -
Long operations like backup creation/restore, migration or site import were performed.
-
Records like the following can be found in
/var/log/plesk/panel.log
:ERR [panel] Forgery protection token check failed.
ERR [panel] Permission denied.#0
Cause
A sessions time, where forgery protection token stored, was exceeded. The default value is 1440
Resolution
Click on a section to expand
For Linux
-
Connect to the server via SSH
- Cancel the stuck Plesk task if there is any.
-
Increase the PHP timeout:
# echo “session.gc_maxlifetime=86400” >> /usr/local/psa/admin/conf/php.ini
-
Restart the Plesk service:
# service sw-engine restart
- Check if the limit was applied:
# echo ‘<?php echo ini_get(“session.gc_maxlifetime”);’ | plesk php
86400 - Additionally increasing the following values might be required in
/usr/local/psa/admin/conf/php.ini
file:max_input_time = 600
post_max_size = 2147483647
upload_max_filesize = 2147483647Above are default values. They may be increased, for example to:
max_input_time = 6000
post_max_size = 19G
upload_max_filesize = 19G
Click on a section to expand
For Windows
-
Connect to the server via RDP
- Cancel the stuck Plesk task if there is any.
-
 Increase the PHP timeout by editingÂ
C:Program Files (x86)Pleskadminconfphp.ini
 file and adding the line below:session.gc_maxlifetime=86400
-
Open Plesk Services Monitor and restart Plesk Management Service:
Â
- Check if the limit was applied:
 PS echo ‘<?php echo ini_get(“session.gc_maxlifetime”);’ | plesk php
86400 - Additionally, increasing the following values might be required in
C:Program Files (x86)Pleskadminconfphp.ini
 file:max_input_time = 600
post_max_size = 2147483647
upload_max_filesize = 2147483647Above are default values. They may be increased, for example to:
max_input_time = 6000
post_max_size = 19G
upload_max_filesize = 19G