Quick Fix
Most of the time this is caused by a leftover game or Steam process still holding the file open. Try this first:
- Fully restart your PC (use Restart, not Shut Down) to clear any stuck background processes.
- Run Steam as administrator. Right-click the Steam shortcut and choose Run as administrator, then retry the update.
- If it still fails, verify integrity of game files: right-click the game in your Library, go to Properties > Installed Files, and click Verify integrity of game files.
Step-by-Step Guide
What this error means
The full message usually reads something like: "An error occurred while updating [Game Name] (content file locked)." It means Steam has downloaded an update but cannot write it into the game's installed files because something else has that file locked or open.
The error occurs because Steam cannot write to or unlock a game file, usually because another process or system restriction is holding it, and games or Steam itself may not fully close, leaving files in use. Other common causes include a user account lacking administrator rights to modify Steam files, or security software flagging Steam updates as suspicious and quarantining files. It affects users across Windows, macOS, and Linux systems, though it is far more commonly reported on Windows.
This is not a sign of hardware failure or file corruption on its own — the error itself does not corrupt files, though repeated interrupted updates can leave partial files, which Steam's verification tool can fix.
Fix 1: Restart your PC and close lingering processes
- Close the game and Steam completely before trying again — don't just close the window, quit Steam via the system tray.
- Check Task Manager (press Ctrl + Shift + Esc) for the game's executable or any related helper processes still running, and end them manually. Certain services related to a game keep running in the background even after closing the game, and while you'll generally not notice them, they are eventually the main reason behind the content file locked error.
- Fully restart your PC — do not just sleep or hibernate it. Restarting is the easiest and cleanest fix, and you have to use 'Restart' as just shutting down the PC overnight will not count unless you are using advanced Windows user settings.
- Windows users: If this keeps recurring, disable Fast Startup. Disabling 'Fast Startup' in Windows Power Options can help ensure a complete shutdown and avoid lingering processes.
- Relaunch Steam and retry the update.
Fix 2: Run Steam with administrator/elevated permissions
- Right-click the Steam shortcut on your desktop or Start menu.
- Select Run as administrator and confirm the UAC prompt if one appears.
- Try updating the game again. One confirmed way to fix the Steam content file locked error is to set Valve's game client to run as an administrator, which enables Steam to access all folders and files it needs to.
- If this fixes it, make it permanent: right-click the Steam executable (usually in C:Program Files (x86)Steam), go to Properties > Compatibility, and check Run this program as an administrator. This step is Windows-specific.
- If admin mode alone doesn't help, one Steam community user reported fixing it by opening Task Manager > Steam process > Properties > Security > Edit, and granting Full control to their user account on the Steam folder.
Fix 3: Clear the Steam download cache
- Open Steam and go to Steam (top-left menu) > Settings.
- Go to the Downloads tab.
- Click Clear Download Cache and confirm. Steam downloads and stores cache data for every game whenever it installs a new update, but if the stored cache got corrupted or Steam can't access it, you'll run into the locked content error — deleting Steam's cache data should fix the issue.
- Steam will restart and log you out — log back in and try the update again.
Fix 4: Verify integrity of game files (and repair the library folder)
- In your Steam Library, right-click the affected game and choose Properties.
- Go to the Installed Files (or Local Files) tab.
- Click Verify integrity of game files and let it scan.
- If the error persists, also try repairing the whole library folder: go to Steam Settings > Storage, select the drive the game is installed on, click the three-dot menu, and choose Repair Folder.
- Hover your mouse over the 'content file locked' message in your Downloads queue — hovering over the Content File Locked text will reveal which file is locked, which can help you spot a specific stuck file to delete manually before re-verifying.
Fix 5: Temporarily disable antivirus or security software
- Antivirus and Windows Security's real-time protection can flag a Steam update mid-write and lock the file.
- Windows users: Temporarily turn off Real-time protection in Windows Security, or pause your third-party antivirus shield from its system tray icon.
- Retry the update immediately while protection is off.
- If this fixes it, add an exception for your Steam and game install folders in your antivirus so this doesn't recur, then turn protection back on.
- Also check your antivirus's quarantine/vault — some users found game files were being quarantined rather than just scanned.
Fix 6: Reset Winsock (network-related cause)
- Windows only. Press Windows key + S, type cmd, then right-click Command Prompt and choose Run as administrator.
- Type netsh winsock reset and press Enter.
- Restart your PC afterward for the change to take effect, then retry the Steam update.
Fix 7: Move the game to a different library/drive, or reinstall Steam
- If a single file consistently refuses to update, try moving the install folder: Properties > Local Files > Move Install Folder, and select a different drive.
- Check the target drive has sufficient free space and isn't failing — a drive nearing capacity or with bad sectors can also produce write/lock errors.
- As a last resort, uninstall Steam entirely (Windows key + I > Apps > Installed apps, find Steam, click the three dots, and Uninstall), then download and reinstall it fresh from the official Steam website. Your games remain on disk and can typically be re-added without a full re-download if you keep the steamapps folder intact.
When to contact Steam Support directly
- If none of the above works, or the error only affects one specific game across multiple reinstall attempts, it may be a game-specific packaging issue rather than something fixable client-side.
- Open a ticket via Steam Support > Steam Client > Steam Client Crashes/Errors and describe the exact locked file name (visible by hovering over the error).
- If it's a third-party launcher game (like some titles that layer their own updater on top of Steam), check that game's own official forum too, since some publishers have separate known fixes for their update process specifically.
Sources:
- Steam Community :: Guide :: Content File Locked Error Resolved
- How to Fix the [Content File Locked] Error on Steam
- 5 Ways to Fix the Steam "Content File Locked" Error on a Windows PC
- How to Fix Steam's "Content File Locked" Error in Windows
- Steam Content File Locked: Unlock It With These 7 Solutions
- Content file locked :: Help and Tips - Steam Community
- "Content file locked?" :: DoDonPachi Resurrection General Discussions