# Try to start APM server inside elasticsearch pod

**URL:** <https://discuss.elastic.co/t/try-to-start-apm-server-inside-elasticsearch-pod/201824>\
**Category:** APM\
**Tags:** server\
**Created:** [October 1, 2019, 2:31pm UTC](https://discuss.elastic.co/t/try-to-start-apm-server-inside-elasticsearch-pod/201824 "2019-10-01T14:31:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![KatiukOleg](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@KatiukOleg](https://discuss.elastic.co/u/KatiukOleg)\
**Post date:** [October 1, 2019, 2:31pm UTC](https://discuss.elastic.co/t/try-to-start-apm-server-inside-elasticsearch-pod/201824/1 "2019-10-01T14:31:25Z")

</div>

Hi,  
currently use these versions  
**Elasticsearch 7.2.0** :

**APM Server 7.2.0** :

After installing APM-server inside the same pod where elasticsearch is located, I was trying to start apm-server. But got the next error -\>

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/2/b2ff884637266cf5cd03f7128446dab1cb354307.png)

How can I fix it?  
Thanks.

---

<div class="post-metadata">

**Author:** ![KatiukOleg](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@KatiukOleg](https://discuss.elastic.co/u/KatiukOleg)\
**Post date:** [October 3, 2019, 10:03am UTC](https://discuss.elastic.co/t/try-to-start-apm-server-inside-elasticsearch-pod/201824/2 "2019-10-03T10:03:29Z")

</div>

My pod is located in Azure via AKS.  
So I've installed APM server in elasticsearch pod according to this guide -\>

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/4/d43e1405ec29ae8f67fc1f1bfda74b7156aff946.png)

But no 'service apm-server start' command neither 'sudo -u apm-server apm-server [\<argument...\>]' ([https://www.elastic.co/guide/en/apm/server/current/apm-server-starting.html#running-deb-rpm](https://www.elastic.co/guide/en/apm/server/current/apm-server-starting.html#running-deb-rpm)) don't work for me.

It looks like I need some additional step.

---

<div class="post-metadata">

**Author:** ![KatiukOleg](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@KatiukOleg](https://discuss.elastic.co/u/KatiukOleg)\
**Post date:** [October 3, 2019, 10:52am UTC](https://discuss.elastic.co/t/try-to-start-apm-server-inside-elasticsearch-pod/201824/3 "2019-10-03T10:52:17Z")

</div>

My resolution was next:

1. check OS via 'cat /etc/os-release' command. In my case I have Centos.
2. sudo was not installed, so I ran 'su -' firstly then 'yum install sudo'
3. 'sudo -u apm-server apm-server'

After I checked APM server status via Kibana page -\>

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/b/db36ecb893e76f0014c0ce8faf09507f7fdccc47.png)

---

<div class="post-metadata">

**Author:** ![simitt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simitt/32/106406_2.png) [@simitt](https://discuss.elastic.co/u/simitt)\
**Post date:** [October 4, 2019, 12:22pm UTC](https://discuss.elastic.co/t/try-to-start-apm-server-inside-elasticsearch-pod/201824/4 "2019-10-04T12:22:50Z")

</div>

Happy to hear you found a solution.

You might also be interested in looking into [Running APM Server on ECK (Elastic Cloud on Kubernetes)](https://www.elastic.co/guide/en/cloud-on-k8s/0.9/k8s-apm-server.html). It is only in _alpha_ and not GA yet, but might be interesting to follow along.

---

<div class="post-metadata">

**Author:** ![KatiukOleg](https://avatars.discourse-cdn.com/v4/letter/k/6bbea6/32.png) [@KatiukOleg](https://discuss.elastic.co/u/KatiukOleg)\
**Post date:** [October 4, 2019, 2:03pm UTC](https://discuss.elastic.co/t/try-to-start-apm-server-inside-elasticsearch-pod/201824/5 "2019-10-04T14:03:14Z")

</div>

Hi Silvia, thanks. I'll check it.

---

<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:** [October 25, 2019, 10:03am UTC](https://discuss.elastic.co/t/try-to-start-apm-server-inside-elasticsearch-pod/201824/6 "2019-10-25T10:03:21Z")

</div>

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