Unexpected end of file from server.
I started playing Spiral Knights a week ago and I really like it. I played for a couple of hours on wednesday but then thursday came around. The new Bugfix was released and I started the game. The patcher came up, downloaded the files, patched to 100% about 3 times and then on the fourth it came up with the error:
"The application has failed to launch due to the following error:
Unexpected end of file from server"
So as many people would do when encountering this; I looked on the forums. I found no trace of this. I searched it on google and found three posts on this forum about it with the exact same thing I was thinking, "Is this going to be fixed?" In an attempt to get rid of the error, I uninstalled java and spiral knights and restarted my computer. I re-downloaded both of them(java first) and it did the same thing mentioned earlier. Thinking it was because I was using steam, I tried the downloadable client. It didn't work. I tried the browser form of the game. It didn't work. I then, in an attempt to get some support from the actual team, sent an email to them using the support portal explaining the situation. I'm still waiting on a reply and I have no bother with that, as long as the problem is fixed.
All I want to know is if you (Three Rings) are doing anything to solve this for the many people I have seen with the same problem, including myself.

(Patch date Aug 2 2011, ver 121539)
http://download.threerings.net/spiral/20110802121539/digest.txt
http://download.threerings.net/spiral/20110802121539/getdown.txt
You can work around this by manually downloading both files and copy them to the spiral knights directory. If that doesn't work, you need to delete the rsrc, code, and native folders in the SK directory, which forces the patcher to download a complete copy from the server.
I've been looking into this since the Ironclaw update and it seems like the issue is an http/data encoding problem when it tries to transfer data between the patch server and client software (including some browsers). The thing that strikes odd though, is that it only seems to be a problem with the delta patches and text files. If it needs to redownload the jars as a whole, they are received intact.
Im having the same issue, I tried all of the methods Starlinvf gave to fixing the issue but no worked. It now skips the patcher and says the error straight away.
I managed to download and play it fine before the patch, my partner had the issue then but just copied the files over from my pc on to his, but now we both are having the issue.
Every post ive come across via google doesnt seem to fix it.
Is there a link that i can download the files that Starlinvf posted above? as those do not seem to work for me (only thing i have yet to try though i asked a friend to send his over and that didnt work)

You can put the links into Proxify.com and it should allow you to download the file. There seems to be an oddity around the data compression occurring somewhere in transit.
I put both links into Proxify.com and saved them in to the right area, but no luck still getting the same message.
Run out of ideas now.

Delete the /code/ and /rsrc/ folders and launch the game again. I'll take a little bit since it has to pull new copies of the Jar files off the patch server.
Deleting those files cause the download to start then patching skips and it goes straight to that error again

look at the launcher.log file and see where its still getting stuck at.
This is with the code and rsrc files deleted, and also the files in post 3.
2011/08/04 18:05:15:959 INFO e.a: ------------------ VM Info ------------------
2011/08/04 18:05:15:962 INFO e.a: -- OS Name: Windows 7
2011/08/04 18:05:15:963 INFO e.a: -- OS Arch: x86
2011/08/04 18:05:15:964 INFO e.a: -- OS Vers: 6.1
2011/08/04 18:05:15:964 INFO e.a: -- Java Vers: 1.6.0_25
2011/08/04 18:05:15:964 INFO e.a: -- Java Home: c:\program files\steam\steamapps\common\spiral knights\java_vm
2011/08/04 18:05:15:964 INFO e.a: -- User Name: Holly
2011/08/04 18:05:15:964 INFO e.a: -- User Home: C:\Users\Holly
2011/08/04 18:05:15:964 INFO e.a: -- Cur dir: c:\program files\steam\steamapps\common\spiral knights
2011/08/04 18:05:15:965 INFO e.a: ---------------------------------------------
2011/08/04 18:05:16:001 INFO e.a: Failed to find proxy settings in Windows registry [error=java.lang.NoSuchFieldError: m_key]
2011/08/04 18:05:16:004 INFO e.a: ---------------- Proxy Info -----------------
2011/08/04 18:05:16:005 INFO e.a: -- Proxy Host: null
2011/08/04 18:05:16:006 INFO e.a: -- Proxy Port: null
2011/08/04 18:05:16:006 INFO e.a: ---------------------------------------------
2011/08/04 18:05:16:009 INFO e.a: Skipping [quals=linux, osname=windows 7, osarch=x86, key=resource, value=[linux] native/liblwjgl64.so]
2011/08/04 18:05:16:010 INFO e.a: Skipping [quals=linux, osname=windows 7, osarch=x86, key=resource, value=[linux] native/liblwjgl.so]
2011/08/04 18:05:16:010 INFO e.a: Skipping [quals=linux, osname=windows 7, osarch=x86, key=resource, value=[linux] native/libjinput-linux.so]
2011/08/04 18:05:16:010 INFO e.a: Skipping [quals=linux, osname=windows 7, osarch=x86, key=resource, value=[linux] native/libjinput-linux64.so]
2011/08/04 18:05:16:011 INFO e.a: Skipping [quals=linux, osname=windows 7, osarch=x86, key=resource, value=[linux] native/libopenal64.so]
2011/08/04 18:05:16:011 INFO e.a: Skipping [quals=linux, osname=windows 7, osarch=x86, key=resource, value=[linux] native/libopenal.so]
2011/08/04 18:05:16:011 INFO e.a: Skipping [quals=linux, osname=windows 7, osarch=x86, key=resource, value=[linux] native/libkeybd.so]
2011/08/04 18:05:16:012 INFO e.a: Skipping [quals=linux, osname=windows 7, osarch=x86, key=resource, value=[linux] native/libfroth.so]
2011/08/04 18:05:16:013 INFO e.a: Skipping [quals=mac os x, osname=windows 7, osarch=x86, key=resource, value=[mac os x] native/liblwjgl.jnilib]
2011/08/04 18:05:16:013 INFO e.a: Skipping [quals=mac os x, osname=windows 7, osarch=x86, key=resource, value=[mac os x] native/libjinput-osx.jnilib]
2011/08/04 18:05:16:013 INFO e.a: Skipping [quals=mac os x, osname=windows 7, osarch=x86, key=resource, value=[mac os x] native/openal.dylib]
2011/08/04 18:05:16:013 INFO e.a: Skipping [quals=mac os x, osname=windows 7, osarch=x86, key=resource, value=[mac os x] native/libfroth.jnilib]
2011/08/04 18:05:16:014 INFO e.a: Skipping [quals=linux, osname=windows 7, osarch=x86, key=java_location, value=[linux] /spiral/client/java_linux.jar]
2011/08/04 18:05:16:015 INFO e.a: Skipping [quals=mac os x-x86_64, osname=windows 7, osarch=x86, key=jvmarg, value=[mac os x-x86_64] -d32]
2011/08/04 18:05:16:032 INFO e.a: Able to lock for updates: true
2011/08/04 18:05:16:074 INFO e.a: Verifying application: http://download.threerings.net/spiral/20110802121539/
2011/08/04 18:05:16:074 INFO e.a: Version: 20110802121539
2011/08/04 18:05:16:074 INFO e.a: Class: com.threerings.projectx.client.ProjectXApp
2011/08/04 18:05:16:075 INFO e.a: Dropping status 'm.validating'.
2011/08/04 18:05:16:089 INFO e.a: Unable to read version file: .\version.txt (The system cannot find the file specified)
2011/08/04 18:05:16:752 INFO e.a: Application requires update.
2011/08/04 18:05:17:182 INFO e.a: Downloading 1927533 bytes...
2011/08/04 18:05:17:264 INFO e.a: Downloading resource [url=http://download.threerings.net/spiral/20110803172416/patch20110802121539.dat, size=1830924]
2011/08/04 18:05:21:388 INFO e.a: Downloading resource [url=http://download.threerings.net/spiral/20110803172416/patch-full20110802121539.dat, size=96609]
Patching code/config.jar...
2011/08/04 18:05:21:560 WARNING e.a: Failed to copy .\code\config.jar to .\code\config.jar.old: java.io.FileNotFoundException: .\code\config.jar (The system cannot find the file specified)
Failed to .oldify '.\code\config.jar'.
Patching code/projectx-config.jar...
2011/08/04 18:05:21:593 WARNING e.a: Failed to copy .\code\projectx-config.jar to .\code\projectx-config.jar.old: java.io.FileNotFoundException: .\code\projectx-config.jar (The system cannot find the file specified)
Failed to .oldify '.\code\projectx-config.jar'.
Patching code/projectx-pcode.jar...
2011/08/04 18:05:21:614 WARNING e.a: Failed to copy .\code\projectx-pcode.jar to .\code\projectx-pcode.jar.old: java.io.FileNotFoundException: .\code\projectx-pcode.jar (The system cannot find the file specified)
Failed to .oldify '.\code\projectx-pcode.jar'.
Patching rsrc/intro-bundle.jar...
Failed to write patch file '.\rsrc\intro-bundle.jar.patch': java.io.FileNotFoundException: .\rsrc\intro-bundle.jar.patch (The system cannot find the path specified)
Patching rsrc/full-rest-bundle.jar...
Failed to write patch file '.\rsrc\full-rest-bundle.jar.patch': java.io.FileNotFoundException: .\rsrc\full-rest-bundle.jar.patch (The system cannot find the path specified)
2011/08/04 18:05:21:622 INFO e.a: Attempting to refetch 'digest.txt' from 'http://download.threerings.net/spiral/20110803172416/digest.txt'.
2011/08/04 18:05:22:250 WARNING e.a: getdown() failed.
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:769)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:766)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195)
at com.threerings.getdown.data.Application.downloadFile(Unknown Source)
at com.threerings.getdown.data.Application.downloadControlFile(Unknown Source)
at com.threerings.getdown.data.Application.downloadDigestFile(Unknown Source)
at com.threerings.getdown.data.Application.updateMetadata(Unknown Source)
at com.threerings.getdown.launcher.Getdown.update(Unknown Source)
at com.threerings.getdown.launcher.Getdown.getdown(Unknown Source)
at com.threerings.getdown.launcher.Getdown.run(Unknown Source)
2011/08/04 18:05:22:280 INFO e.a: Releasing lock
if any of that makes sense, getdown failed?
2011/08/04 18:05:21:622 INFO e.a: Attempting to refetch 'digest.txt' from 'http://download.threerings.net/spiral/20110803172416/digest.txt'.
2011/08/04 18:05:22:250 WARNING e.a: getdown() failed.
java.net.SocketException: Unexpected end of file from server
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:769)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:766)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:632)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195)
at com.threerings.getdown.data.Application.downloadFile(Unknown Source)
at com.threerings.getdown.data.Application.downloadControlFile(Unknown Source)
at com.threerings.getdown.data.Application.downloadDigestFile(Unknown Source)
at com.threerings.getdown.data.Application.updateMetadata(Unknown Source)
at com.threerings.getdown.launcher.Getdown.update(Unknown Source)
at com.threerings.getdown.launcher.Getdown.getdown(Unknown Source)
at com.threerings.getdown.launcher.Getdown.run(Unknown Source)
the above post is a little confusing so i decided to re post the relevent section and explain what iv worked out so far.
2011/08/04 18:05:21:622 INFO e.a: Attempting to refetch 'digest.txt' from 'http://download.threerings.net/spiral/20110803172416/digest.txt'.
attempts to retrive this file which apears to be a list of game files and related hash codes to confirm correct version
2011/08/04 18:05:22:250 WARNING e.a: getdown() failed.
java.net.SocketException: Unexpected end of file from server
fails to retrive file
i have attempted to aquire this file using a number of web browsers and a download manager. each time i get an unknown server error,
i have also tried to get it using proxyfiy.com and although i can view the file when it is saved to the hard drive the game dosent recognize it and attempts to re download creating the same error.
a solid fix for this problem would be really apreaciated im getting sic of spending 6 hours finding new ways to get the software to work each time you bring out a bloody patch

The Aug 3rd update invalidated the digest and getdown files you have, so its trying to do a partial patch first.
Get the files for the latest version:
http://download.threerings.net/spiral/20110803172416/digest.txt
http://download.threerings.net/spiral/20110803172416/getdown.txt
I'm having the same problem, and I've e-mailed 3Os about it. But I thought IU'd try to get help here. I'm having the same issue and I've tried everythign suggested in this thread. Tempted to do a full uninstall-reinstall, so I'll let you all know how that works out.
http://www.megaupload.com/?d=BKDYP8EO is a copy of a working spiral knights that a friend gave me, i downloaded that and copied it over my old spiral knights folders, and now it works perfectly
Shockie You ROCK!! iv spent hours trying everything i can think of (including a clean reinstall) but nothing works. the download you posted works. just download it, delete everything in the spiral knights directory and copy in everything in the rar file.
i would also like to point out that the gms should have offered this solution as a tempory measure until a fix was found. however it seems they dont give a crap.
Woot glad its working for others now. Hopefully it saves others the time and annoyance of changing files and deleting folders. Hopefully next patch we dont have the same issue, and yeah that should be a temporary fix some where so we don't have to put up with it =(
Due to the patch on the 5th Aug / 4th Aug depending where you are in the world the link i posted in the 14th post is out of date and may not fix peoples issues
uggh.....and I just got it working today too. Now that new patch went to screw it up again.
Can someone please upload their full working version ?? Thx
shockie can u reupload it to mediafire, help me plz!!
working on preparing a copy now.. watch this space
here is a partial copy of the game and should be enough to get it working for most people as long as you havent deleted the game directory
Link Removed because of outdating (ie new version of game and new links see post #32)
copy the files in the rar into the game directory (keep the strucutre intact) overwrite any existing files
run the game. it will appear to do nothing for a time or if your running steam the client may appear to crash
just leave it alone!!!!! within about 10 min the game should start up fine.
let me know if you have any problems. i will also work on uploading just the digest.txt and getdown.txt and a full copy of the game for those who cant use the above
enjoy
here are the digest and getdown files as promised
Link Removed because of outdating (ie new version of game and new links see post #32)
unfortunatly due to size limitations on mediafire i havent been able to upload the full copy of the game however i reckon the last two posts should cover most people. just post here if it dosent and i will endevour to upload it (probably as a torrent) tommorw. Assuming they dont bring out another patch in the mean time.
oh, thanks u, thanks u very much, i want contact with you easier, and you can help me next time, i will pay for you!!
oh no, it not run, i need a full copy!! can you give me your yahoo flat84?
can someone upload the full copy! please

If you need to shrink it, technically all you need is everything in the native folder, getdown.txt, digest.txt, and all the jar files. Everything else is either contained in, or extracted from the jar.

The "unexpected end of file" issue can be a result from aggressive "security software" such as virus scanners. Specifically, Kaspersky software has caused that in some cases.
I'd recommend to anyone having this error to temporarily disable those and then try patching again.
links removed see next post
The torrent thing dosent seem to have panned out as it appears my isp has capped my peer to peer uploading. instead here is a link to a web host with the full copy and a much better download rate.
(links no longer relevent)
Please dont change the password and if you want your own login email me on the temporary email addres rouge.runner.spknight@gmail.com
enjoy
oh, thanks u, i have played it buy u, u soenthusiasm, thanks
ok so they patched again and again i was unable to download the digest file.
after another 3 hours spent i have worked out that some ISPs seem to have a problem with the file compression ... or maby its the server having problems with the compression used by some ISPs ... either way the easy solution is to update using a different Internet Service Provider.
To this end i hooked up my flatmates cellphone to my computer and set it up to act as a modem.
This allowed me to download the update with no problems and now here it is for you all to enjoy.
as i still have 10 days left on my trial account at egnyte.com i will upload the files there again and am starting the process as i make this post.
i will be uploading the following files
full game (just copy it in and run)
digest and getdown files only
if i can be bothered later i might upload a partial version as i did with the previous patch.
go to the following site and enjoy.
(links no longer relevent)
Please dont change the password and if you want your own login email me on the temporary email address rouge.runner.spknight@gmail.com
enjoy
.
if anybody changes the password then email me on the above address or post here and ill see what i can do.
cheers
The problem is back with the latest patch =(
But thanks flat84 for the upload =)
unfortunatly iv hit a snag with uploading the files and the server wont let me upload any more without subscribing. its 5 am here so im going to bed and ill sort it out tommorw.
sorry bout the delay
and again they break it before i even get the last fix uploaed :P
go here a get the latest copys
enjoy
another patch another error. downloading the update using flatmates cell phone again... will upload to the above address when completed.
UPLOAD COMPLETE! you may start downloading if needed.
any issues post here and i will endevour to respond
a distinct lack of remaing quota and frequency of updates has caused me to get fed up with the whole process so i will no longer be posting downloads for people... or playing the game for that matter.
sorry guys its somone elses turn
Flat84, I'm sorry you're giving up.
We appreciate what you've done so far but if you'd like to do us one last service and give us detailed instructions on what you've been doing so people with problems can do it themselves, we'd appreciate that too.
I have asked a friend to patch his game and upload the files, I will post them up ones they are done =)
but yeah the game masters of spiral knights should really let the developers know so people can download the files from the actual website so we dont need to have this issue every time.
The Game Masters don't have anything to do with the issue.
The developers probably know about the issue, but it sounds like something is wrong with your ISP or internet setup preventing you from getting the correct files.
Since I can grab the files with no hassle, I'll try to find an easy way to upload them. You only need the digest and getdown text files, correct?
Yeah just those two files if you could, would be awesome.
My friend still hasnt gotten around to patching and uploading. Sucks that this happens nearly every patch.
I've emailed Support about this issue, and they think it's related to antivirus software or active Steam downloads.
Have you tried disabling all your antivirus software, patching and launching the game, then re-enabling the antivirus?
Also make sure that you don't have any active Steam downloads--let the downloads finish, or stop them.
Starlinvf's suggestion was also backed up by support:
Uninstall the game (delete local content)
Make sure the digest, getdown and version .txt files have been deleted
Update Java
Reinstall Spiral Knights
If it's not your antivirus or Steam downloads, and deleting the digest, getdown and version.txt files don't help, email Support.
Aug 24 versions:
Getdown.txt
Digest.txt
Open and "Save as" those pages, then drop those text files into your "C:\Program Files (x86)\Steam\steamapps\common\spiral knights" folder
Make sure they overwrite the old files.
Open the version.txt and replace what is there with:
20110824144649
Save, try to launch the game.
If that doesn't work, delete the whole Spiral Knights folder and reinstall.
I've tried everything listed a few times each, but still comes up with the end of file issue
You'd think something wouldve been worked out by now, or atleast when they patch, they could link the 2 new files themselves, rather than trying to get another player to do it, Thanks to those btw :)
Would i be able to get the Digest.txt file, as Providence's link doesn't want to work
Thanks in advance!
So clicking on the actual link to the file's text does not work for you? And it's only the Digest.txt file that won't open, the other one works?
Have you already tried disabling any antivirus software, as stated earlier?
FYI, the dev team is totally working on this, but since only a few users are having problems with it, it's hard to collect data.
Out of curiosity, are you playing on a wireless router? If not, who is your ISP?
Email adsrlysuck@gmail.com and I'll send you the applicable .txt files. Be sure to reference this thread in either the subject line or the body of the email.
You can put the links into Proxify.com and it should allow you to download the file. But the links are now out of date due to a new patch and the error popping back up again.
hey guys i've been having this problem for a couple months as well and i just got the digest+getdown files from a friend i'm not sure how to upload them to this post directly (VERY new to forums) however i made a torrent http://tinyurl.com/3uxlc9x with the latest getdown and digest files that i will seed for a day or two

@SunDragon : It still works.
@yoats: Not all forums have file uploads enabled (SK doesn't). Also, torrent is inefficient for small datasets due to the seeding requirement. There are a number of text upload sites around the net (like pastebin) that will work for large amounts of text.
Proxify.com is one of the better solutions to get at the files, short of changing ISPs.
It didnt work for me :S It still says unexpected end of file from server
http://www.megaupload.com/?d=CA1ZLN1D
link to most recent dig/getdown files for those that are still having issues
new update, if someone could post the latest get down and digest that would be great thanks!
on a side note i downloaded the game client from spiralknights.com instead of through steam and it updated fine it just wouldnt let me play with my steam acount so i guess it's maybe a problem with steam?
Hey,
I got still the same problem, but i could solve it once, maybe this can help you. Close your Antivirus-programm and start the patch again.
Once it worked at mine, but now it doesn't work. just try it.
Greetz Grummelbart.