Altitude Game: Forums  

Go Back   Altitude Game: Forums > Altitude Support > Dedicated Server
FAQ Community Calendar

Dedicated Server Discuss technical issues related to hosting your own servers.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2009, 08:15 PM
Wyse Wyse is offline
Member
 
Join Date: May 2009
Posts: 31
Default Failure to download maps

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:

Code:
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:

Code:
<?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.)
Reply With Quote
  #2  
Old 07-16-2009, 08:28 PM
Wyse Wyse is offline
Member
 
Join Date: May 2009
Posts: 31
Default

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

Code:
<?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?
Reply With Quote
  #3  
Old 07-16-2009, 08:34 PM
lamster lamster is offline
Administrator
 
Join Date: May 2008
Posts: 1,655
Default

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).
Reply With Quote
  #4  
Old 07-16-2009, 08:37 PM
lamster lamster is offline
Administrator
 
Join Date: May 2008
Posts: 1,655
Default

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.
Reply With Quote
  #5  
Old 07-16-2009, 08:40 PM
Wyse Wyse is offline
Member
 
Join Date: May 2009
Posts: 31
Default

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!
Reply With Quote
  #6  
Old 07-16-2009, 08:42 PM
lamster lamster is offline
Administrator
 
Join Date: May 2008
Posts: 1,655
Default

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
Reply With Quote
  #7  
Old 07-16-2009, 08:45 PM
Wyse Wyse is offline
Member
 
Join Date: May 2009
Posts: 31
Default

Ah, I see. Success, thanks!!
Reply With Quote
  #8  
Old 07-16-2009, 09:18 PM
lamster lamster is offline
Administrator
 
Join Date: May 2008
Posts: 1,655
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:00 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
2008 Nimbly Games LLC