Problem extracting .tgz

Problem extracting .tgz

by Shane Pinnell -
Number of replies: 8
I am trying to extract the .tgz file and am receiving an error that it is not a valid tar file. Any thoughts?
Average of ratings: -
In reply to Shane Pinnell

Re: Problem extracting .tgz

by Shane Pinnell -
Here is some more info that I didn't have access to when I posted last night.

I am running on a fresh Ubuntu 7.10 server installation. The exact error I am receiving is:

noc-moodle /var/www: tar -xzvf moodle-1.8.4.tgz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors

Apache is working fine, I also installed PHPMyAdmin without any trouble.

So, any help anyone can provide would be greatly appreciated. We are looking into Moodle as a replacement for our existing CMS (eChalk). We want to evaluate it as an alternative to BlackBoard. We have 8 campuses that we will be setting up with around 10,000 students so this will be a rather large undertaking (at least for us).

Thanks!

In reply to Shane Pinnell

Re: Problem extracting .tgz

by Mauno Korpelainen -

First, instead of moodle-1.8.4.tgz you could use Latest Stable Build Moodle 1.8.4+ moodle-latest-18.tgz or moodle-latest-18.zip because the latest version has several bug fixes since 11th of January ( http://download.moodle.org/stable18/CHANGES )

Did you select binary file type in ftp? If it was transfered in ascii mode it would cause checksum errors.

You could also try to extract the file first to tar format with

gunzip moodle-latest-18.tgz

and then

tar -xvf moodle-latest-18.tar

I have always unzipped zip packages...they work as well in Linux.

In reply to Mauno Korpelainen

Re: Problem extracting .tgz

by Shane Pinnell -
I tried with both the latest build and the 1.8.4 build. I used wget to retrieve the tgz file. I will try with ftp.

Thanks!
In reply to Mauno Korpelainen

Re: Problem extracting .tgz

by Shane Pinnell -
I did a ls -sh and the moodle-latest-18.tgz is only 8.0K!

I also did a:

file moodle-latest-18.tgz
moodle-latest-18.tgz: HTML document text

So, it looks like I am not downloading the file, but just an http header maybe? Any thoughts?
In reply to Shane Pinnell

Re: Problem extracting .tgz

by Mauno Korpelainen -

Usually all the commands you have used should work ( starting from wget and tar etc ) - maybe the server itself is missing some programs or is somehow misconfigured ?

If you have some kind a straigh ssh or ftp access to your server through web you could of course download a package from http://download.moodle.org/ , extract tgz or zip package to your local pc with any free or commercial software, connect to your server with a program like Filezilla and move folders (drag and drop) inside web root + create moodledata folder (not inside web root) and database.

Maybe someone who has installed moodle to Ubuntu 7.10 could comment (my personal test server is Debian Etch and although it should be almost the "same family" as Ubuntu I may have missed something).

In reply to Shane Pinnell

Re: Problem extracting .tgz

by Paul Holden -
Picture of Core developers Picture of Moodle HQ Picture of Moodle Workplace team Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
Hi Shane,

Make sure you are downloading the actual TGZ archive rather than the download placeholder -

Placeholder: http://download.moodle.org/download.php/stable18/moodle-latest-18.tgz

Actual download: http://download.moodle.org/stable18/moodle-latest-18.tgz

Average of ratings: Useful (3)
In reply to Paul Holden

Re: Problem extracting .tgz

by Shane Pinnell -
Paul, you are a genius! Thank you so much! What would be the best way to document this so that nobody else runs into this problem?