# How to update SwarmAgent.exe.config?

**URL:** <https://forums.unrealengine.com/t/how-to-update-swarmagent-exe-config/354671>\
**Category:** World Creation\
**Tags:** fatal-error, swarm-agent, lighting-build, unreal-engine, UE4, question\
**Created:** [April 19, 2016, 6:15am UTC](https://forums.unrealengine.com/t/how-to-update-swarmagent-exe-config/354671 "2016-04-19T06:15:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmad\_moradian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ahmad\_moradian](https://forums.unrealengine.com/u/ahmad_moradian)\
**Post date:** [April 19, 2016, 6:15am UTC](https://forums.unrealengine.com/t/how-to-update-swarmagent-exe-config/354671/1 "2016-04-19T06:15:59Z")

</div>

I am using Unreal Engine 4.9. When I try to use the Build icon to calculate the lighting it appears a Fatal Error window which contains this message:

**Could not create cache folder `C:\Program Files\Unreal Engine 4.9\Unreal Engine 4.9.0 Improvable\Engine\Saved\Swarm/SwarmCache`.  
Please update `SwarmAgent.exe.config` in your binaries folder.**

![87418-error.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/b/9bb2458734ecc97def765ba4f49bdd77a44855f7.jpeg)

I just created the cache folder it the directory that I mentioned, but nothing happened except that the Fatal Error message did not come up.

Here I want to put the messages in the log tab of the Swarm Agent window:

1. [StartNewLogFile] Error: Access to the path ‘C:/Program Files/Unreal Engine 4.9/Unreal Engine 4.9.0 Improvable/Engine/Saved/Swarm\SwarmCache\Logs’ is denied.
2. Starting up SwarmAgent …
3. … registering SwarmAgent with remoting service
4. … registering SwarmAgent network channels
5. … initializing SwarmAgent
6. … checking certificate
7. … certificate check has failed
8. … initializing cache
9. [EnsureFolderExists] Error: System.UnauthorizedAccessException: Access to the path ‘C:/Program Files/Unreal Engine 4.9/Unreal Engine 4.9.0 Improvable/Engine/Saved/Swarm\SwarmCache’ is denied.  
at [System.IO](http://System.IO).\_\_Error.WinIOError(Int32 errorCode, String maybeFullPath)  
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)  
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)  
at Agent.Agent.EnsureFolderExists(String Folder) in e:\Unreal Engine 4.9.0 Improvable\Engine\Source\Programs\UnrealSwarm\Agent\Utils.cs:line 727
10. ERROR: Could not create cache folder ‘’  
Please update the SwarmAgent.exe.config file in your binaries folder.
11. … Failed to get the cache location!

 ![87419-log.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/c/0/5c0b02f9a9529cfb4e0c70c1b532f0732cf7cdf8.jpeg)

Could you please help me to fix the problem?

Thank you.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [April 20, 2016, 4:06pm UTC](https://forums.unrealengine.com/t/how-to-update-swarmagent-exe-config/354671/2 "2016-04-20T16:06:25Z")

</div>

Hi Ahmad,

Looking at the error reported in the log it seems like you may not have write access to this file location which Swarm Agent then couldn’t create the cache folder needed.

Here’s a couple of things to try:

- Make sure that you have administration rights for you computer for write access.
- Make sure that this engine folder is not “Read Only”
- Navigate to the folder location where SwarmAgent.exe is and Right-Click then “Run as Administrator” to see if that resolves the issue. (Should be located in C:\Program Files\Unreal Engine\4.11\Engine\Binaries\DotNET)
- Open Swarm Agent application and set a new cache folder location. [Follow the instructions here to do so.](https://wiki.unrealengine.com/Swarm_Agent_Troubleshooting#Where_is_my_Swarm_Data_Cache_stored.2C_and_Can_I_change_its_location.3F) Try using something like C:/Swarm. You will need to create this “Swarm” folder there before you can redirect it though.

If you’re still experiencing the issue with 4.9 can you try downloading the latest version of 4.11 and see if the issue persists there for you?

Thank you!

Tim

---

<div class="post-metadata">

**Author:** ![ahmad\_moradian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ahmad\_moradian](https://forums.unrealengine.com/u/ahmad_moradian)\
**Post date:** [April 20, 2016, 9:22pm UTC](https://forums.unrealengine.com/t/how-to-update-swarmagent-exe-config/354671/3 "2016-04-20T21:22:27Z")

</div>

Hi Tim

Thank you so much for your kind Detailed response. I just tried to uninstall UE4 and install that again. I think it had some problem with the directory I defined last time . I did not change the directory (I mean C:\AGA) for the second time and it is working very well know.

Thank you very much.

---

<div class="post-metadata">

**Author:** ![Tim\_Hobson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tim\_Hobson](https://forums.unrealengine.com/u/Tim_Hobson)\
**Post date:** [April 21, 2016, 12:12pm UTC](https://forums.unrealengine.com/t/how-to-update-swarmagent-exe-config/354671/4 "2016-04-21T12:12:34Z")

</div>

Ok. Glad it’s working for you now. 🙂

---

<div class="post-metadata">

**Author:** ![Dtrancer\_ue](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dtrancer\_ue](https://forums.unrealengine.com/u/Dtrancer_ue)\
**Post date:** [October 10, 2020, 11:43am UTC](https://forums.unrealengine.com/t/how-to-update-swarmagent-exe-config/354671/5 "2020-10-10T11:43:44Z")

</div>

I have the same problem. Arose due to the fact that I changed the name of the Windows account. Tried everything including changing the cache paths in the BaseEngine.ini file  
The solution was very simple. In the Swarm Agent, the settings tab, the Cache Folder item, in the Cache Folder line, I entered the path to the new folder in the new Windows account.

 ![318056-swarm-agent-running.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/d/6cd9153cd852e64a0a496930fa0b01e35510e821.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d5afcb7f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d5afcb7f](https://forums.unrealengine.com/u/anonymous_user_d5afcb7f)\
**Post date:** [October 10, 2020, 11:55am UTC](https://forums.unrealengine.com/t/how-to-update-swarmagent-exe-config/354671/6 "2020-10-10T11:55:12Z")

</div>

was using UE4 and this happened with me also, My Brother fixed this. I will let you know.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d5afcb7f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d5afcb7f](https://forums.unrealengine.com/u/anonymous_user_d5afcb7f)\
**Post date:** [October 10, 2020, 11:55am UTC](https://forums.unrealengine.com/t/how-to-update-swarmagent-exe-config/354671/7 "2020-10-10T11:55:51Z")

</div>

was using UE4 and this happened with me also[,](https://rulesofplaying.com/shuffleboard-rules/) My Brother fixed this. I will let you know.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f6eb7f4d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f6eb7f4d](https://forums.unrealengine.com/u/anonymous_user_f6eb7f4d)\
**Post date:** [May 3, 2022, 9:43am UTC](https://forums.unrealengine.com/t/how-to-update-swarmagent-exe-config/354671/8 "2022-05-03T09:43:42Z")

</div>

thanks!!! you are best!!! help me without my problem
