mojira.dev
MCL-23025

Failed to Download File error when launching Minecraft

When launching the game, an error is thrown that states: <some file> failed to download. The file that failed to download is not consistent, and it ranges from missing music files to even missing Java. Here's how to get there: Run Windows + R and type in %AppData%.

 

I've gathered information about the processes running on about 4 peoples' machines with the error, nothing is glaringly consistent. The location of the users is also not consistent, showing it's likely not an outage in an area. Changing DNS does not fix the issue. Users have this issue whilst not having any AntiVirus or VPN. The ISP is also not the issue as all 4 users have different ISPs.

 

Downloading an ogg file directly from the servers on a system where the launcher would not work, the download works fine. This is the command I used to download directly:

 

curl -O https://resources.download.minecraft.net/aa/aa1d3aace1c481ac32d5827fba287294b6bc99fb

 

Alternate launchers do not work, which is very interesting as the download server is functioning correctly. I personally cannot reproduce this.

 

Edit 12/16/23:

Before proceeding with any of the below workarounds, contact Microsoft with your entire error with the link below. This will help them fix the issue on their end.

https://aka.ms/MCLauncherSupport

 

Edit 1/16/24

If you have an app installed called Killer, get it gone!
It may come preinstalled if you own a Dell device, which includes Alienware.

Also, of course, try disabling your antivirus first. If you have one.

 

Potential Workaround (Windows 10/11): 

Things to try first:

 

For Missing Java:

 

For Missing File:

This is a little difficult to do, so feel free to ask questions.

First, we need to get the file on your system. To do this, open Command Prompt.

To get the URL of the missing file, we need to look at the error generated. After the error says "URL:", copy the entire path. Ex: https://resources.download.minecraft.net/aa/aa1d3aace1c481ac32d5827fba287294b6bc99fb.

Now, run this command in your Command Prompt replacing "<url>" with the URL you copied above.

cd Downloads && curl -O <url>

 

Notice how in that URL it says minecraft.net/xx/ Those two bolded letters or numbers signify the name of the folder this file needs to go in. Run Windows + R and type in %AppData%. Press enter and navigate to the .minecraft folder. Locate the assets/objects folder. In here, create a folder with the same two letters or numbers that your URL says. If it already exists, navigate to it.

Find your Downloads folder, and drag and drop the file we just downloaded into the folder we just navigated to.

Wow! You did it! Now, do that for every file it throws an error for. I know, it's painful.

 

Potential Workaround (Mac OS): 

Things to try first:

 

For Missing Java:

After installing Java, we need to set make Minecraft use it. Click on the Installations tab of the launcher and click Edit Installation next to your version. Click More Options, and click to change the Java Runtime. Once you're in the Finder window it opens, you need to run Cmd + Shift + G. Type into that little box, "~/Library". Locate the Java folder (or Eclipse Temurin), select the version as downloaded above, locate the bin folder, and select the javaw file.

 

For Missing File:

This is a little difficult to do, so feel free to ask questions.

First, we need to get the file on your system. To do this, open Terminal.

To get the URL of the missing file, we need to look at the error generated. After the error says "URL:", copy the entire path. Ex: https://resources.download.minecraft.net/aa/aa1d3aace1c481ac32d5827fba287294b6bc99fb.

Now, run this command in your Command Prompt replacing "<url>" with the URL you copied above.

cd Downloads && curl -O <url>

 

Notice how in that URL it says minecraft.net/xx/ Those two bolded letters or numbers signify the name of the folder this file needs to go in. Open finder, and run Cmd + Shift + G. Type in that box "~/Library" and click enter. Locate the Application Support folder, and enter it. The .minecraft folder will be found in here, open it. Locate the assets/objects folder. In here, create a folder with the same two letters or numbers that your URL says. If it already exists, navigate to it.

Find your Downloads folder, and drag and drop the file we just downloaded into the folder we just navigated to.

Wow! You did it! Now, do that for every file it throws an error for. I know, it's painful.

 

If you're still stuck...

There isn't much you can do as of fixing the official launcher. But you're in luck, as there are ways to play the game but using a different launcher. One of these is https://multimc.org, and it has some nice features even the official launcher doesn't. 

Linked issues

Attachments

Comments 64

migrated

It doesn't affect only version 1.19.3, it goes from 1.18 to the latest one, im having this issue, and been trying to find some information and solutions, but until i do all i can do is play on bedrock and wait for it to have a solution that works

Loudbook

@KenGreen1 Thanks for the info, I'll update the report. Edit: Unfortunately affected versions only allows latest, but I updated it in the Environment.

migrated

Just a note about the downloading each file section, I have done about 20 now and more keep coming so that is not a fix for the “failed to download file” section, a couple of my screenshots are already linked in the post

xParadoxical_

After I explicitly set the path to java for the profile and curl'd the missing files, the launcher finally allowed me to run Minecraft. However the panorama and the Realms "Get a trial!" map screenshots were missing (the violet-black "missing texture" texture was displayed instead). I restarted Minecraft, the launcher downloaded additional 100MB of things and now everything looks fine in game.

When manually downloading missing files, for every file I was getting the same error as in launcher ("closed with bytes remaining") for a short while, but after a few tries the download succeeded and I could move on to the next file.

Donuts1000

FYI, Launcher team is actively working on this bug. We think we've found the root issue and are aiming to have a testable fix on Beta early next week - Mon or Tues.

54 more comments
migrated

Couldnt download this file because cant connect to the server from mojang

[media][media]
migrated

I keep hearing poland in the comments but it works after a few hours That is one of the regions having the most issues

migrated

I ran into this issue today; ran through every solution I could think of like Windows updates, sfc/dism checks, changing DNS, deleting .minecraft, etc. I was able to get around it by using my hotspot and resolved my issues with every launcher (vanilla, Modrinth, Curseforge) - funnily enough MultiMC worked with no issues. Internet and cellular through AT&T.

migrated

Wanted to follow up since I believe "I" found the issue. According to this Reddit post, Killer Control Center (KCC) was at fault. I've reinstalled Windows 10 and 11 and validated that it is installed by default which is why a fresh Windows install and only Minecraft fails. To fix this, you can disable the engine entirely by going to "Prioritization Engine" and toggling "Killer Prioritization Engine" off. I've tested the vanilla launcher and Modrinth and I'm no longer seeing any issues like before.

I'm surprised how much I had to dig to find this post, but hopefully for those of you who run into this issue can find either this comment or the Reddit post and resolve your issue.

migrated

i cant connect to https://libraries.minecraft.net/ 403 im from Kazakhstan, all this steps didnt work.

Loudbook

(Unassigned)

Confirmed

Retrieved