question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Archived (.tgz) files aren't downloading properly from blob

See original GitHub issue

Description

I archived my data (.tgz) on server-1, and uploaded to the container as blob.

$ az storage blob upload -f file_name.tgz -c container_name -n file_name.tgz --account-name account_name --account-key account_key

Zipping and Unzipping working fine with server-1,

$ file -s file_name.tgz 
file_name.tgz: gzip compressed data, from Unix, last modified: Mon Sep 18 13:44:22 2017

On server1: Original file size is 31M Archived file size is 7.79M I check the blob size from UI it was 7.79M Tried to download archive file on local machine from UI, the downloaded archive’s size was 32.4M.

Then, I downloaded the file to server-2 as,

$ az storage blob download -c container_name -f /home/username/file_name.tgz -n file_name.tgz --account-name account_name --account-key account_key

** .tgz file gets downloaded [Bigger files showing me “Received response with content” as output] I tried doing unzipping the file as

$ tar xzvf file_name.tgz
 
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Bigger files when downloaded, giving me output as

Received response with content

Also, tried ‘dtrx’ utility to unzip the file. This gets recover but very less data is there in the folder.


Environment summary

Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: apt-get

CLI Version: What version of the CLI and modules are installed? (Use az --version)
Answer here: 2.0.16 (Tried 2.0.17 also)

OS Version: What OS and version are you using?
Answer here: Ubuntu 16.04

Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: bash

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
tmoretticommented, Sep 29, 2017

Just for reference for others with same issue, I still got this download problem with 2.0.18 cli version with a file uploaded with previous versions. I reuploaded the file using the 2.0.18 and download problem has gone away.

0reactions
DheerajJoshicommented, Oct 4, 2017

Faced the same issue, but works properly in 2.0.18

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to download the files which were uploaded to the blob ...
I have created container on azure storage and with code below made it work to upload my files(blobs) in ...
Read more >
Extract files from .tar.gz files store in Blob Container
Is it possible to extract files from .tar.gz using Azure Data Factory or Functions App to be ingested by ETL process in ADF?...
Read more >
How to extract a Kafka tgz file - Quora
A tgz file is just a compressed directory, like a .zip file. ... easy to pass around - you just download or copy...
Read more >
Full text of "The Ultimate Raspberry Pi Handbook"
Windows will probably warn you that there's a risk to running something downloaded from the internet. If you want to be certain your...
Read more >
Support for Docker and OCI Containers - Apptainer
tgz files ). To build an image using a definition file, which starts from a container in a Docker archive, use Bootstrap: docker- ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found