Bamboo builds fail with Error "mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file"
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Bamboo builds are failing with the below error and as a result, build artefacts are not getting published and are erroring out:
1
build 01-Aug-2022 17:28:10 mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "simcontrol\project_reducer\projectReducer.exe". The requested operation cannot be performed on a file with a user-mapped section open.
Environment
Bamboo 8.0.4
Diagnosis
Build fails while generating artifacts, below error can be seen in the logs:
1
build 01-Aug-2022 17:28:10 mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file "simcontrol\project_reducer\projectReducer.exe". The requested operation cannot be performed on a file with a user-mapped section open.
Cause
The error means that a portion of a file is locked, and this is usually caused by Antivirus software.
Solution
Please disable the antivirus completely on the remote agent. If disabling the antivirus is not an option, please try setting exclusions on .exe files in the remote agent.
After disabling the antivirus, please restart your agent machine so that we are sure no other process is keeping a lock on this file. Then, rerun the build.
In some cases, you may have multiple anti-viruses running on the remote agent. Try disabling all of them and then perform a clean restart of the agent machine.
Was this helpful?