Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

Unable to start new migration: failed to open stream: scandir(/opt/psa/var/modules/panel-migrator/sessions): failed to open dir

 
backup restore migrationcentosdebianphpplesk 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:

    external 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

    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:

    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

    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

  1. Connect via SSH
  2. 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/sessions

    In 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

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

Ruby on Rails vs PHP: Which one’s right for your needs?

Read More »

Recommended OSs for Plesk

Read More »

CentOS Project Announces Early End-of-Life Date for CentOS 8

Read More »
Knowledge Base

Unable to start migration in Plesk: Failed to connect to the source server ‘source’ (203.0.113.2) by SSH: encountered RSA key, expected OPENSSH key

Read More »

A website or webmail hosted in Plesk periodically shows the Plesk/web server default page or old website content

Read More »

Unable to upload file to website on Plesk: Request body no files data length is larger than the configured limit

Read More »

 Unable to start Apache on a Plesk server: Unable to find IPv4 address of server.example.com

Read More »

Hosting Wiki

  • Server Redundancy
  • AMP
  • Bare Metal Server
  • Backup
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • Plesk
  • Web Server
  • DNS Server
  • SSH
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family