[Fix] Steam Content File is Locked

Sometimes when you try to update a game on steam, you will get the following error:

An error occurred while updating [game] (Content file locked)

What this error means is that Steam was unable to write the new update files to the disk. While there are tons of solutions for this particular issue, one that has worked out efficiently for most is this: Uninstall steam > Remove all the local game files and then re-install everything from scratch.

[fix] Steam Content File Is Locked

While the above method does work out well for most of the users, it is very time consuming and cumbersome for most users. And that is why, before taking the approach mentioned above, we have listed some easy troubleshooting tips in this page which you may want to give a shot.

1. Check Your Antivirus

There have been situations where antivirus software had falsely flagged steam files as malicious and quarantined them. So, it is a good idea to temporarily disable the antivirus software and see if this problem gets resolved.

Below, we have listed the steps to deactivate some of the most commonly used antivirus software.

Kaspersky AV

Sometimes, Kaspersky flags the steam files as an intruder for trying to make changes to the files on your harddisk. You can easily fix this by:

  1. Go to ‘threads and exclusions‘.
  2. Navigate to ‘trusted zone’.
  3. Add Steam.exe as a trusted application.

Please do remember to change the settings to Do not restrict application activity as well as Do not scan opened files.

ESET NOD32

ESET NOD32 sometimes marks genuine files as malicious and quarantine them. When this happens to a steam file, this usually results in an error while updating the file. You can follow the below steps to stop ESET from quarantining steam files:

  1. Go to the folder when you have steam on your computer and copy the address from the address bar. For example, let us say this is the location:
    C:Program FileSteamSteamAppscommon
  2. Open ESET NOD32 and paste the address you copied in the ‘exclude from real-time scanning‘ section.
SEE ALSO  What is Steam Client Bootstrapper? Is it safe?

Once you do the above steps, perform the following:

  1. Restart your computer.
  2. Open Steam.
  3. Go to the library section and right-click on the game that is having problems.
  4. Click on its properties and select the local files tab.
  5. Click the ‘Verify integrity of game cache‘ button and Steam will verify that game in a few minutes.

McAfee Antivirus

Unlike a few other antivirus suites, McAfee does not have an option to exclude only a few files/folders from real-time scanning. The only way is to completely disable antivirus protection until you update steam games. To do this:

  1. Open McAfee.
  2. Select “Virus and Spyware Protection”.
  3. Turn off ‘Real-Time Scanning‘.

Once you do the above, follow the steps we mentioned in the ‘ESET NOD32’ section to ‘Verify integrity of game cache‘ on Steam.

2. Repair Corrupt Steam Game Files

  1. Close and exit steam completely.
  2. Go to the folder where you have steam installed on your machine.
  3. Open the folder ‘logs’ and open ‘txt’.
  4. Navigate to the bottom of the text file and look for recent errors.
    Here’s a sample error:
    [2017-04-12 12:47:31] [AppID 346110] Update canceled: File commit failed: failed to move unchanged file “C:Program Files (x86)Steamsteamappsworkshopcontent346110570371714LinuxNoEditorNPCFemaleAssetsNudeNude_Human_Female_Body_D.uasset.z.uncompressed_size” (Disk write failure)

    The number written first in the URL is your APPID. In the above sample, it is 346110 which is the AppID for ARK Survival Evolved.
  5. Navigate to the root folder of the mod, in this case, it is 570371714.
  6. Now, restart steam and go to the ‘Downloads‘ folder. Now, Steam will ask for an update for the game. Update the necessary files and you should be good.
SEE ALSO  What is Steam Client Bootstrapper? Is it safe?

3. Reset Winsock

Winsock catalog is another common root cause for the failure to update steam file games. We can execute a simple command to resolve this issue.

[fix] Steam Content File Is Locked
  1. Open the ‘Run’ dialog by pressing Windows Key + R.
  2. In the run dialog, type this: netsh winsock reset
  3. Press the enter key to execute the command.
  4. Restart your computer.

4. Change Steam Installation and Game Files Location

Unlike the methods described above, this one is not going to be simple. As the title says, we are going to completely change the folder where we have steam and steam game files are present on the computer.

As this method is a bit complex, we have broken it into two parts. In the first part, we will attempt to move steam files and see if it works as expected. And if it doesn’t, we will have to take the matter into our own hands and re-install steam – which is the not-so-fun second part.

Any interruption to the copying process has the ability to potentially corrupt game files – in which case – we have no other option but to re-install steam altogether.

The first part

  1. Open steam.
  2. Go to Settings.
  3. Click on ‘Steam Library Folders’.
  4. Click on ‘Add Library Folder’ and select a new path where you want Steam to be located. Note: This is the path where future steam files will be deployed.
  5. Next, we shall move the current/existing steam files to the above new location. To do this, close and exit steam client.
  6. Navigate to the current folder where steam is installed.
  7. Cut all the folders except SteamApps and UserData folders and the .exe file and paste them in to the new folder which we gave in the previous steps.
  8. Launch Steam and log in.
SEE ALSO  What is Steam Client Bootstrapper? Is it safe?

Now, if everything works fine – you are good. If it doesn’t –

The not-so-fun second part

  1. Close Steam client.
  2. Got to the new folder where you moved the Steam files.
  3. Locate the ‘SteamApps’ folder > Copy and paste it to your desktop.
  4. Uninstall Steam.
  5. Install Steam again to the original location that you selected.
  6. Move the SteamApps folder in the new Steam directory where it is installed. This will copy all of your game content, your saved games, and settings.
  7. Open the Steam client and enter your credentials.
  8. Verify the integrity of Steam game files.

5. Use the Built-in Windows Check Disk Scan

The issue might also occur due to bad sectors in the hard disk. If the steam files happen to be in these ‘bad’ sectors, then it might cause issues in accessing these files during updates. You can use the built-in windows function chkdsk to find and fix bad sectors in the hard disk.

[fix] Steam Content File Is Locked
  1. Press Windows Key + R.
  2. In the run dialog that appears, type in cmd and press enter.
  3. Next, execute this command in the command prompt: chkdsk c: /f
  4. Press “Y” to confirm the scheduling of a disk check scan.

Wait for the scan to complete and check if the problem still persists.

6. Use Steam as Administrator

Sometimes, when you run Steam from an account that does not have elevated admin rights, it might cause issue when accessing certain files or folders. Yeah, Windows is weird that way. To solve this, we can run the Steam client as Administrator to see if it helps fix the issue.

[fix] Steam Content File Is Locked
  1. Right-click on the Steam client.
  2. Select ‘Run as administrator’.
  3. Let the Steam client open and see if the problem still persists.

Leave a Comment