Author Topic: The CDN forgets over updating add-ons ...!  (Read 1684 times)

for some reason, CDN doesn't like it when an add-on is different from what it has in it's database. i use modified versions of T+T in order to prepare/test/play with updates, but due to 'hash errors' (?) players can't actually download them from the CDN

can we get a quick fix in, for the CDN? if something doesn't line up with what the CDN has, can we just make blockland download it from the server?

'hash errors' (?)

It converts the contents of one file into one encoded hash string, and the other one as well. If they don't match then the files are different and it doesn't want that and that is the problem.

Badspot

  • Administrator
Please describe what is actually happening and post the relevant launcher.log or console.log files.


whenever someone tries to join my server, they freeze up at some point and can't load a file. i've boiled it down to the tier+tactical tier 1 package, which i have recently updated with new sounds, models, etc: but since this package is not what the CDN has, they get a hash error and can't download the file

Quote
BlobDownloadManager::blobReceived - Got incorrect hash! (expected=fff027101a560f8a9c175ac091aa1767c29718c2, actual=1027f0ff8a0f561ac05a179c6717aa91c21897c2) Ignoring...

thus, downloading ceases and the client just sits around doing nothing


what is the CDN?

client... download... network?

it's this big add-on database badspot implemented to speed up download times with the client

client... download... network?

it's this big add-on database badspot implemented to speed up download times with the client
Content Delivery Network.

Badspot

  • Administrator
whenever someone tries to join my server, they freeze up at some point and can't load a file. i've boiled it down to the tier+tactical tier 1 package, which i have recently updated with new sounds, models, etc: but since this package is not what the CDN has, they get a hash error and can't download the file

thus, downloading ceases and the client just sits around doing nothing


client... download... network?

it's this big add-on database badspot implemented to speed up download times with the client

The way it works, it doesn't matter if you modify files.  The files are identified to the client by hash, filenames are not considered.  The whole point of the system is for the client to get the exact same files the server is using, no matter what they are.  If it could not handle modified files the system would not work at all.

What has happened here is this:

  • Client connects to your server
  • Your server tells client that file with hash fff027101a560f8a9c175ac091aa1 767c29718c2 is needed
  • Client checks the CDN for the file ( http://cloud.blockland.us/blobs/fff027101a560f8a9c175ac091aa1767c29718c2 ) - it isn't there.  This is fine.  Any file that isn't on the CDN can be downloaded directly from the server you're connecting to.
  • Client asks your server to send the file
  • Client receives some data from your server
  • Client hashes the data it received from your server and gets 1027f0ff8a0f561ac05a179c6717a a91c21897c2, which is not the correct hash
  • Client concludes that your server said it was going to send one file and instead sent a different one.  Error.



I don't really know how this can happen but here are some guesses:

  • Your cache.db file has become corrupted somehow (deleting cache.db may solve the problem)
  • You have directly modified the data in the cache.db file
  • You are modifying the files after server has loaded
  • You or the client are somehow running v19 or earlier of Blockland which had a different hashing function
  • Other software is actively interfering with the file transfer



If you figure out what is wrong, please post what the solution was.

i got rid of cache.db, problem solved

back to business!