PDA

View Full Version : Failure to download maps


Wyse
07-16-2009, 07:15 PM
I just installed my first instance of Altitude on a Linux server, set up a basic server using server_configurator. (All I set was a title, rcon password, and administrator, if that matters.) But my server fails to launch with server_launcher. Here are the relevant logs:

INFO [2009-07-16 15:02:26,940] [main]: ServerManager Downloading Official Map: tbd_lostcity.altx:743398:96321757
INFO [2009-07-16 15:02:27,116] [Thread-4]: Initiating map download from http://maps.altitudegame.com/0.0.210/tbd_lostcity.altx
WARN [2009-07-16 15:02:27,438] [Thread-4]: HTTP downloaded resource mismatch: local 'tbd_lostcity.altx:284:3632179504' does not match remote 'tbd_lostcity.altx:743398:96321757'
WARN [2009-07-16 15:02:27,441] [Thread-4]: HTTP Download Aborted
java.io.IOException: Corrupt download!
at jb.b(SourceFile:206)
at jb.a(SourceFile:145)
at sS.run(SourceFile:100)
at java.lang.Thread.run(Unknown Source)
ERROR [2009-07-16 15:02:27,480] [main]: java.lang.Exception: Map Download Failed
java.lang.Exception: Map Download Failed

Eventually I spotted one hidden meaning behind these messages: the downloaded map is only 284 bytes, not the intended 743K. Inspecting maps/tbd_lostcity.altx reveals:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>NoSuchKey</Code><Message>The specified key does not exist.</Message><Key>0.0.210/tbd_lostcity.altx</Key><RequestId>5939C4EA562FA3D5</RequestId><HostId>7k/UNBE8gycktEO74nHDcB+RPYOsxy9mGjGEDkvNKMzygY9vj8WW+ eH16LswARrz</HostId></Error>

It would have been nice if this message got reported in the log. But more importantly, what's causing it? Where does the 0.0.210 come from? (grep says it appears only in those logs.)

Wyse
07-16-2009, 07:28 PM
OK, poking around a little more, I'm guessing that 0.0.210 comes from resource-config.xml, which starts with these lines:

<?xml version="1.0" encoding="UTF-8"?>
<ResourceConfig>
<version major="0" minor="0" micro="210" />
<resources>

Did the Linux installer somehow get an old or otherwise incorrect version of resource-config.xml?

lamster
07-16-2009, 07:34 PM
This is a bug with the "deferred download" official map list functionality I pushed out a few days ago. Change your server to use an empty map list, let your server run/auto-update to the latest version, then wipe out your map directory, restart the launcher, and it should download the correct stuff. I'll fix this bug in the next patch/installers.

Your server tried to download the official maps based on its version at startup (210), but the map resources are only available for the latest version of the game (212).

lamster
07-16-2009, 07:37 PM
The currently pushed installers are version 210 -- I haven't uploaded the 212 installers hence the need for auto-update. Sorry for the inconvenience, this will be fixed soon.

Wyse
07-16-2009, 07:40 PM
Is there an easy way to autoupdate? The server won't run at all because of this, and Altitude itself also crashes for an unrelated reason. (I've submitted a couple crash reports. Looks like my Windows X-server doesn't support OpenGL.) Oh, OK, just changing 210 to 212 worked in this case, presumably only because the maps didn't change CRCs in the interim. Thanks!

lamster
07-16-2009, 07:42 PM
Now that the maps are downloaded make sure to change the version back to 210 so that the auto-update module will realize it needs to update, and download the updated jars from our update server. Auto-update occurs automatically while the server is running

Wyse
07-16-2009, 07:45 PM
Ah, I see. Success, thanks!!

lamster
07-16-2009, 08:18 PM
Thanks for the bug report, this issue will be fixed in the next patch. Our content delivery network (where installers are hosted) can take a couple days to propagate updates, but after that this issue should never come up again.