How to Fix League of Legends Error Code 004

League of Legends often presents users with an Error Code 004 where the client states that patching the game failed. The error message further states that restarting the game might fix the issue. Patching is an act of adding pieces of code to the game to improve gameplay, fix bugs, and introduce new features.

League of Legends Error Code 004 while patching
League of Legends Error Code 004

The error code 004 can occur to any player when updating his League of Legends (LoL) and the fixes are quite straightforward. Most of the time the issue is fixed just be restarting the game client and trying to patch again. If simple restarting doesn’t work, you can move on with the solutions listed below.

What causes the Error Code 004 in League of Legends?

Error code 004 in League of Legends can occur due to a number of different reasons since it is related to updating/patching the game. Here are some of them:

  • The game is missing administrator privileges and the computer doesn’t allow it to patch.
  • There is not enough space in your hard drive. Patching always requires some extra space so it can download the code and then implement it.
  • The installation of the game is corrupt and needs to be repaired.
  • The game client is broken and needs to be replaced.
  • There may be antivirus software which blocks several actions performed by the game when downloading the patch and installing it. Windows Defender/Firewall was also reported to cause issues.
  • The configuration files of LoL are corrupt and needs replacement. Configuration files are unique for each user and if any of the files are not working properly, you might encounter the issue.
  • There isn’t a good internet connection or there are issues with the DNS

Before starting with the solutions, make sure that you have an administrator account on your computer and have a good internet connection which doesn’t belong to any organization. If you are using an internet connection behind any Firewall or using an institute LAN, you might experience this issue as some network actions are restricted in these cases. Once you are absolutely sure that you have an open internet connection, only then proceed.

Solution 1: Starting the game as an Administrator

Before we try anything technical, you should attempt at starting the game as an administrator. Do this even if you are logged as an administrator. Windows has tightened its leash on what third-party applications can do with limited permissions. Hence in some cases, the patching fails just because it doesn’t have administrator privileges.

  1. Right-click on the game launcher and select Properties.
  2. Once in Properties, click the tab of Compatibility and check the option Run this program as an administrator.
Run this program as an administrator in League of legends launcher
Run this program as an administrator – League of Legends Launcher
  1. Press Apply to save changes and exit. Now try launching the game again and see if the problem is solved. You can even try launching the game in the compatibility mode and see if it makes any difference.

Solution 2: Checking Space in Hard Drive

Another important reason why the patching might fail because there isn’t much space in your hard drive where the application is installed. This is common because most users install the game in their Local Disk C and since it is already bogged down, there may be a shortage of space.

Windows Explorer (Check Hard Drive free space)
Windows Explorer (Check Hard Drive free space)

Press Windows + E to launch the File Explorer and click on This-PC at the left navigation bar. Now check from the information under each drive whether there is ample space. If there isn’t, you can clean junk and remove excessive programs and then try patching again after restarting your computer.

Solution 3: Checking Antivirus Software

Like mentioned in the causes, Antivirus Software is known to cause issues when patching the game. Since patching involves downloading additional software and after manipulating the existing installation, it merges the code. If your Antivirus considers this as a threat or a false positive, you will not be able to perform any of these actions.

Temporarily disable antivirus in AVG Free
Temporarily disable Antivirus – AVG Free

You can check our article How to Turn Your Antivirus Off and turn your Antivirus software off temporarily. If disabling the Antivirus works, you can add an exception and enable it again. Do note that in addition to third-party Antivirus software, Windows Defender/Firewall are also known to cause issues. Some notable Antivirus included AVG Free.

Solution 4: Deleting the game config files

If all three solutions don’t work, you can try deleting the game configuration files. These configuration files contain settings which the game consults before loading up. It is a type of temporary storage of settings which the game requires while booting.

Configuration files are known to get corrupt or go bad from time to time. We will try deleting the config files and see if this solves the issue.

  1. Open Riot Games from the directory where it is installed and after opening League of Legends, open the Config folder.
Config folder in League of Legends installation
Config folder – Riot games
  1. Now delete the entry ‘game.cfg’. You can even cut paste it to a different location so you can replace it if things go bad.
game.cfg in League of Legends
game.cfg – League of Legends
  1. Now go back to the main directory of League of Legends and navigate to RADS > projects > league_client > releases. Delete the latest version folder present.
Releases folder in League of Legends
Releases folder – League of Legends
  1. Now close the window and launch the game using the launcher. Preferably as an administrator.

Solution 5: Using Hextech Repair Tool

Hextech is the publisher of League of Legends and like many other publishers, it also contains a repair tool which can be used to repair discrepancies in the game or in the client. The repair mechanism will search through all the already installed modules and compare their properties with the master manifest. If any is out of place, they will be fixed.

  1. Download the Hextech Repair Tool from the official website. Once downloaded, right-click it and select Run as administrator.
Hextech Repair Tool official website
Hextech Repair Tool download website
  1. Now check the option Force Repatch and click Start. Wait for the process to finish.
Force repatch in Hextech repair tool
Force Repatch – Hextech repair tool
  1. After the progress is complete, restart your computer and check if the issue is solved. You can also manipulate Firewall settings and even disable them temporarily to see if they are the problem.

Solution 6: Setting Google’s DNS

If all the above methods don’t seem to work, you can try setting Google’s DNS (Domain Name Server) in your internet settings and then try to patch League of Legends. The patching can also fail if your computer cannot find suitable DNS servers automatically. This setting will ensure this doesn’t happen.

Also, you can try flushing your internet configuration settings and refreshing your IP address. Also, attempt at changing your network connection and try again.

  1. Press Windows + R, type “control panel” in the dialogue box and press Enter.
  2. Once in the control panel, click on the sub-heading “Network and Internet”.
Network and Internet - Control Panel
Network and Internet – Control Panel
  1. Select “Network and Sharing Center” from the next window you are navigated to.
Network and Sharing Center - Control Panel
Network and Sharing Center – Control Panel
  1. Here you will find the network to which you are connected to. Click on the network present in the form of “Connections” as shown in the screenshot below.
Current connected networks with computer
Currently connected networks
  1. Now click on “Properties” present at the near bottom of the small window which pops up.
Properties of Connection
Properties of Connection
  1. Double-click on “Internet Protocol Version 4 (TCP/IPv4)” so we can change the DNS server.
Internet Protocol IPv4 - Network properties
Internet Protocol IPv4 – Network properties
  1. Click on “Use the following DNS server addresses:” so the dialogue boxes below become editable. Now set the values as follows:
Preferred DNS server:

Alternate DNS server:
Setting Google's DNS Server against the connected network
Setting Google’s DNS Server
  1. Press OK to save changes and exit. Now restart your computer and see if this solved your problem.

If all these solutions don’t work, you can run Hextech Repair Tool as in Solution 5 and reinstall the game. You can also attempt at downloading a fresh copy and after removing the existing one from your computer, install it.


Kevin Arrows

Kevin Arrows is a highly experienced and knowledgeable technology specialist with over a decade of industry experience. He holds a Microsoft Certified Technology Specialist (MCTS) certification and has a deep passion for staying up-to-date on the latest tech developments. Kevin has written extensively on a wide range of tech-related topics, showcasing his expertise and knowledge in areas such as software development, cybersecurity, and cloud computing. His contributions to the tech field have been widely recognized and respected by his peers, and he is highly regarded for his ability to explain complex technical concepts in a clear and concise manner.
Back to top button