League of Legends Error Code 004 Fix – RiftZone
League of Legends Error Code 004 during patching: what causes it and five real fixes, from a simple restart to a full client repair.
Table of Contents
Error Code 004 shows up during a League of Legends patch with the message "Patching failed and we're not sure why." It's one of the client's most persistent recurring issues — here's what actually causes it and the fixes that work, roughly in order of how likely they are to solve it fast.
What Causes Error Code 004?
This error almost always comes down to the client not having the permissions or clean files it needs to apply a patch. Common causes include missing administrator privileges, corrupted local configuration files, a firewall or antivirus blocking the patcher, outdated graphics drivers, or files that got partially corrupted during a previous update.
Fix 1: Restart the Client and Try Again
This solves it more often than you'd expect. A simple client restart clears whatever temporary hiccup interrupted the patch the first time, so always try this before anything more involved.
Fix 2: Run League of Legends as Administrator
If the client doesn't have permission to write patch files to your system, it'll fail silently with this exact error. Right-click the League of Legends shortcut or executable and select Run as administrator, then try patching again.
Fix 3: Use the Hextech Repair Tool
Riot provides an official repair tool built specifically for issues like this. It scans your installed files against the correct versions and automatically fixes anything out of place — genuinely one of the more reliable fixes here, and it's free and official rather than a workaround.
Fix 4: Delete Corrupted Configuration Files
Navigate to your League of Legends install directory, open the Config folder, and delete the game.cfg file (moving it elsewhere first rather than deleting outright is a safer bet in case you need to restore it). A fresh config file gets rebuilt automatically the next time you launch the client.
Fix 5: Check Your Firewall, Antivirus, and Graphics Drivers
If none of the above worked, confirm your firewall or antivirus isn't silently blocking the patcher, and make sure your graphics drivers are fully up to date — outdated drivers have been known to interfere with the patch process in ways that produce this exact error.
Last Resort: Reinstall the Game
If every fix above fails, a full reinstall resolves it in the vast majority of remaining cases. Uninstall through Windows' Apps and Features, manually delete any leftover files in the League of Legends install folder, then download and install a fresh copy from Riot's site.
For more League of Legends guides and news, visit our League of Legends hub.
Frequently Asked Questions
Is Error Code 004 tied to a specific patch?
No. It's a long-standing, recurring issue that can appear during any patch cycle rather than being caused by one specific update.
What's the fastest fix to try first?
Simply restarting the client resolves it in many cases before you need to try anything more involved.
What if nothing fixes it?
A full reinstall, after manually deleting leftover installation files, resolves the vast majority of remaining cases.
Conclusion
Work through these in order — restart, run as administrator, try the Hextech Repair Tool, then the more manual fixes — before resorting to a full reinstall. Most players resolve Error Code 004 well before reaching that last step.