I think I've found the root cause of the `I/O Operation Failed` errors (same as #2185 and #828).

Open
#2,525 4 comments 4 reactions 1 assignee View on GitHub

Maintainers usually reply within 1 day

@LionelColaso is already working on this.

Since Oct 16, 2026.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
15/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
powershell, python
Domain
desktop-dev

Research direction

The bug sits where RimSort creates the steam\steamapps\workshop\content\294100 junction for SteamCMD and where it prompts "Re-create Symlink?". Start by reproducing the report: run RimSort, check the Redirection Guard state with the PowerShell snippet in the issue, then run SteamCMD's workshop download. Done means the link stays traversable when the guard is on, or the trigger that enables the guard is identified. The reporter's untrusted-mount-point evidence is the main lead, so verify it before changing link creation.

Written by the indexing model from the issue text.

Description

bugs 🪲
Release Type

Compiled (Windows x86-64)

Version

RimSort v1.15.1-edge2

Operating System

Windows 11 Pro build 26200

Relevant logs

No response

Describe the bug

During a session, RimSort.exe can end up with Windows' Redirection Guard process mitigation (ProcessRedirectionTrustPolicy) switched on. SteamCMD is started as a child of RimSort and therefore inherits it. With Redirection Guard on, Windows 11 won't follow junctions or symlinks created by non-admins, so SteamCMD cannot get through the steam\steamapps\workshop\content\294100 link that RimSort creates. SteamCMD's logs\workshop_log.txt shows the error:

Update canceled: Install folder not writable (Disk write failure) "...\steamapps\workshop/content/294100"
Download item xxxx result : I/O Operation Failed

Normal shells don't have this mitigation, therefore running the script by hand in a prompt works. Reinstalling SteamCMD doesn't help, as the symlink is still created by a non-admin. Running RimSort as admin will work, as the link would be created by an admin and therefore trusted.

How I confirmed it
  1. GetProcessMitigationPolicy(ProcessRedirectionTrustPolicy) on the running RimSort.exe returned EnforceRedirectionTrust = 1. explorer.exe and a normal PowerShell returned 0.
  2. In a separate PowerShell process with the policy switched on via SetProcessMitigationPolicy, listing through the junction fails with ERROR_UNTRUSTED_MOUNT_POINT (448): "The path cannot be traversed because it contains an untrusted mount point." Child processes started from it also report EnforceRedirectionTrust = 1, so the policy is inherited.
  3. Running steamcmd.exe +runscript with the same script RimSort writes, from that process, reproduces I/O Operation Failed exactly. The same command from a normal shell succeeds.
  4. A directory symlink created by a non-admin (Developer Mode on) is blocked the same way, so switching from a junction to a symlink wouldn't help.
  5. After recreating the junction from an elevated prompt with mklink /J (owner becomes BUILTIN\Administrators), it can be traversed with the policy on, and SteamCMD downloads succeed.

To check a running RimSort (prints 1 if the guard is on):

Add-Type @"
using System; using System.Runtime.InteropServices;
public static class RGCheck {
  [DllImport("kernel32.dll")] public static extern IntPtr OpenProcess(uint a, bool i, int p);
  [DllImport("kernel32.dll")] public static extern bool GetProcessMitigationPolicy(IntPtr h, int p, out uint v, UIntPtr l);
}
"@
$h = [RGCheck]::OpenProcess(0x1000, $false, (Get-Process RimSort).Id)
$v = [uint32]0; [RGCheck]::GetProcessMitigationPolicy($h, 16, [ref]$v, [UIntPtr]4) | Out-Null
"EnforceRedirectionTrust = $($v -band 1)"
Unsure as to what switches it on

Sometimes, a RimSort session will load with the policy disabled (EnforceRedirectionTrust = 0), preventing the bug. Sessions with the bug report (``EnforceRedirectionTrust = 1). RimSort's code never calls SetProcessMitigationPolicy`, and there's no IFEO/Exploit Protection entry for RimSort.exe.

Workaround for users

Close RimSort, then run these in an administrator Command Prompt. These will just remove the existing symlink, not the mods.

rmdir "<SteamCMD folder>\steam\steamapps\workshop\content\294100"
mklink /J "<SteamCMD folder>\steam\steamapps\workshop\content\294100" "<RimWorld folder>\Mods"

Afterwards, decline RimSort's "Re-create Symlink?" prompt, or it will replace the trusted link with an untrusted one.

Additional context

No response

Code of Conduct

I agree to follow this project's Code of Conduct

Duplicate Issue Check

I've checked for similar issues and didn't find anything

Wiki/FAQ Check

I've checked the Wiki for a solution and didn't find a solution

Dominant language
Python
Stars
1.2k
Forks
155
Avg merge
1d 22h
Merged PRs (30d)
71

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RimSort/RimSort

All issues in RimSort/RimSort

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.