# I have installed fleet server and now i want to install elastic agent but it showing me error like this

**URL:** https://discuss.elastic.co/t/i-have-installed-fleet-server-and-now-i-want-to-install-elastic-agent-but-it-showing-me-error-like-this/309408
**Category:** Elasticsearch
**Created:** [July 12, 2022, 11:10am UTC](https://discuss.elastic.co/t/i-have-installed-fleet-server-and-now-i-want-to-install-elastic-agent-but-it-showing-me-error-like-this/309408 "2022-07-12T11:10:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nirmal\_Unagar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nirmal_unagar/32/108195_2.png) [@Nirmal\_Unagar](https://discuss.elastic.co/u/Nirmal_Unagar)
#### Post date: [July 12, 2022, 11:10am UTC](https://discuss.elastic.co/t/i-have-installed-fleet-server-and-now-i-want-to-install-elastic-agent-but-it-showing-me-error-like-this/309408/1 "2022-07-12T11:10:40Z")

</div>

I have installed fleet server successfully. now i have other windows server and i have created policy for system, elastic endpoint. After downloading elastic agent, it showing me error like this and not able to connect with fleet server.

PS C:\Windows\system32\elastic-agent-8.3.2-windows-x86\_64\> .\elastic-agent.exe install --url=[https://10.1.1.90:8220](https://10.1.1.90:8220) --enrollment-token=Sm1meDhZRUJ5NU1pVk9NU3cyd0Y6Z09WTW54M3NTbWl6bUZsVURIVW5DQQ==  
Elastic Agent will be installed at C:\Program Files\Elastic\Agent and will run as a service. Do you want to continue? [Y/n]:y  
{"log.level":"info","@timestamp":"2022-07-12T16:37:55.973+0530","log.origin":{"file.name":"cmd/enroll\_cmd.go","file.line":471},"message":"Starting enrollment to URL: [https://10.1.1.90:8220/","ecs.version":"1.6.0](https://10.1.1.90:8220/%22,%22ecs.version%22:%221.6.0)"}  
Error: fail to enroll: fail to execute request to fleet-server: dial tcp 10.1.1.90:8220: connectex: No connection could be made because the target machine actively refused it.  
For help, please see our troubleshooting guide at [Troubleshoot common problems | Fleet and Elastic Agent Guide [8.3] | Elastic](https://www.elastic.co/guide/en/fleet/8.3/fleet-troubleshooting.html)  
Error: enroll command failed with exit code: 1  
For help, please see our troubleshooting guide at [Troubleshoot common problems | Fleet and Elastic Agent Guide [8.3] | Elastic](https://www.elastic.co/guide/en/fleet/8.3/fleet-troubleshooting.html)  
PS C:\Windows\system32\elastic-agent-8.3.2-windows-x86\_64\>'''

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [August 9, 2022, 11:11am UTC](https://discuss.elastic.co/t/i-have-installed-fleet-server-and-now-i-want-to-install-elastic-agent-but-it-showing-me-error-like-this/309408/2 "2022-08-09T11:11:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
