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 http://tmwdata.org/updates/ at each beginning of line, so you have list of url.
ex: <update type="data" file="misc-xml-0938aa1.zip" hash="fca16527" /> be http://tmwdata.org/updates/misc-xml-0938aa1.zip
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.
Using wget to update
Re: Using wget to update
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.
This mean for some people all of it may not work or work very unstable.
- wushin
- TMW Adviser
- Posts: 1759
- Joined: 18 Dec 2012, 05:56
- Location: RiverBest, Brew City, Merica
- Contact:
Re: Using wget to update
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.
The secret to getting all the important stuff done is doing nothing.