# OneAgent installation failed on Windows server

**URL:** <https://community.dynatrace.com/t/oneagent-installation-failed-on-windows-server/39224>\
**Category:** Dynatrace Managed\
**Tags:** installation, dynatrace-managed, oneagent\
**Created:** [April 10, 2023, 5:37pm UTC](https://community.dynatrace.com/t/oneagent-installation-failed-on-windows-server/39224 "2023-04-10T17:37:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bulus](https://avatars.discourse-cdn.com/v4/letter/b/c6cbf5/32.png) [@bulus](https://community.dynatrace.com/u/bulus)\
**Post date:** [April 10, 2023, 5:37pm UTC](https://community.dynatrace.com/t/oneagent-installation-failed-on-windows-server/39224/1 "2023-04-10T17:37:23Z")

</div>

Not able to install Dynatrace on the Windows server, it’s going on a rollback plan

Sharing the logs and snapshot of the issue.  
[239\_logs\_DT.txt](https://community.dynatrace.com/uploads/short-url/mt5CyDskdQ3EhrzJeDobekuGA1D.txt) (446 KB)

 ![239 error.PNG](https://global.discourse-cdn.com/dynatrace/original/3X/4/c/4c1d37a04acb68ee8e5f15a472c1b37cc4b865de.png)

---

<div class="post-metadata">

**Author:** ![Mohamed\_Hamdy](https://avatars.discourse-cdn.com/v4/letter/m/7ab992/32.png) [@Mohamed\_Hamdy](https://community.dynatrace.com/u/Mohamed_Hamdy)\
**Post date:** [April 10, 2023, 11:47pm UTC](https://community.dynatrace.com/t/oneagent-installation-failed-on-windows-server/39224/2 "2023-04-10T23:47:35Z")

</div>

Hi&nbsp;[@bulus](https://community.dynatrace.com/user/25937),

based on the provided logs, I think there is an agent that is already installed and the service is in a stop state, try to enable it or uninstall the current agent and install it again based on your requirements, if you are using another environment you can update the environment using oneagentctl after enabling it or try to uninstall the current agent, and remove the files, for more details check the following link:

> **[Uninstall Dynatrace OneAgent on Windows](https://docs.dynatrace.com/docs/ingest-from/dynatrace-oneagent/installation-and-operation/windows/operation/uninstall-oneagent-on-windows)**
>
> Learn how you can remove Dynatrace OneAgent from your system.

MSI (s) (74:24) [15:26:52:602]: Executing op: ActionStart(Name=InstallAgentService,Description=Installing OneAgent service,)  
Action 15:26:52: InstallAgentService. Installing OneAgent service  
MSI (s) (74:24) [15:26:52:602]: Executing op: CustomActionSchedule(Action=InstallAgentService,ActionType=3073,Source=BinaryData,Target=installAgentServiceAction,CustomActionData=D:\Dynatrace\)  
MSI (s) (74:10) [15:26:52:633]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIF80D.tmp, Entrypoint: installAgentServiceAction  
**15:26:52 CustomActionDLL (info): Installing “Dynatrace OneAgent” service…**  
**15:26:52 CustomActionDLL (info): Previous instance of the service is still present, uninstalling…**  
15:26:52 CustomActionDLL (info): Uninstalling “Dynatrace OneAgent” service…  
15:26:52 CustomActionDLL (info): Stopping “Dynatrace OneAgent” service…  
**15:26:52 CustomActionDLL (info): The service is currently in “Stopped” state**  
15:26:52 CustomActionDLL (info): Service is already stopped  
15:26:52 CustomActionDLL (warning): Failed to update startup type for service to “manual”: error code: 1072, error message: The specified service has been marked for deletion.  
15:26:52 CustomActionDLL (info): The service is in stopped state  
15:26:52 CustomActionDLL (warning): Failed to delete service. error code: 1072, error message: The specified service has been marked for deletion.  
15:26:52 CustomActionDLL (severe): Failed to install “Dynatrace OneAgent” service  
CustomAction InstallAgentService returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)  
Action ended 15:26:52: InstallExecute. Return value 3.
