Applicable to:
- Plesk for Linux
Symptoms
- Attempting to start a new migration going to Tools & Settings > Migration & Transfer Manager > Start a New Migration > Fill source server details > Click on Prepare migration, and migration fails to start with following error:
PLESK_ERROR: Internal error ;-P
ERROR: Zend_Config_Exception: file_get_contents(/opt/psa/var/modules/panel-migrator/sessions/20170603231643/config.ini): failed to open stream: No such file or directory (MigratorConfig.php:837)Or
PLESK_ERROR: Internal error ;-P
ERROR: Zend_Config_Exception: file_get_contents(/usr/local/psa/var/modules/panel-migrator/sessions/20180410114341/config.ini): failed to open stream: No such file or directory (Config.php:339) - In Plesk log file
/var/log/plesk/panel.log
following error is shown:CONFIG_TEXT: PHP Warning: scandir(/opt/psa/var/modules/panel-migrator/sessions): failed to open dir: No such file or directory; File: /opt/psa/admin/plib/modules/panel-migrator/library/Backend/SessionManager.php, Line: 36
Or
CONFIG_TEXT: ERR [1] PHP Warning: scandir(/usr/local/psa/var/modules/panel-migrator/sessions): failed to open dir: No such file or directory; File: /usr/local/psa/admin/plib/modules/panel-migrator/library/Backend/SessionManager.php, Line: 40
ERR [1] PHP Warning: file_put_contents(/usr/local/psa/var/modules/panel-migrator/sessions/20180411152303/config.ini): failed to open stream: No such file or directory; File: /usr/local/psa/admin/plib/modules/panel-migrator/vendor/plesk/migration-lib-code/src/Utils/FileUtils.php, Line: 31
ERR [1] file_get_contents(/usr/local/psa/var/modules/panel-migrator/sessions/20180411152303/config.ini): failed to open stream: No such file or directory
Cause
$PLESK_ROOT_DIR/var/modules/panel-migrator/sessions
directory doesn't exist.
Resolution
- Connect via SSH
- Create directory manually and set valid ownership and permissions:
In Debian/Ubuntu:
# mkdir /opt/psa/var/modules/panel-migrator/sessions
# chown psaadm:root /opt/psa/var/modules/panel-migrator/sessions
# chmod 0750 /opt/psa/var/modules/panel-migrator/sessionsIn CentOS/RedHat:
# mkdir /usr/local/psa/var/modules/panel-migrator/sessions
# chown psaadm:root /usr/local/psa/var/modules/panel-migrator/sessions
# chmod 0750 /usr/local/psa/var/modules/panel-migrator/sessions
Comments
3 comments
Applied the above solution only to then get the following message:
Internal error
Hello Kim Harding,
It seems that permissions of
are still incorrect.
Make sure that the file ownership is psaadm:root and permissions are 0750.
Also, make sure that there're no other mechanisms blocking the access to files.
In case this won't help, submit a request to support: https://support.plesk.com/hc/en-us/articles/213608509
Thanks for sharing this helpful remedy. I was very confused and getting the message
Internal error ;-P
ERROR: Zend_Config_Exception: file_get_contents(/usr/local/psa/var/modules/panel-migrator/sessions/20180410114341/config.ini): failed to open stream: No such file or directory (Config.php:339)
and tried on many threads like
https://support.plesk.com/hc/en-us/articles/213912645-Plesk-Migration-and-Transfer-Guide
from there I got the link to
http://ttps://support.plesk.com/hc/en-us/articles/115000383334-How-to-migrate-a-website-from-other-server-to-Plesk-
and ultimately found the right solution here. Thanks for your replies.
Ivan! I have found you at almost every thread. A lot of appreciation for your dedication.
Please sign in to leave a comment.