franklyn86 / snofyre

Automatically exported from code.google.com/p/snofyre
0 stars 0 forks source link

Installer needs warning or progress bar for TRUD download #38

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using 20110131 version of installer app over a 10Mb broadband connection...

TRUD download of the 225M data pack takes around 30 minutes. But the installer 
app has no progress bar and doesn't warn the user that it will sit there doing 
apparently nothing for a very long time. The savvy user might check the 
download progress by monitoring the current size of the downloading file in the 
SnoFyre install directory, but it would help to tell everybody to do this and 
also that the file being downloaded is about 225M, so they can work out for 
themselves that this is a long job.

Probably also a mistake to suppress any of the FTP session responses; they're 
evidence that at least the login has been successfully made. If the FTP 
responses were displayed, then the script could include an ls -a command to 
display the file size.

(Also...about the 'prom off' directive in the FTP script: the 'off' part 
appears to be redundant, at least using the MS FTP command line client. 
'prompt' or 'prom' on its own simply toggles the interactive status between on 
and off, and any trailing on/off argument isn't parsed. Two successive 'prom 
off' commands actually leaves interactive mode back on.)

Original issue reported on code.google.com by jeremy.r...@googlemail.com on 2 Feb 2011 at 11:57

GoogleCodeExporter commented 9 years ago
The installer u tried is a degraded version of an installer that displays the 
download progress. Unfortunately the installer that displays download progress 
uses an Apache FTP library that does not like our TRUD server. Somewhere 
between TRUD and the library, a few bytes are lost and the downloaded zip ends 
up being corrupted. The same code + Apache library seem to work just fine when 
the test zip is hosted on a different FTP server. TRUD's logs seem to indicate 
that its doing what its meant to do...

The net result is that we downgraded the installer to use built-in FTP via a 
batch file, which has the lack of progress bar issue. I think its actually a 
lot more easier to ask the user to manually download the pack from the new TRUD 
via their browser. Once they have downloaded the pack to the INSTALLATION_PATH, 
they can use the 'extract-pack.bat' script located in the 
INSTALLATION_PATH/configurator folder. This is like the fallback to the lowest 
point of failsafe... Please try the Snofyre Installer in the dropbox, without 
the time-stamp. The version you tried was the one without the failsafe... 

On the whole, trying to do anything clever like progress on a batch script is 
not worthwhile.... Perhaps Tim can focus his effort on fixing the TRUD + Apache 
library issue.. :)

Original comment by jay.kola on 2 Feb 2011 at 9:30