Error — Perl execution failed when i try to Virtualmin restore a backup file

SYSTEM INFORMATION
OS type and version Ubuntu 22
Virtualmin version 7.20.2

Hello Virtualmin Community,

I am currently experiencing an issue while attempting to restore backups in Virtualmin. After initiating the restoration process, I encounter the following error message:

Not an ARRAY reference at /usr/share/webmin/virtual-server/backups-lib.pl line 3524.

Current Setup:

  • Virtualmin Version: Latest version
  • Operating System: Ubuntu 22
  • Backup Source: The backup was created on Ubuntu 20

Steps Taken So Far:

  1. Backup Integrity: I checked the backup file for any potential corruption and verified its integrity. Unfortunately, I have not been able to pinpoint the issue.

  2. Manual Inspection: I examined the code at line 3524 in the backups-lib.pl file, but I am uncertain about what might be causing the array reference issue.

  3. Software Updates: I ensured that both Webmin and Virtualmin are updated to their latest versions.

  4. Selective Restore: I attempted to restore one domain at a time and even excluded specific features during the restoration, but the error persists.

  5. Log Review: I checked the logs in /var/webmin/miniserv.error and /var/log/virtualmin, but I haven’t found additional information that clarifies the error.

Request for Help:

This is our last backup, and we do not have another one. Has anyone encountered a similar issue, or does anyone have insights on how to resolve this problem? I would greatly appreciate any guidance or suggestions on how to successfully restore my backups without encountering this Perl execution error.

Thank you in advance for your assistance!

It’s bug-like that you’re seeing a Perl error rather than something useful about what’s missing in the backup.

@Jamie this is the line: virtualmin-gpl/backups-lib.pl at 2bd3f41b0527263214c3fff653e27e7c6aa8f5dc · virtualmin/virtualmin-gpl · GitHub (Though it’s line 3524 in the currently released version.)

$cont->{$dname} is, I guess, the culprit here? I’m not seeing how it’d end up empty or otherwise bogus, as it seems to get checked before this, including a ref check. I don’t understand the code, though, so I’m probably missing something.

Yeah it seems like the backup contents aren’t what we expected, which causes this Perl error.

@EquityLiesnoc any chance we could get an example backup file that’s showing this error?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.