Steam 'content file locked': something is holding the file

When Steam updates a game and reports that a content file is locked, it means the file it needs to replace is currently held open by another process. The common holders are the game itself (crashed but not fully closed), a leftover helper process, antivirus scanning or quarantining the file in real time, or, occasionally, a failing drive misreporting access. The error names the exact file, which makes it more fixable than most.

Fix it, in order

  1. Close the game fully, then check Task Manager (Ctrl+Shift+Esc) for the game's process or launcher helpers still running, and end them.
  2. Restart the PC if no holder is obvious. A reboot releases every file lock at once.
  3. Verify the game's files (right-click the game, Properties, Installed Files, Verify integrity). If the locked file was also damaged, Steam replaces it once it can write.
  4. Check your antivirus quarantine and real-time protection. Security software locking or removing a file mid-update is the classic recurring cause; restore the file if quarantined and whitelist the Steam library folder.
  5. Clear the download cache (Steam, Settings, Downloads) if the lock message repeats across retries.
  6. Try a different library folder if one drive or folder keeps producing locks (Settings, Storage, add a new folder), and check that drive's health with its error-checking tool.

Reading the message

The error includes the path of the locked file, and that path tells you where to look. A file inside the game's folder points at the game or antivirus. A file inside Steam's downloading folder points at a stuck partial download, which clearing the cache or verifying usually resolves. A file that changes every attempt is more suggestive of drive trouble or aggressive real-time scanning.

Common questions

Why does it happen right at the end of an update? Updates patch large files at the end of the process. If the game or its anti-cheat left a process running, or antivirus scans the newly written file at that moment, the last file is exactly where a lock appears.

Is content file locked the same as disk write error? They are siblings, not twins. A disk write error says Steam could not write; content file locked says why in this instance, another process holds the file. Locked-file fixes come first for this message.

Related

Steam disk write error · Steam missing file privileges · Steam disk read error · Steam connection error