Skip to content

Backup copy from Glacier to QNAP is not fetched within the advertised time

1

I am trying to recover a backup of approx. 100GB from Glacier to my QNAP NAS. The copy was created using QNAP's native Glacier app. The attempts to recover it were made using the Glacier app, as well as QNAP's Hybrid Backup Solution (HBS) app which offers more configuration options (incl. expedited backup recovery).

In both solutions it takes much more than 8 hours to prepare the data from Glacier for recovery. The current job has been running for over 2 days and still has 0% progress. In the past I managed to get the job to start downloading actual data but recovery failed due to client-side encryption issue. After I corrected the encryption config, I am unable to recover - I keep getting stuck at 0% for as many as 6 days without any progress, after which I aborted the recovery. The waiting occurs regardless if I use "expedited" or "standard" recovery.

With another backup copy (500GB), I was able to successfully recover it with HBS after ~2 days of waiting. I was OK to accept such waiting time for the large copy, but when the current 100GB one makes me wait even longer - it is totally unacceptable.

asked 2 years ago167 views
1 Answer
0

Hi kradomanski,

I can understand how frustrating it must be to face such long recovery times for your 100GB backup, especially when you've had success with larger backups before. Let’s work through some steps to resolve this issue effectively. 😊


Clarifying the Issue

You’re trying to recover a 100GB backup from Amazon S3 Glacier to your QNAP NAS. Despite using QNAP’s Glacier app and HBS with options like expedited recovery, the process has been stuck at 0% for days. Even after resolving encryption issues, the recovery doesn't progress. This stands in stark contrast to a successful 500GB recovery using HBS, which completed in ~2 days.


Key Terms

  • S3 Glacier: A cost-efficient storage service designed for data archiving, offering retrieval tiers like expedited, standard, and bulk.
  • IAM Role/Permissions: Identity and Access Management roles control access to your S3 Glacier data. Insufficient permissions can cause retrieval failures.
  • CLI Restore Commands: AWS Command Line Interface provides direct, flexible access to your Glacier-stored data, bypassing third-party tools.
  • Logs and Debugging: App logs (like QNAP’s HBS logs) often contain valuable error details that can aid troubleshooting.

The Solution (Our Recipe)

Steps at a Glance:

  1. Confirm S3 Glacier Retrieval Settings in QNAP HBS and Glacier apps.
  2. Test IAM Permissions for Glacier Access.
  3. Use AWS S3 CLI to Restore and Retrieve Data.
  4. Perform Encryption Key Validation with Small Test Backups.
  5. Review QNAP Logs and Escalate to AWS Support if Needed.

Step-by-Step Guide:

Step 1: Confirm S3 Glacier Retrieval Settings in QNAP HBS and Glacier Apps

  • Verify that the retrieval tier (e.g., expedited or standard) matches your intention.
  • Double-check the region and Glacier vault specified in the app align with your stored backup.

Step 2: Test IAM Permissions for Glacier Access

  • Go to the IAM Management Console and confirm the user or role used by your QNAP app has the necessary S3 permissions. Use a policy like:
    {
        "Version": "2012-10-17",
        "Statement": [
            {
                "Effect": "Allow",
                "Action": "s3:*",
                "Resource": "arn:aws:s3:::your-bucket-name/*"
            }
        ]
    }
  • If unsure, temporarily assign "AmazonS3FullAccess" to test whether permissions are the root cause.

Step 3: Use AWS S3 CLI to Restore and Retrieve Data

  • If the QNAP apps fail to initiate recovery, use AWS CLI commands. First, initiate the restore:
    aws s3api restore-object --bucket your-bucket-name --key "backup-file-path" --restore-request '{"Days": 7, "GlacierJobParameters": {"Tier": "Standard"}}'
  • Wait for the object to move from Glacier to S3 (check its status with head-object). Once restored, download it directly:
    aws s3 cp s3://your-bucket-name/backup-file ./ --region your-region

Step 4: Perform Encryption Key Validation with Small Test Backups

  • Create a smaller encrypted test backup using the same configuration as your 100GB file.
  • Attempt recovery to confirm your encryption key is valid and recognized.

Step 5: Review QNAP Logs and Escalate to AWS Support if Needed

  • Locate QNAP HBS logs (typically found in /var/log on QNAP NAS). Look for errors like "access denied" or "object not found."
  • Share these logs with AWS Support for deeper troubleshooting. Be sure to include the restore job ID and the steps you've taken so far.

Closing Thoughts

By verifying retrieval settings, testing permissions, and attempting direct AWS CLI restores, you’ll either recover the data or isolate the root cause. If none of these steps resolve the issue, AWS Support can provide additional insights. I hope this helps you get your 100GB backup restored without further delay.


Let me know if you have any additional questions or need assistance! 🌟😊


Cheers, Aaron 😊

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.