# Metricbeat setup failed

**URL:** <https://discuss.elastic.co/t/metricbeat-setup-failed/112142>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [December 18, 2017, 3:58am UTC](https://discuss.elastic.co/t/metricbeat-setup-failed/112142 "2017-12-18T03:58:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rezaa](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@Rezaa](https://discuss.elastic.co/u/Rezaa)\
**Post date:** [December 18, 2017, 3:58am UTC](https://discuss.elastic.co/t/metricbeat-setup-failed/112142/1 "2017-12-18T03:58:34Z")

</div>

Hi

I have installed elastic search and metricbeat 6.0 installed.

But when I try to run setup i get following error want to connect to port 443. there is no program listening on port 443, and I have no such a port in my config.

I wonder if you know what I am missing here.

[root@elk6 ~]# metricbeat run -e --setup  
2017/12/18 03:51:48.500762 beat.go:436: INFO Home path: [/usr/share/metricbeat] Config path: [/etc/metricbeat] Data path: [/var/lib/metricbeat] Logs path: [/var/log/metricbeat]  
2017/12/18 03:51:48.500790 beat.go:463: DBG [beat] Beat metadata path: /var/lib/metricbeat/meta.json  
...  
2017/12/18 03:52:01.647130 beat.go:276: INFO metricbeat start running.  
2017/12/18 03:52:01.647211 reload.go:95: DBG [cfgfile] Checking module configs from: /etc/metricbeat/modules.d/\*.yml  
2017/12/18 03:52:01.647327 cfgfile.go:143: DBG [cfgfile] Load config from file: /etc/metricbeat/modules.d/elasticsearch.yml  
2017/12/18 03:52:01.647504 cfgfile.go:143: DBG [cfgfile] Load config from file: /etc/metricbeat/modules.d/kibana.yml  
2017/12/18 03:52:01.647597 cfgfile.go:143: DBG [cfgfile] Load config from file: /etc/metricbeat/modules.d/system.yml  
2017/12/18 03:52:01.647799 cfgfile.go:143: DBG [cfgfile] Load config from file: /etc/metricbeat/modules.d/vsphere.yml  
2017/12/18 03:52:01.647936 reload.go:109: DBG [cfgfile] Number of module configs found: 6  
2017/12/18 03:52:01.647975 processor.go:49: DBG [processors] Processors:  
2017/12/18 03:52:01.648066 cfgwarn.go:11: WARN BETA: The elasticsearch node metricset is beta  
2017/12/18 03:52:01.648116 cfgwarn.go:11: WARN BETA: The elasticsearch node\_stats metricset is beta  
2017/12/18 03:52:01.648236 processor.go:49: DBG [processors] Processors:  
2017/12/18 03:52:01.648290 cfgwarn.go:11: WARN BETA: The kafka partition metricset is beta  
2017/12/18 03:52:01.648356 processor.go:49: DBG [processors] Processors:  
2017/12/18 03:52:01.648552 process.go:64: DBG [system.process] process cgroup data collection is enabled, using hostfs=''  
2017/12/18 03:52:01.649910 condition.go:97: DBG [processors] New condition regexp: map[system.filesystem.mount\_point:\A/(?:sys|cgroup|proc|dev|etc|host|lib)(?:(?-m:$)|/)]  
2017/12/18 03:52:01.649935 processor.go:49: DBG [processors] Processors: drop\_event, condition=regexp: map[system.filesystem.mount\_point:\A/(?:sys|cgroup|proc|dev|etc|host|lib)(?:(?-m:$)|/)]  
2017/12/18 03:52:01.650056 processor.go:49: DBG [processors] Processors:  
2017/12/18 03:52:01.650136 processor.go:49: DBG [processors] Processors:  
2017/12/18 03:52:01.650189 cfgwarn.go:11: WARN BETA: The vsphere datastore metricset is beta  
2017/12/18 03:52:01.650873 cfgwarn.go:11: WARN BETA: The vsphere host metricset is beta  
2017/12/18 03:52:01.651269 cfgwarn.go:11: WARN BETA: The vsphere virtualmachine metricset is beta  
2017/12/18 03:52:01.651784 metrics.go:51: INFO Total non-zero values: beat.info.uptime.ms=13167 beat.memstats.gc\_next=4622528 beat.memstats.memory\_alloc=3042376 beat.memstats.memory\_total=10811640 libbeat.config.module.running=0 libbeat.output.type=elasticsearch libbeat.pipeline.clients=5 libbeat.pipeline.events.active=0  
2017/12/18 03:52:01.651805 metrics.go:52: INFO Uptime: 13.167389127s  
2017/12/18 03:52:01.651811 beat.go:284: INFO metricbeat stopped.  
2017/12/18 03:52:01.651835 beat.go:635: CRIT Exiting: 1 error: 3 errors: Post [https://localhost/sdk:](https://localhost/sdk:) dial tcp [::1]:443: getsockopt: connection refused; Post [https://localhost/sdk:](https://localhost/sdk:) dial tcp [::1]:443: getsockopt: connection refused; Post [https://localhost/sdk:](https://localhost/sdk:) dial tcp [::1]:443: getsockopt: connection refused  
Exiting: 1 error: 3 errors: Post [https://localhost/sdk:](https://localhost/sdk:) dial tcp [::1]:443: getsockopt: connection refused; Post [https://localhost/sdk:](https://localhost/sdk:) dial tcp [::1]:443: getsockopt: connection refused; Post [https://localhost/sdk:](https://localhost/sdk:) dial tcp [::1]:443: getsockopt: connection refused

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 18, 2017, 4:04am UTC](https://discuss.elastic.co/t/metricbeat-setup-failed/112142/2 "2017-12-18T04:04:50Z")

</div>

What does your config look like?

---

<div class="post-metadata">

**Author:** ![Rezaa](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@Rezaa](https://discuss.elastic.co/u/Rezaa)\
**Post date:** [December 18, 2017, 4:46am UTC](https://discuss.elastic.co/t/metricbeat-setup-failed/112142/3 "2017-12-18T04:46:12Z")

</div>

Here is my config:

```auto
[root@elk6 modules.d]# cat /etc/metricbeat/metricbeat.yml
metricbeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.settings:
  index.number_of_shards: 1
  index.codec: best_compression
setup.kibana:
  host: "localhost:5601"
output.elasticsearch:
  hosts: ["localhost:9200"]
logging.level: debug
logging.selectors: ["*"]

```

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [December 19, 2017, 5:23am UTC](https://discuss.elastic.co/t/metricbeat-setup-failed/112142/4 "2017-12-19T05:23:49Z")

</div>

can you run `metricbeat modules list`?

---

<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:** [January 16, 2018, 5:23am UTC](https://discuss.elastic.co/t/metricbeat-setup-failed/112142/5 "2018-01-16T05:23:54Z")

</div>

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