All Collections
Modrinth App
Windows-specific questions
App forbidden from accessing Program Files
App forbidden from accessing Program Files

Why am I getting a "IO error: Access is denied" error?

J
Written by Jai Agrawal
Updated over a week ago

The error I/O error: Access is denied. (os error 5) means that you have changed the Modrinth App directory to a location that the Modrinth App does not have access to. People commonly change the app directory to Program Files. Please do not do this. The option to change the app directory is only provided for advanced users. The Modrinth App does not have access to the Program Files folder, so it will fail to read anything from there.

There are two ways you can resolve this. The first method is less destructive but takes more time. The second method is more destructive but easier.

The Modrinth App should be closed before attempting to perform any of the steps below.

Less destructive - manually edit config to change directory

  1. Click "Open" and select "Open from disk" from the menu.

  2. Type %AppData%\com.modrinth.theseus\settings.json in the bottom path field and click "Open".

  3. Click "[tree]" at the top of the page.

  4. Look for loaded_config_dir and double-click its value.

  5. Type a valid directory to which you have full write access. By default, Modrinth uses C:\Users\<YOUR WINDOWS USERNAME>\AppData\Roaming\com.modrinth.theseus\.

  6. Click "Save" and then "Save to disk".

  7. When prompted about name and indentation, leave everything as is and click "Save".

  8. Save the file:

    1. If a save dialog appears, type %AppData%\com.modrinth.theseus\settings.json in the bottom path field and click "Save".

    2. If not, wait until the file is downloaded. Press Win + R, type %AppData%\com.modrinth.theseus\, click "OK", and drag the file into the Explorer window that just opened.

  9. If asked to replace the existing file, click "Yes".

  10. Try opening the app now.

Path of mass destruction - remove Modrinth's app directory

  1. Open Explorer and navigate to %AppData%\com.modrinth.theseus\.

  2. Delete everything except profiles and meta.

  3. Open the Modrinth App again and complete onboarding as usual.

Did this answer your question?