cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Looking to upgrade from Dynatrace Managed to SaaS? See how

ActiveGate not running after restarting the service

andra_nosa
Helper

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

 

Regards,

 

Andra

13 REPLIES 13

Babar_Qayyum
DynaMight Guru
DynaMight Guru

Hello @andra_nosa 

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

Regards,

Babar

 

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

 

Hi @andra_nosa

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. 

Love more, hate less; Technology for all, together we grow.

@andra_nosa 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.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

andra_nosa
Helper

Hi @Julius_Loman for the collector failed is solved but still ActiveGate not running if we see on CMC and on  services is running. Any solutions for this 

andra_nosa_0-1650947559707.png

andra_nosa_1-1650947604959.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

@andra_nosa  looking at the logs, the Activegate has issues with communicating to the Managed Cluster at https://10.0.51.182:8443/communication 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 https://10.0.51.182:8443/communication 
    ? (it should reply with HTTP/1.1 400 Bad Request in that case)
Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

andra_nosa
Helper

Hi @Julius_Loman 

 

  • 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 https://10.0.51.182:8443/communication 
    ? (it should reply with HTTP/1.1 400 Bad Request in that case)andra_nosa_0-1650958656493.png

     

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

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

@andra_nosa  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).

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Hi @Julius_Loman we have updated to latest version as suggest too, service status running but looking into cmc is still offline 😥

 

andra_nosa_0-1651036331464.png

 

@andra_nosa 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).

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

techean
Dynatrace Champion
Dynatrace Champion

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

KG

andra_nosa
Helper

Hi @Julius_Loman 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

Featured Posts