Sometimes when updating a steam game, an error comes forward. The window displays:
An error occurred while updating [game] (Content file locked)
This means that Steam can’t write update files to the hard disk. There may be many solutions for this error. The most effective one is to uninstall Steam and all the local game content and reinstall it from scratch. Although this worked for many users, it is a pretty time-consuming task and it also consumes a large amount of data. Before resorting to hard measures as mentioned above, we will try troubleshooting for small problems which may be involved.
Repair Corrupt System Files
Download and run Restoro to scan for corrupt files from here, if files are found to be corrupt and missing repair them and then check if it fixes the issue, if not then proceed with Solutions listed below
Solution 1: Check Antivirus
In many situations, your antivirus may be causing the problem. It is not unusual for it to mark Steam files as potential viruses and quarantine them. Below are listed different ways to disable the antivirus until you can update your game.
McAfee has no way to exclude certain files from its real time scanning. The only way is to disable the antivirus entirely until the game is updated. To do this, open McAfee and select “Virus and Spyware Protection”. Here you find the option of “Real-Time Scanning”. Click that option and turn it off.
Then follow the following instruction to verify integrity of game files.
- Restart your computer and relaunch Steam.
- Head over to the library section and right click on the game which is giving you problems.
- Click on its properties and select the local files tab.
- Click the verify integrity of game files button and Steam will verify that game in a few minutes.
Hopefully, after performing the above steps, your Steam won’t give any issue.
NOD32 has the tendency to mark some application files as malicious and will most probably quarantine it. This often results in the error while updating a game. Browse to your current Steam directory and copy the address. The default location for the Steam directory is
After copying the address open ESET NOD32 and paste the location in exclude from real time scanning.
Follow the ‘verify integrity of game files’ method listed above and you will be all good.
Kaspersky may sometimes flag Steam as an intruder and disable it from making any changes to the hard drive. To fix this, head over to ‘threads and exclusions’. Navigate to ‘trusted zone’ and add Steam.exe as a trusted application. Remember to change the settings to Do not restrict application activity as well as Do not scan opened files.
Follow the ‘verify integrity of game files’ method listed above and restart your computer.
Solution 2: Reset Winsock
Another issue that may cause the failure to update is the Winsock catalog. We can execute the command to reset it and in turn, it will rollback to the default settings.
- Press the ⊞ Win (windows) + R key to bring up the run window (make sure to run it as administrator).
- In the dialogue bar type ‘netsh winsock reset’ (excluding the quotes).
- Execute the command and restart your computer.
Solution 3: Repair Corrupt Files
If these two methods don’t work for you, we can troubleshoot which file went corrupt/missing and try re-download the entire file again.
- Exit steam and navigate to your Steam directory (C:/Program Files (x86)/Steam). If you have chosen a custom location for the installation, navigate there.
- Move to the folder ‘logs’ and open ‘txt’.
- Move to the bottom of the text file and search for recent errors.
An example of an error is this:
[2017-04-12 12:47:31] [AppID 346110] Update canceled: File commit failed: failed to move unchanged file “C:\Program Files (x86)\Steam\steamapps\workshop\content\346110\570371714\LinuxNoEditor\NPC\Female\Assets\Nude\Nude_Human_Female_Body_D.uasset.z.uncompressed_size” (Disk write failure)
The number written first in the URL is your APPID, in this case (346110) is the AppID for ARK Survival Evolved.
- Navigate to the root folder of the mod, in this case, it is 570371714. It has no specific file size as the root folders of different games may vary.
- Restart steam and move to the downloads folder. Here you will notice that Steam will be asking for an update for the game. Update the necessary files and you’ll be good to go.
Solution 4: Relocate Steam Installation and Game Files
If the simpler methods didn’t work for you, we have to relocate Steam Installation and Game files. This method is broken down into two parts. In the first part, we try to relocate Steam and hope that it will launch and run as expected. If during the launch, an error occurs, we have to reinstall Steam. The entire process is listed below. Please note that any interruption during the copying process may corrupt the files hence you would have to resort to reinstalling the client again.
- Navigate to your Steam client and click settings.
- Select ‘Downloads’ and click on ‘Steam Library Folders’.
- Click on ‘Add Library Folder’ and select a new path where you want Steam to be located.
- This will define a future path for all the installations to take place. Now we will move to moving existing Steam files to the path you selected.
- Exit the Steam client.
- Navigate to your current Steam directory (default is: C: \Program Files \Steam).
- Delete all the files and folders except SteamApps and UserData folders. Also don’t delete exe.
- Cut all the folders and paste them to the new directory you decided above.
- Launch Steam and re-login.
If you encounter any problems while moving the steam folder or after launching it, follow the steps listed below.
- Close your Steam.
- Browse to the location where you relocated Steam.
- Relocate the ‘SteamApps’ folder from that directory to your desktop.
- Uninstall Steam (this is done to remove your old Steam settings from your PC).
- Install Steam again to the initial location that you selected.
- Move the SteamApps folder in the new Steam directory. This will copy all of your game content, your saved games and settings.
- Launch Steam and enter your credentials.
- Verify integrity of Steam game files and you will be able to play
Solution 5: Check Disk Scan
It is possible that the Hard Drive that contains the game installation has been corrupted or contains bad sectors. If a Hard Drive has “Bad” sectors it slows down and certain areas of the hard drive can’t be accessed. Therefore, you can try to run a “Disc Check” scan to check the drive for bad sectors. For that:
- Press the “Windows” + “R” keys simultaneously.
- Type in “cmd” in the dialogue box and press “Enter“.Typing in “cmd”
- Type in “chkdsk c: /f” and press “Enter” to initiate it.Initiating the Disc check
- Press “Y” to confirm the scheduling of a disk check scan.
- Wait for the Disk Check scan to complete and check to see if the issue persists.
Solution 6: Run as Administrator
In some cases, steam requires special permissions to access certain folders and files. If the special permissions are not granted it may be blocked by the Windows from accessing the folder and the “Content File is Locked” message might show up. Therefore, in this step, we will be running “Steam” as Administrator. For that:
- Right–click on the steam icon and select the “Properties” option.Right-clicking on the steam icon and selecting “Properties”.
- Click on the “Compatibility” tab and check the “Run as Administrator” option.Clicking on “Compatibility” and checking the “Run as Administrator” box
- Click on “Apply” and then on “OK“.
- Run Steam and check to see if the issue persists.