Page 1 of 1
does not look like a tar archive
Posted: Tue Feb 14, 2017 3:12 pm
by youngek
Setting up a new NagiosXI box and I downloaded the source files from
http://assets.nagios.com/downloads/nagi ... est.tar.gz. also have downloaded xi-5.4.2.tar.gz.
When I run tar xzf xi-latest.tar.gz or tar xzf xi-5.4.2.tar.gz I get
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
This is on a Redhat 6.7 box.
Re: does not look like a tar archive
Posted: Tue Feb 14, 2017 3:30 pm
by rkennedy
Can you try downloading again on the system? It could have possibly been corrupted through transfer. I just tested, and it appears to be working fine.
Code: Select all
127 wget http://assets.nagios.com/downloads/nagiosxi/xi-latest.tar.gz?_ga=1.29217852.1856636566.1485838208
128 tar zxvf xi-latest.tar.gz\?_ga\=1.29217852.1856636566.1485838208
Re: does not look like a tar archive
Posted: Tue Feb 14, 2017 4:01 pm
by youngek
When I try an download from that link it says connection refused. If I download the file and copy it over to the box I get the same error.
Re: does not look like a tar archive
Posted: Tue Feb 14, 2017 4:21 pm
by dwhitfield
What's the sha1sum? It should be as follows
Code: Select all
sha1sum xi-5.4.2.tar.gz
c9b06b9f48a76157dfab2a4e2ab1b2cbb84fa5dc xi-5.4.2.tar.gz
Re: does not look like a tar archive
Posted: Wed Feb 15, 2017 10:16 am
by youngek
ad9e68f6dd169e77646cc942613adadd73f2d5da xi-5.4.2.tar.gz
Re: does not look like a tar archive
Posted: Wed Feb 15, 2017 10:37 am
by dwhitfield
It could be an encoding issue. How are you transferring? Is it possible to give the XI server temporary access to the Internet?
https://superuser.com/questions/447897/ ... emote-serv might be useful in tracking down the issue.
Re: does not look like a tar archive
Posted: Wed Feb 15, 2017 10:59 am
by youngek
I can only download it through my desktop. From the Linux box it says the connection is refused. From my desktop I am using winscp to transfer it over to the /tmp directory.
Re: does not look like a tar archive
Posted: Wed Feb 15, 2017 11:27 am
by dwhitfield
I'm assuming you are using Windows so you might try
http://gnuwin32.sourceforge.net/packages/wget.htm rather than a browser download. I couldn't find a non-Windows download for WinSCP and of course the name suggests Windows.
I don't know what protocol you are using in WinSCP, but
https://winscp.net/eng/docs/faq_utf8 may be of use in figuring out the encoding issue. Do you know what method you are using? I've never had an issue using SFTP on FileZilla, so perhaps SFTP is a good start if you aren't using that. Filezilla is available on Windows if you want to give that a shot.