# ActiveGate not running after restarting the service

**URL:** <https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932>\
**Category:** Dynatrace Managed\
**Tags:** activegate, dynatrace-managed\
**Created:** [April 23, 2022, 5:41am UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932 "2022-04-23T05:41:23Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![andra\_nosa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andra_nosa/32/23972_2.png) [@andra\_nosa](https://community.dynatrace.com/u/andra_nosa)\
**Post date:** [April 23, 2022, 5:41am UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/1 "2022-04-23T05:41:23Z")

</div>

Hi Guys,

I have problem with service ActiveGate its not running after stop and start again thats service

Any solutions for this

![andra_nosa_0-1650692469181.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/9/89969bde678b8ea450037bdd131328b6e347f8e2.png)

Regards,

Andra

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [April 23, 2022, 7:54am UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/2 "2022-04-23T07:54:39Z")

</div>

Hello&nbsp;[@andra\_nosa](https://community.dynatrace.com/user/14826)

Was there any configuration change in the config.properties/or custom.properties/or any other file before restarting the AG?

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![andra\_nosa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andra_nosa/32/23972_2.png) [@andra\_nosa](https://community.dynatrace.com/u/andra_nosa)\
**Post date:** [April 23, 2022, 4:35pm UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/3 "2022-04-23T16:35:35Z")

</div>

Hi Babar,

We not changed any configure on thats config.

We have trying to reboot the server but the service still not running

We used command systemctl start dynatracegateway, but not changed.

Look into log and the problem on thats collector not start

Please help for this issued

Regards,

Andra

---

<div class="post-metadata">

**Author:** ![theharithsa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/theharithsa/32/16236_2.png) [@theharithsa](https://community.dynatrace.com/u/theharithsa)\
**Post date:** [April 23, 2022, 6:51pm UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/4 "2022-04-23T18:51:42Z")

</div>

Hi&nbsp;[@andra\_nosa](https://community.dynatrace.com/user/14826),

As per the logs, there is an invalid entry in the config.properties file. If this is the case, reinstalling ActiveGate should do the trick.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [April 23, 2022, 7:32pm UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/5 "2022-04-23T19:32:25Z")

</div>

[@andra\_nosa](https://community.dynatrace.com/user/14826)&nbsp;it’s difficult to tell without looking at the config files as the log says there is invalid configuration.

Any chance you changed the SSL certificates on the AG using the API? I encountered such situation once when the certificate name in the keystone had spaces. AG wrote a bad entry into custom.properties file. I don’t think this is fixed yet.

Check the custom.properties file. Most likely the config.properties had not been touched.

---

<div class="post-metadata">

**Author:** ![andra\_nosa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andra_nosa/32/23972_2.png) [@andra\_nosa](https://community.dynatrace.com/u/andra_nosa)\
**Post date:** [April 26, 2022, 4:34am UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/6 "2022-04-26T04:34:41Z")

</div>

Hi [@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;for the collector failed is solved but still ActiveGate not running if we see on CMC and on&nbsp; services is running. Any solutions for this

 ![andra_nosa_0-1650947559707.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/6/364919f09709489f874523750fdf41a20baca28d.png)

 ![andra_nosa_1-1650947604959.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/7/47f08a1b278fc22390e9fdbf6c69d894a19039c6.png)

notes : we have upgrade to activegate to latest version

And see for the logs, found new error :

2022-04-25 05:23:19 UTC WARNING [\<23cb2595-0ee1-4954-8219-881f1a8ad7c5\>] [\<collector.core\>, AgentServerMessageHandler] Error in response to message:request: sender=AGENT(id=0xb7caaa9b5b5372e9), target=SERVER(id=1), content-type=INITIAL\_SETUP, priority=HIGH, message-id=1, error response: response: sender=SERVER(id=1), target=AGENT(id=0xb7caaa9b5b5372e9), content-type=INITIAL\_SETUP, priority=HIGH, message-id=1, error=COMMUNICATION\_ERROR, reason=HTTP communication failed, status code=502, reason=Bad Gateway [Suppressing further messages for 1 minute]  
2022-04-25 05:23:30 UTC INFO [\<23cb2595-0ee1-4954-8219-881f1a8ad7c5\>] [CyclicSender] REQUEST;server:1;objId:476851727:Error in communication with server 1:{“message”:“HTTP communication failed, status code=502, reason=Bad Gateway”,“targetId”:1,“httpStatusCode”:502,“targetUri”:“https:\/\/10.0.51.182:8443\/communication”} [Suppressing further identical messages for 10 minutes]

Regards,

Andra

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [April 26, 2022, 6:47am UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/7 "2022-04-26T06:47:31Z")

</div>

[@andra\_nosa](https://community.dynatrace.com/user/14826)&nbsp; looking at the logs, the Activegate has issues with communicating to the Managed Cluster at&nbsp;[https://10.0.51.182:8443/communication](https://10.0.51.182:8443/communication)&nbsp;&nbsp;and got HTTP 502.

- Do you use HTTP proxy to connect the ActiveGate to Dynatrace Cluster?
- Is the URL reachable if try to reach it from the AG host using  
curl -k -v&nbsp;[https://10.0.51.182:8443/communication](https://10.0.51.182:8443/communication)&nbsp;  
? (it should reply with HTTP/1.1 400 Bad Request in that case)

---

<div class="post-metadata">

**Author:** ![andra\_nosa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andra_nosa/32/23972_2.png) [@andra\_nosa](https://community.dynatrace.com/u/andra_nosa)\
**Post date:** [April 26, 2022, 7:37am UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/8 "2022-04-26T07:37:59Z")

</div>

Hi&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)

- Do you use HTTP proxy to connect the ActiveGate to Dynatrace Cluster? we not used HTTP Proxy
- Is the URL reachable if try to reach it from the AG host using  
curl -k -v&nbsp;[https://10.0.51.182:8443/communication](https://10.0.51.182:8443/communication)&nbsp;  
? (it should reply with&nbsp;HTTP/1.1 400 Bad Request in that case)  
 ![andra_nosa_0-1650958656493.png](https://global.discourse-cdn.com/dynatrace/original/2X/8/8aff4d49deaaa8a278bbe72eba83c70616efee87.png)

---

<div class="post-metadata">

**Author:** ![techean](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/techean/32/227_2.png) [@techean](https://community.dynatrace.com/u/techean)\
**Post date:** [April 26, 2022, 11:33am UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/9 "2022-04-26T11:33:23Z")

</div>

Hey, would recommend to upgrade active gates to 1.223 + version as it supports AG diagnostic. This is a configuration issue, try reverting configurations in custom file to rolled back to any backup version and try restating the active gate.

[ActiveGate diagnostics | Dynatrace Docs](https://www.dynatrace.com/support/help/setup-and-configuration/dynatrace-activegate/activegate-diagnostics)

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [April 26, 2022, 11:55am UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/10 "2022-04-26T11:55:02Z")

</div>

Looks either as curl not supporting TLS in your case. Please check if you have the connectivity using other methods (try wget for example).

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [April 26, 2022, 3:42pm UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/11 "2022-04-26T15:42:55Z")

</div>

[@andra\_nosa](https://community.dynatrace.com/user/14826)&nbsp; anyway your AG is way too old looking at the screenshots. I’d really recommend upgrading it to latest version (also the other ones). You can safely reinstall it in place (do not uninstall the current version).

---

<div class="post-metadata">

**Author:** ![andra\_nosa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andra_nosa/32/23972_2.png) [@andra\_nosa](https://community.dynatrace.com/u/andra_nosa)\
**Post date:** [April 27, 2022, 5:12am UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/12 "2022-04-27T05:12:23Z")

</div>

Hi&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;we have updated to latest version as suggest too, service status running but looking into cmc is still offline&nbsp;:sad\_but\_relieved\_face:

![andra_nosa_0-1651036331464.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/b/8b0a01c34a069d969fa4aac5f91f5f5619b201ca.png)

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [April 27, 2022, 7:32am UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/13 "2022-04-27T07:32:30Z")

</div>

[@andra\_nosa](https://community.dynatrace.com/user/14826)&nbsp;based on the log, you have really issues with the connection between ActiveGate and your managed cluster. Please verify it with wget or other HTTP client (looks like your curl installation might not have TLS support compiled).

---

<div class="post-metadata">

**Author:** ![andra\_nosa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andra_nosa/32/23972_2.png) [@andra\_nosa](https://community.dynatrace.com/u/andra_nosa)\
**Post date:** [May 9, 2022, 3:42am UTC](https://community.dynatrace.com/t/activegate-not-running-after-restarting-the-service/34932/14 "2022-05-09T03:42:49Z")

</div>

Hi&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364)&nbsp;sorry late response, ActiveGate has been connect to Cluster Node because after we have add new instance properties and backup the old one, the problem because on instance.properties is missing for the Cluster UID. And than we have change the ownership instance.properties into dtuserag, than restart the service ActiveGate, check on Cluster Node and ActiveGate has been connected
