Untar on linux fails with exit code 1

I am downloading a tar.gz file on linux server through BigFix and gunzip/untar command is used for extraction.
However, the extraction fails with exit code 1.

Could someone let me know what could be the probable reason?
Is it due to the file size? Or is there any time or size limit set in BigFix for downloads and extraction?

Also, what would be a definite solution for this?

It’s hard to say, you’ll need to show us what command you are running.

Command:

wait sh -c "/usr/bin/gunzip __Download/file.tar.z"
wait sh -c “cd ‘/var/opt/BESClient/__BESData/foldername’ ; /usr/bin/tar -xf ‘{pathname of client folder of current site}/__Download/file.tar.z’”

Check your quoting, you don’t have a close quote on the path for the ‘cd’ statement.

1 Like

Thankyou for your response.

There might be a typo. I have edited the above command.

I doubt there might be issues with the quotes as this command does not fail on all servers… Its only for few!
So wanted to know the probable reason.

Those systems may be missing gunzip or tar, or they are installed in paths you don’t expect? Perhaps insufficient free space to extract the files?

2 Likes

Thankyou @JasonWalker, I shall verify that