Page 1 of 1

Using wget to update

Posted: 10 Jul 2014, 14:49
by inpo
Hi all, sometimes you probably have a problem with updating TMW data, like while the client downloading updates it get stoped at some % download because likely a bad internet connection, unfortunely the client doesn't retry it and just thrown an error.
To get successfully updates data the trick is to use wget to manually download updates from list of url based on resources.xml file.
1. cd to updates directory, copy resources.xml to resources.txt or anything, remove all texts except value of file attribute in all update elements, insert at each beginning of line, so you have list of url.
ex: <update type="data" file="" hash="fca16527" /> be
2. run wget with these options: wget -c -T 10 -t 0 -i resources.txt
wget will download files listed in resources.txt, in case the download takes long to retrieve, it will timeout and retry at that point.

I hope it unambiguous. :alt-0:

Re: Using wget to update

Posted: 10 Jul 2014, 15:42
by 4144
Client using 3 mirrors, but sadly two from it is USA based, and one some CDN.
This mean for some people all of it may not work or work very unstable.

Re: Using wget to update

Posted: 10 Jul 2014, 15:46
by wushin
Well if it used git to pull updates I think it be more sane, easier to debug and most git services already have CDN/Mirrors in every country.