# dynatracegateway.service: Deactivated successfully.

**URL:** <https://community.dynatrace.com/t/dynatracegateway-service-deactivated-successfully/47670>\
**Category:** Open Q&A\
**Tags:** activegate, dynatrace-managed\
**Created:** [September 14, 2024, 4:23am UTC](https://community.dynatrace.com/t/dynatracegateway-service-deactivated-successfully/47670 "2024-09-14T04:23:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dyn98007](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dyn98007](https://community.dynatrace.com/u/dyn98007)\
**Post date:** [September 14, 2024, 4:23am UTC](https://community.dynatrace.com/t/dynatracegateway-service-deactivated-successfully/47670/1 "2024-09-14T04:23:02Z")

</div>

I’m trying to setup an Activegate in a RHEL 9.2 EC2 host for the purpose of&nbsp;monitoring remote technologies using extensions.

The activegate has to connect to a managed cluster.

The issue that is being faced is that the service is not starting.

Details below…

$ systemctl status dynatracegateway

_○ dynatracegateway.service - Dynatrace ActiveGate service_  
_Loaded: loaded (/etc/systemd/system/dynatracegateway.service; disabled; preset: disabled)_  
_Active: inactive (dead)_

_Sep 14 04:05:24 ip-xyz.us-west-2.compute.internal systemd[1]: dynatracegateway.service: Deactivated successfully._  
_Sep 14 04:05:24 ip-xyz.us.us-west-2.compute.internal systemd[1]: Started Dynatrace ActiveGate service._  
_Sep 14 04:05:24 ip-1 xyz.us.us-west-2.compute.internal systemd[1]: dynatracegateway.service: Consumed 1.092s CPU time._  
_Sep 14 04:07:52 ip-xyz.us.us-west-2.compute.internal systemd[1]: Starting Dynatrace ActiveGate service…_  
_Sep 14 04:07:52 ip-xyz.us.us-west-2.compute.internal dynatracegateway[2021491]: 14/09 04:07:52 (1.295.27.20240715-230200) Dynatrace ActiveGate started._  
_Sep 14 04:07:53 ip-xyz.us.us-west-2.compute.internal dynatracegateway[2021491]: 14/09 04:07:53 (1.295.27.20240715-230200)_  
_Sep 14 04:07:53 ip-xyz.us.us-west-2.compute.internal dynatracegateway[2021527]: 14/09 04:07:53 (1.295.27.20240715-230200)_  
_Sep 14 04:07:53 ip-xyz.us.us-west-2.compute.internal systemd[1]: dynatracegateway.service: Deactivated successfully._  
_Sep 14 04:07:53 ip-xyz.us.us-west-2.compute.internal systemd[1]: Started Dynatrace ActiveGate service._  
_Sep 14 04:07:53 ip-xyz.us.us-west-2.compute.internal systemd[1]: dynatracegateway.service: Consumed 1.193s CPU time._

----------

$ cat dynatracegateway-start\_20240914-040752.log

_/opt/dynatrace/gateway/dynatracegateway: line 194: /opt/dynatrace/gateway/launcher/dynatracegateway: Operation not permitted_

------

Please advise..

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [September 14, 2024, 3:49pm UTC](https://community.dynatrace.com/t/dynatracegateway-service-deactivated-successfully/47670/2 "2024-09-14T15:49:30Z")

</div>

Hi,

Missing permissions? I would raise a support ticket in that situation.

Best regards

---

<div class="post-metadata">

**Author:** ![SivaP](https://avatars.discourse-cdn.com/v4/letter/s/bc8723/32.png) [@SivaP](https://community.dynatrace.com/u/SivaP)\
**Post date:** [September 14, 2024, 4:26pm UTC](https://community.dynatrace.com/t/dynatracegateway-service-deactivated-successfully/47670/3 "2024-09-14T16:26:12Z")

</div>

Check permissions and SELinux status once.

and ACL as mentioned in document.

The ActiveGate Linux installer doesn’t support ACL (Access Control List). ACL rules may prohibit access to installer-created directories and files, making the ActiveGate fail to start. If you use the ACL, rules related to the installation directories defined in the following parameters should be disabled:

INSTALL=  
CONFIG=  
LOG=  
TEMP=  
PACKAGES\_DIR=

> **[Hardware and system requirements for routing/monitoring ActiveGates on Linux](https://docs.dynatrace.com/docs/ingest-from/dynatrace-activegate/installation/linux/linux-activegate-hardware-and-system-requirements)**
>
> Learn what hardware and operating system requirements need to be taken into account before installing ActiveGate on Linux for routing and monitoring purposes.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [September 16, 2024, 11:34am UTC](https://community.dynatrace.com/t/dynatracegateway-service-deactivated-successfully/47670/4 "2024-09-16T11:34:53Z")

</div>

First of all:

1. Validate the user permissions granted to install and operate DT activegate.
2. for activegate services stop and restart visit the following URL:&nbsp;[Start/stop/restart ActiveGate - Dynatrace Managed Docs](https://docs.dynatrace.com/managed/setup-and-configuration/dynatrace-activegate/operation/stop-restart-activegate)
3. validate against the supported HW and SW requirements:[https://docs.dynatrace.com/managed/shortlink/activegate-requirements-linuxhttps://docs.dynatrace.com/managed/shortlink/activegate-landing#system-and-hardware-requirements](https://docs.dynatrace.com/managed/shortlink/activegate-requirements-linuxhttps://docs.dynatrace.com/managed/shortlink/activegate-landing#system-and-hardware-requirements)
4. if you have custom configurations, validate it through:&nbsp;[Customize ActiveGate installation on Linux - Dynatrace Managed Docs](https://docs.dynatrace.com/managed/setup-and-configuration/dynatrace-activegate/installation/linux/linux-customize-installation-for-activegate)

Thanks.

---

<div class="post-metadata">

**Author:** ![Peter\_Youssef](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/peter_youssef/32/14668_2.png) [@Peter\_Youssef](https://community.dynatrace.com/u/Peter_Youssef)\
**Post date:** [September 16, 2024, 7:17pm UTC](https://community.dynatrace.com/t/dynatracegateway-service-deactivated-successfully/47670/5 "2024-09-16T19:17:42Z")

</div>

[@dyn98007](https://community.dynatrace.com/user/79860)&nbsp;validate the configured parameters in custom.properties file for safe upadate, copy and paste the original file and use the copied for checking.

Refer to the configurable parameters of Dynatrace activegate:&nbsp;[Configuration properties and parameters of ActiveGate - Dynatrace Managed Docs](https://docs.dynatrace.com/managed/setup-and-configuration/dynatrace-activegate/configuration/configure-activegate)

---

<div class="post-metadata">

**Author:** ![dyn98007](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dyn98007](https://community.dynatrace.com/u/dyn98007)\
**Post date:** [September 16, 2024, 8:06pm UTC](https://community.dynatrace.com/t/dynatracegateway-service-deactivated-successfully/47670/6 "2024-09-16T20:06:11Z")

</div>

[@SivaP](https://community.dynatrace.com/user/72899)&nbsp; -In the above mentioned Installation directories (INSTALL=,&nbsp;CONFIG=, LOG=, TEMP=, PACKAGES\_DIR=) , the user ownership was changed to&nbsp; -&nbsp;chown -R dtuserag:dtuserag dynatrace&nbsp;.

Also, in the same EC2 host, as seen below,&nbsp;_dynatraceautoupdater.service_ &nbsp;is in running status.

_[root@ip-10-xxx gateway]# **systemctl status dynatraceautoupdater** _  
_● dynatraceautoupdater.service - Dynatrace ActiveGate AutoUpdater service_  
_Loaded: loaded (/etc/systemd/system/dynatraceautoupdater.service; disabled; preset: disabled)_  
_Active: active (running) since Sat 2024-09-14 02:56:50 UTC; 2 days ago_  
_Main PID: 1948798 (autoupdater.sh)_  
_Tasks: 2 (limit: 100662)_  
_Memory: 1.4M_  
_CPU: 5min 58.326s_  
_CGroup: /system.slice/dynatraceautoupdater.service_  
_├─1792410 sleep 30_  
_└─1948798 /bin/bash /opt/dynatrace/autoupdater/autoupdater.sh --wait_

_Sep 14 02:56:45 ip-10-x-x-xx.us-west-2.compute.internal systemd[1]: Starting Dynatrace ActiveGate AutoUpdater service…_  
_Sep 14 02:56:45 ip-10-x-x-xx.us-west-2.compute.internal dynatraceautoupdater[1948770]: 14/09 02:56:45 Dynatrace ActiveGate AutoUpdater 1.295.27.20240715-230200 started._  
_Sep 14 02:56:50 ip-10-x-x-xx.us-west-2.compute.internal systemd[1]: Started Dynatrace ActiveGate AutoUpdater service._  
_Sep 14 03:07:54 ip-10-x-x-xx.us-west-2.compute.internal systemd[1]: /etc/systemd/system/dynatraceautoupdater.service:8: PIDFile= references a path below legacy directory /var/run/, updat\>_  
_Sep 16 19:38:01 ip-10-x-x-xx.us-west-2.compute.internal systemd[1]: /etc/systemd/system/dynatraceautoupdater.service:8: PIDFile= references a path below legacy directory /var/run/, updat\>_  
_Sep 16 19:44:24 ip-10-x-x-xx.us-west-2.compute.internal systemd[1]: /etc/systemd/system/dynatraceautoupdater.service:8: PIDFile= references a path below legacy directory /var/run/, updat\>_  
_Sep 16 19:46:34 ip-10-x-x-xx.us-west-2.compute.internal systemd[1]: /etc/systemd/system/dynatraceautoupdater.service:8: PIDFile= references a path below legacy directory /var/run/, updat\>_  
_lines 1-18/18 (END)_

_[root@ip-10-x-x-xx gateway]# **systemctl status dynatracegateway** _  
_○ dynatracegateway.service - Dynatrace ActiveGate service_  
_Loaded: loaded (/etc/systemd/system/dynatracegateway.service; enabled; preset: disabled)_  
_Active: inactive (dead) since Mon 2024-09-16 19:46:41 UTC; 10min ago_  
_Process: 1783928 ExecStart=/opt/dynatrace/gateway/dynatracegateway start (code=exited, status=0/SUCCESS)_  
_Process: 1783984 ExecStop=/opt/dynatrace/gateway/dynatracegateway stop (code=exited, status=0/SUCCESS)_  
_CPU: 1.263s_

_Sep 16 19:46:39 ip-10-x-x-xx.us-west-2.compute.internal systemd[1]: Starting Dynatrace ActiveGate service…_  
_Sep 16 19:46:40 ip-10-x-x-xx.us-west-2.compute.internal dynatracegateway[1783928]: 16/09 19:46:40 (1.295.27.20240715-230200) Dynatrace ActiveGate started._  
_Sep 16 19:46:40 ip-10-x-x-xx.us-west-2.compute.internal dynatracegateway[1783928]: 16/09 19:46:40 (1.295.27.20240715-230200)_  
_Sep 16 19:46:41 ip-10-x-x-xx.us-west-2.compute.internal dynatracegateway[1783984]: 16/09 19:46:41 (1.295.27.20240715-230200)_  
_Sep 16 19:46:41 ip-10-x-x-xx.us-west-2.compute.internal systemd[1]: dynatracegateway.service: Deactivated successfully._  
_Sep 16 19:46:41 ip-10-x-x-xx.us-west-2.compute.internal systemd[1]: Started Dynatrace ActiveGate service._  
_Sep 16 19:46:41 ip-10-x-x-xx.us-west-2.compute.internal systemd[1]: dynatracegateway.service: Consumed 1.263s CPU time._

_[root@ip-10-x-x-xx gateway]#_

---

<div class="post-metadata">

**Author:** ![dyn98007](https://avatars.discourse-cdn.com/v4/letter/d/5daacb/32.png) [@dyn98007](https://community.dynatrace.com/u/dyn98007)\
**Post date:** [September 16, 2024, 11:26pm UTC](https://community.dynatrace.com/t/dynatracegateway-service-deactivated-successfully/47670/7 "2024-09-16T23:26:36Z")

</div>

**Update** : Issue has been resolved.

# cat dynatracegateway-start\_20240914-025712.log  
_/opt/dynatrace/gateway/dynatracegateway: line 194: /opt/dynatrace/gateway/launcher/dynatracegateway: Operation not permitted_

"_Operation not permitted"_&nbsp;error was fixed by adding the uid of&nbsp;_ **dtuserag** _&nbsp;to the allow rules in&nbsp;**fapolicyd (Details in the screenshot).**

_[root@ip-100-x-x-xx ssm-user]# systemctl status dynatracegateway_  
_● dynatracegateway.service - Dynatrace ActiveGate service_  
_Loaded: loaded (/etc/systemd/system/dynatracegateway.service; enabled; preset: disabled)_  
_Active: active (running) since Mon 2024-09-16 20:54:52 UTC; 56min ago_  
_Process: 1853423 ExecStart=/opt/dynatrace/gateway/dynatracegateway start (code=exited, status=0/SUCCESS)_  
_Main PID: 1853677 (dynatracegatewa)_  
_Tasks: 169 (limit: 20000)_  
_Memory: 979.9M_  
_CPU: 1min 44.385s_  
_CGroup: /system.slice/dynatracegateway.service_  
_├─1853677 /opt/dynatrace/gateway/launcher/dynatracegateway -bg -config /var/lib/dynatrace/gateway/config/dynatracegateway.ini_  
_└─1853681 /opt/dynatrace/gateway/jre/bin/java -Dcom.compuware.apm.WatchDogTimeout=180 -classpath “./lib/\*” --add-opens=java.base/java.lang=ALL-UNNAMED -Xms1024M -XX:ErrorFile\>_

_Sep 16 20:54:51 ip-100-x-x-xx.us-west-2.compute.internal systemd[1]: Starting Dynatrace ActiveGate service…_  
_Sep 16 20:54:51 ip-100-x-x-xx.us-west-2.compute.internal dynatracegateway[1853423]: 16/09 20:54:51 (1.295.27.20240715-230200) Dynatrace ActiveGate started._  
_Sep 16 20:54:52 ip-100-x-x-xx.us-west-2.compute.internal dynatracegateway[1853423]: 16/09 20:54:52 (1.295.27.20240715-230200)_  
_Sep 16 20:54:52 ip-100-x-x-xx.us-west-2.compute.internal systemd[1]: Started Dynatrace ActiveGate service._  
_lines 1-16/16 (END)_

**More on RHEL fapolicyd can be read&nbsp;[here](https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html/security_hardening/assembly_blocking-and-allowing-applications-using-fapolicyd_security-hardening#introduction-to-fapolicyd_assembly_blocking-and-allowing-applications-using-fapolicyd)**

 ![fapolicyd.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/7/f/7f4ef11e8cc46243eabdb561538366eb21858513.jpeg)
