This time we will try to fix “Content File Locked” error on Steam platform.
You might have experienced an error when updating a game on Steam which said:
“An error occurred while updating [Game Name] (content file locked)“
Table of Contents
What does “Steam Content File Locked” error means?
What this basically means is that Steam is unable to write its update files on to your PC’s hard disk.
The most effective solution for this issue is uninstalling Steam and all its local game content, and then doing a fresh install.
However, this uses a lot of data and takes a long time.
7 Ways To Fix Steam Content File Locked Error
Before resorting to this fix, there are some others which you might like to try. Let’s take a look at them.
Fix #1: Repair Any Corrupt System Files
Download Restoro or any other similar program and run it. This will scan for any corrupt system files.
If there are any which are missing or corrupt, you can repair them and then see if the issue has been fixed.
Else continue with the next solution.
Fix #2: Check Your Antivirus
It might be your antivirus program which is causing the error. Sometimes an antivirus program will flag Steam files as possible malware and put them in quarantine.
Here are some ways you can disable the antivirus from running until you can get your game updated:
Steam is sometimes flagged up on Kaspersky and then it will be unable to make any changes to the hard drive.
If this happens, go to ‘threats and exclusions’ on Kaspersky, then go to ‘trusted zone’ where you can add Steam.exe as an application you trust.
Also make sure the ‘do not scan opened files’ and ‘do not restrict application’ options are checked.
Now you need to verify the game files integrity by following these steps:
- Restart the PC and launch Steam.
- In the library section, right click on the problematic game.
- Click on “Properties” and choose the local files tab.
- Click ‘verify integrity of game files’ and wait several minutes.
- Check to see if the game will update now.
There is no way to exclude specific files from a real-time scan using McAfee.
Instead, you will need to disable the entire antivirus program and then update your Steam game, before relaunching the antivirus.
- Open McAfee and click on ‘Virus and Spyware Protection’.
- Click ‘Real Time Scanning’ to disable it.
- Follow the instructions above to verify game files integrity, then restart your PC.
This antivirus typically marks specific application files as suspicious and usually quarantines them. When this happens, you will get an error message while trying to update your game.
- Go to your Steam directory and copy the address. This should be at: C:\Program File\Steam\SteamApps\common
- Now open ESET NOD32 and go to the exclude from real time scans part.
- Paste in the address, then follow the above instructions about how to verify game file integrity.
Also read: What is Steamworks Common Redistributables?
Fix #3: Winsock Reset
The Winsock catalog might be responsible for the update failure. To roll the system back to default settings, you need to execute the reset command, following these steps:
- Press the “Windows key + R” to get the run window (make sure you are running it as an administrator)
- Type this in the dialog box: “netsh winsock reset“
- Press Enter then restart your PC
Fix #4: Repair Any Corrupt Files
Although we checked for corrupt system files in fix #1, it is worth checking for any other corrupt files too. That way you can find out which file is missing or corrupt and reinstall it.
- Go to your Steam directory which is either at “C:/Program Files (x86)/Steam” or wherever you chose to put it.
- Go to the folder logs and open ‘txt’.
- Search for recent errors near the bottom of the file.
- Now go to the mod’s root folder. The file size can vary so don’t look for a specific size.
- Update the files and see whether the issue is solved.
Fix #5: Put Steam Game Files and Installation Elsewhere
If you have made it this far, and none of the above solutions worked, you will have to relocate your Steam installation as well as the game files.
The first thing to do is relocate Steam and see if it launches and runs correctly. If not, then it will have to be reinstalled.
Remember that interrupting the file copying process might result in a corrupted file error and you would have to start over.
- Go to your Steam client and click on “Settings“.
- Click on “Downloads” then “Steam Library Folders“.
- After that click “Add Library Folder” and choose a new path where you want to put Steam (this sets up a new path for every installation).
- Exit Steam and go to “C:\Program Files\Steam” or wherever you have Steam installed.
- Delete every folder and file apart from “.exe“, “UserData” and “SteamApps“.
- Cut the folders then paste them into your new directory path.
- Launch Steam client then enter your credentials.
If you are still having trouble it, continue with the following steps:
- Close Steam and go to the path where you relocated it.
- Move the “SteamApps” folder from there on to your desktop.
- Reinstall Steam to the first location you chose.
- Relocate the “SteamApps” folder in the new directory, to copy all your saved games, game content and settings.
- Launch Steam and log in.
- Verify the integrity of your game files, and you should now be able to play.
Fix #6: Check Disk Scan
It could be the case that your hard drive, where the game installation files are, has bad sectors or has been corrupted. Bad sectors mean parts of the hard drive can’t be accessed, or are slowed down.
You might like to run a Disk Check scan to find out whether your hard drive does have any bad sectors:
- Press the Windows key + R.
- In the dialogue box type: cmd.
- Type in this “chkdsk c: /f” then press enter.
- Click “Y” to confirm the disk check scan schedule and wait for it to complete.
- See whether the problem is still occurring
Fix #7: Run as Administrator
Steam might need specific permissions to get to some files and folders.
If these are not granted, Windows might block Steam from being able to access those folders.
If this happens you will get the Content File is Locked error message on your screen. To solve this, you need to run Steam with Administrator privileges:
- Right click on Steam and click on “Properties“.
- Click on “Compatibility” and toggle the “Run as Administrator” box to “On“.
- Click “Apply” then “OK“.
See whether this has fixed the error.