Restore backup error: "Can't use an undefined value as a symbol reference at /usr/share/perl5/Net/FTP/dataconn.pm line 54"
search cancel

Restore backup error: "Can't use an undefined value as a symbol reference at /usr/share/perl5/Net/FTP/dataconn.pm line 54"

book

Article ID: 396651

calendar_today

Updated On:

Products

Messaging Gateway

Issue/Introduction

Restoring backup from the remote server fail with the following error:

" Can't use an undefined value as a symbol reference at /usr/share/perl5/Net/FTP/dataconn.pm line 54. "

Environment

10.8 10.9

Cause

The error you're seeing is related to an issue with the FTP connection during the restore process. It typically occurs if the FTP connection fails to initialize correctly, possibly due to:

  • Incorrect FTP or SCP server credentials.

  • Network connectivity issues to the FTP server.

  • Misconfigured server settings or path issues (ensure the correct path is specified if using FTP).

Resolution

For detailed steps on how to backup and restore, please refer to this article Backup and Restore the Messaging Gateway

 

Alternative approach for restoring large backup files via SCP.

  1. Login to the SMG Control Center command line using the admin account.

  2. Run the 'set-support 'command to enable the support account:

    You will be prompted to provide a secure password and confirm it. The support account will be active for about 7 days.

  3. Download WinSCP (or any SCP/SFTP tool) to transfer files to the SMG appliance.

  4. Log in to the SMG Control Center using WinSCP with the support account you just enabled.

  5. Create a directory called db in the /data/tmp directory:

    • Navigate to /data/tmp and create a folder named db.

  6. Copy your backup file to the newly created /data/tmp/db directory.

  7. Restore the backup using the following command from the admin account:

    db-restore scp://support@localhost/data/tmp/db/<backupfile>

    Be sure to replace <backupfile> with the actual filename of your backup.
    You will be prompted to enter the support password. Once entered, the restore process will begin.

    Note: The system may appear to be idle with a blinking cursor, but please be assured that the backup process is running in the background. Restoring a 2 GB backup file can take approximately 3 to 4 hours.

Recommendation:
To avoid network timeouts run the db-restore command directly from the virtual machine terminal, which will provide a more stable environment for the restore process.

Additional Information

Recommendations:

  • Ensure the FTP/SCP server is properly configured and reachable.

  • Double-check the FTP credentials and path.

  • Ensure that the backup file is within the allowable size limit (2GB for the web interface).

  • If the file exceeds 2GB, please use the command line method for restoration.