Perl error before file copy in Migrating Web site from Plesk Obsidian 18

SYSTEM INFORMATION
OS type and version Ubuntu Linux 24.04.2
Virtualmin version 7.30.8

Hey everyone,

Trying to migrate from Plesk Obsidian 18 huge site (12Gb) but just before copying the files I get a perl error… All seems OK and validated prior to that..

Validating migration file ..
.. done

Starting migration of sympossio.gr from local file /tmp/backup_sympossio.gr_2505281535.tar ..

Finding contents files ..
.. done
Checking for Plesk features ..
.. found Home directory, Administration user, Webmin login, DNS for domain, Apache website, Log file rotation, MariaDB database .
However, the follow features are not supported or enabled on your system : Webalizer reporting. Some functions of the migrated virtual server may not work.

Checking for clashes and dependencies ..
.. all OK
Creating initial virtual server sympossio.gr ..
    Saving server details ..
    .. done
    Creating administration group sympo ..
    .. done
    Creating administration user sympo ..
    .. done
    Adding administration user to groups ..
    .. done
    Creating home directory ..
    .. done
    Creating mailbox for administration user ..
    .. done
    Adding new DNS zone ..
    .. done
    Adding new virtual website ..
    .. done
    Setting up CGI scripts support with suEXEC execution mode ..
    .. done
    Adding webserver user www-data to server's group ..
    .. done
    Performing other Apache configuration ..
    .. done
    Setting up log file rotation ..
    .. done
    Creating MariaDB login ..
    .. done
    Creating Webmin user ..
    .. done
    Saving server details ..
    .. done
    Re-starting DNS server for sympossio.gr ..
    .. done
    Applying webserver configuration ..
    .. done
    Restarting PHP-FPM 8.3 server ..
    .. done
    Re-loading Webmin ..
    .. done
    Updating Webmin user ..
    .. done
    Re-loading Webmin ..
    .. done
.. done
Copying web pages ..
HTTP/1.0 500 Perl execution failed Server: MiniServ/2.303 Date: Tue, 3 Jun 2025 09:01:00 GMT Content-type: text/html; Charset=utf-8 Connection: close
Error — Perl execution failed

Not a HASH reference at /usr/share/webmin/virtual-server/migration-plesk9.pl line 1065.

Can anyone assist? is this a bug?
Thanks!
Ted

Yes, if you’re seeing a Perl error, there’s a bug, though it may not effect older backups. I’m guessing something changed in the backup and we just don’t know about it. The backup files of the control panels we can import aren’t really documented anywhere, so Jamie just reverse engineers them from actual backups.

I’ll ask @Jamie to have a look. He’ll likely need a copy of the offending backup, or an example backup of a fake domain that exhibits the problem, so the problem can be reproduced.

Yeah, I would need an example of a failing backup to see what is going on here.

Here you go!

http://monitor01.dss.gr/backup_sympossio.gr_2505281535.tar

Thanks for your help Jamie!

ted

Is that link still valid? I tried to download it just now, but the connection to 84.254.0.113 timed out.

Sorry Jamie, line is temporarily down. I have relocated the download, please try:
http://87.202.209.84/backup_sympossio.gr_2505281535.tar

Thanks, got it! Taking a look now …

Ok, I have created a fix here : Handle case where there are multiple data files · virtualmin/virtualmin-gpl@4bec669 · GitHub

2 Likes

Thanks Jamie!
Site now is migrated without errors, but no files are copied to the public_html!

 Migrate Virtual Server

Validating migration file ..
.. done

Starting migration of sympossio.gr from local file /tmp/backup_sympossio.gr_2505281535.tar ..

    Finding contents files ..
    .. done
    Checking for Plesk features ..
    .. found Home directory, Administration user, Webmin login, DNS for domain, Apache website, Log file rotation, MariaDB database .
    However, the follow features are not supported or enabled on your system : Webalizer reporting. Some functions of the migrated virtual server may not work.

    Checking for clashes and dependencies ..
    .. all OK
    Creating initial virtual server sympossio.gr ..
        Saving server details ..
        .. done
        Creating administration group sympo ..
        .. done
        Creating administration user sympo ..
        .. done
        Adding administration user to groups ..
        .. done
        Creating home directory ..
        .. done
        Creating mailbox for administration user ..
        .. done
        Adding new DNS zone ..
        .. done
        Adding new virtual website ..
        .. done
        Setting up CGI scripts support with suEXEC execution mode ..
        .. done
        Adding webserver user www-data to server's group ..
        .. done
        Performing other Apache configuration ..
        .. done
        Setting up log file rotation ..
        .. done
        Creating MariaDB login ..
        .. done
        Creating Webmin user ..
        .. done
        Saving server details ..
        .. done
        Re-starting DNS server for sympossio.gr ..
        .. done
        Applying webserver configuration ..
        .. done
        Restarting PHP-FPM 8.4 server ..
        .. done
        Re-loading Webmin ..
        .. done
        Updating Webmin user ..
        .. done
        Re-loading Webmin ..
        .. done
    .. done
    Copying web pages ..
    .. no docroot data found
    Copying CGI scripts ..
    .. no cgi data found
    Copying and fixing DNS records ..
    .. done (added 6 records)
    Migrating SSL certificate and key ..
    .. done
    Re-creating mail users ..
    .. done (migrated 0 users)
    Re-creating mail aliases ..
    .. done (migrated 1 aliases)
    Migrating MySQL databases ..
        Creating MariaDB database aldemarw_symposio_wp ..
        .. done
        Restoring database aldemarw_symposio_wp ..
        .. done
    .. done (migrated 1 databases, and created 1 users)
    Re-creating protected directories ..
    .. done (migrated 0)
    Creating sub-domain staging.sympossio.gr ..
        Saving server details ..
        .. done
        Creating home directory ..
        .. done
        Adding records to DNS zone sympossio.gr ..
        .. done
        Adding to email domains list ..
        .. done
        Adding default mail aliases ..
        .. done
        Adding DKIM records to DNS domain staging.sympossio.gr ..
        .. added successfully
        Adding new virtual website ..
        .. done
        Setting up CGI scripts support with suEXEC execution mode ..
        .. done
        Performing other Apache configuration ..
        .. done
        Saving server details ..
        .. done
        Re-starting DNS server ..
        .. done
        Re-starting DNS server for sympossio.gr ..
        .. done
        Applying webserver configuration ..
        .. done
        Restarting PHP-FPM 8.4 server ..
        .. done
        Updating Webmin user ..
        .. done
        Re-loading Webmin ..
        .. done
    .. done
    Re-creating sub-domain users ..
    .. created 0

Successfully migrated sympossio.gr virtual server, click here to manage it.

This is also reported here:
Copying web pages ..
.. no docroot data found

In all other aspects, domain is migrated successfully.

Jamie, please let me know if you need more info on this.
Thanks,
Ted