<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error while adding the new node to managed cluster in Dynatrace Managed Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114929#M1391</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://answers.dynatrace.com/users/5499/view.html"&gt;@Radoslaw S.&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;We are using the Redhat Linux v7.6.&lt;BR /&gt;&lt;BR /&gt;I can see the parameters which you mention is added to sudoers files.&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;[root@node mayana]# cat /etc/sudoers |grep /etc/sudoers.d&lt;/STRONG&gt;&lt;BR /&gt;## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)&lt;BR /&gt;#includedir /etc/sudoers.d&lt;BR /&gt;#include /etc/sudoers.d/dynatrace&lt;BR /&gt;&lt;STRONG&gt;[root@node mayana]# cat /etc/sudoers.d/dynatrace |grep dyn&lt;/STRONG&gt;&lt;BR /&gt;Defaults:dynatrace !requiretty&lt;BR /&gt;Defaults:dynatrace !env_reset&lt;BR /&gt;dynatrace ALL=(root:root) EXEC: ALL, NOPASSWD: /opt/dtrun/dtrun&lt;BR /&gt;&lt;STRONG&gt;[root@node mayana]#&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;Also the documentation link which you have added its not opening.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Jul 2020 13:46:52 GMT</pubDate>
    <dc:creator>mayana_s_khan</dc:creator>
    <dc:date>2020-07-22T13:46:52Z</dc:date>
    <item>
      <title>Error while adding the new node to Managed cluster</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114926#M1388</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am getting below error while adding the node to cluster. I am running the installer script as root user.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;Installation failed, with status: installer unpacked, system verified, connected to Mission Control, connected to Dynatrace cluster, added to Dynatrace cluster, agent downloaded after 2 minutes 44 seconds.&lt;BR /&gt;Exit code: 5&lt;BR /&gt;&lt;BR /&gt;Errors:&lt;BR /&gt;Installation failed, with error Dtrun doesn't work properly, check if command "/opt/dtrun/dtrun" is permitted to run with elevated privileges. The dtrun validation failed with error: sudo: PAM account management error: Authentication service cannot retrieve authentication info&lt;/PRE&gt;
&lt;P&gt;Installation logs&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;2020-07-22 09:22:42 UTC &amp;nbsp;old: RUNNER_PATH=''&lt;BR /&gt;2020-07-22 09:22:42 UTC &amp;nbsp;new: RUNNER_PATH=/opt/dtrun/run&lt;BR /&gt;2020-07-22 09:22:42 UTC &amp;nbsp;old: PRODUCT_USER=''&lt;BR /&gt;2020-07-22 09:22:42 UTC &amp;nbsp;new: PRODUCT_USER=dynatrace&lt;BR /&gt;2020-07-22 09:22:42 UTC Setting files in path "/opt/dtrun/validate" as executable ...&lt;BR /&gt;2020-07-22 09:22:42 UTC Setting restricted permissions for path "/opt/dtrun/validate" ...&lt;BR /&gt;2020-07-22 09:22:42 UTC Preparing dtrun config ..&lt;BR /&gt;2020-07-22 09:22:42 UTC Saving config file: "/opt/dtrun/dtrun.conf"..&lt;BR /&gt;2020-07-22 09:22:42 UTC Setting restricted permissions for path "/opt/dtrun/dtrun.conf" ...&lt;BR /&gt;2020-07-22 09:22:42 UTC Saving list of commands in file .. done&lt;BR /&gt;2020-07-22 09:22:42 UTC Preparing dtrun config .. done&lt;BR /&gt;2020-07-22 09:22:42 UTC Preparing sudo rights .. skipped, different tool is used in system: $CMD&lt;BR /&gt;2020-07-22 09:22:42 UTC Installing dtrun tool .. done&lt;BR /&gt;2020-07-22 09:22:42 UTC Validating dtrun ..&lt;BR /&gt;2020-07-22 09:22:42 UTC Validating su privileges command "$CMD" ...&lt;BR /&gt;2020-07-22 09:22:42 UTC Validating su privileges command ... success&lt;BR /&gt;2020-07-22 09:22:42 UTC Executing command "/opt/dtrun/run" as user "dynatrace:dynatrace" ...&lt;BR /&gt;/opt/dtrun/run: line 20: /opt/dtrun/dtrun: Permission denied&lt;BR /&gt;2020-07-22 09:22:42 UTC Executing command as user ... failed with exitcode 126&lt;BR /&gt;2020-07-22 09:22:42 UTC &amp;nbsp; Launching /opt/dtrun/run as child process failed&lt;BR /&gt;2020-07-22 09:22:42 UTC Executing command "/opt/dtrun/run" as user "dynatrace:dynatrace" ...&lt;BR /&gt;/opt/dtrun/run: line 20: /opt/dtrun/dtrun: Permission denied&lt;BR /&gt;2020-07-22 09:22:42 UTC Executing command as user ... failed with exitcode 126&lt;BR /&gt;2020-07-22 09:22:42 UTC &amp;nbsp; Launching /opt/dtrun/run via runuser command failed&lt;BR /&gt;2020-07-22 09:22:42 UTC Validating dtrun .. failed&lt;BR /&gt;2020-07-22 09:22:42 UTC Installation failed, with error Dtrun doesn't work properly, check if command "/opt/dtrun/dtrun" is permitted to run with elevated privileges. The dtrun validation failed with error: /opt/dtrun/run: line 20: /opt/dtrun/dtrun: Permission denied&lt;BR /&gt;&lt;BR /&gt;2020-07-22 09:22:42 UTC Removing this node from Dynatrace cluster ...&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please suggest how can i proceed further.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://answers.dynatrace.com/users/15061/view.html" rel="user" target="_blank"&gt;@Sebastian K.&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 09:35:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114926#M1388</guid>
      <dc:creator>mayana_s_khan</dc:creator>
      <dc:date>2023-05-25T09:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding the new node to managed cluster</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114927#M1389</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Some questions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. What system do you use?&lt;/P&gt;&lt;P&gt;2. Do you use Selinux policy ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;It looks like that the root cause here is that &lt;EM&gt;dynatrace&lt;/EM&gt; user is not able to gain elevated privileges for command /opt/dtrun/dtrun&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;During Managed installation these privileges are automatically added to sudo config (if it's present and active in system) in following steps&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Installer looks for the following line in /etc/sudoers file:&lt;PRE&gt;#includedir /etc/sudoers.d&lt;/PRE&gt;&lt;P&gt;If it's not present, it's added at the end of the file&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Installer creates sudo config file /etc/sudoers.d/dynatrace with following contents:&lt;PRE&gt;Defaults:dynatrace !requiretty&lt;BR /&gt;Defaults:dynatrace !env_reset&lt;BR /&gt;dynatrace ALL=(root:root) NOPASSWD:/opt/dtrun/dtrun&lt;/PRE&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;These settings give the &lt;EM&gt;dynatrace&lt;/EM&gt; user the ability to launch command /opt/dtrun/dtrun with root rights, without asking for password.&lt;/P&gt;&lt;P&gt;The privileges available to Managed user can be always validated via /opt/dtrun/validate command (it works also when launched by root) - it should return the following message: Dtrun validation succeeded.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 13:30:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114927#M1389</guid>
      <dc:creator>Radoslaw_Szulgo</dc:creator>
      <dc:date>2020-07-22T13:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding the new node to managed cluster</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114928#M1390</link>
      <description>&lt;P&gt;Just a blind guess: You might need to include in your privilege system /opt/dtrun/* files to resolve this.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 07:20:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114928#M1390</guid>
      <dc:creator>Radoslaw_Szulgo</dc:creator>
      <dc:date>2021-08-25T07:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding the new node to managed cluster</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114929#M1391</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.dynatrace.com/users/5499/view.html"&gt;@Radoslaw S.&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;We are using the Redhat Linux v7.6.&lt;BR /&gt;&lt;BR /&gt;I can see the parameters which you mention is added to sudoers files.&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;[root@node mayana]# cat /etc/sudoers |grep /etc/sudoers.d&lt;/STRONG&gt;&lt;BR /&gt;## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment)&lt;BR /&gt;#includedir /etc/sudoers.d&lt;BR /&gt;#include /etc/sudoers.d/dynatrace&lt;BR /&gt;&lt;STRONG&gt;[root@node mayana]# cat /etc/sudoers.d/dynatrace |grep dyn&lt;/STRONG&gt;&lt;BR /&gt;Defaults:dynatrace !requiretty&lt;BR /&gt;Defaults:dynatrace !env_reset&lt;BR /&gt;dynatrace ALL=(root:root) EXEC: ALL, NOPASSWD: /opt/dtrun/dtrun&lt;BR /&gt;&lt;STRONG&gt;[root@node mayana]#&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;Also the documentation link which you have added its not opening.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 13:46:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114929#M1391</guid>
      <dc:creator>mayana_s_khan</dc:creator>
      <dc:date>2020-07-22T13:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding the new node to managed cluster</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114930#M1392</link>
      <description>&lt;P&gt;This should help then: &lt;A href="https://access.redhat.com/solutions/3679241"&gt;https://access.redhat.com/solutions/3679241&lt;/A&gt; :&lt;BR /&gt;Please add sudo to the list of allowed services in your access control rules and make sure users do not have an expired password even in cases where ssh-keys are used for the login.&lt;/P&gt;&lt;P&gt;Root Cause&lt;BR /&gt;With sudo-1.8.23-1.el7 and later, the tool now evaluates the PAM account stack and therefore also enforces any account restrictions enforced through PAM. This affects any time and host based access control as well as password expiration.&lt;/P&gt;&lt;P&gt;Please also see the Red Hat Enterprise Linux 7.6 release notes:&lt;/P&gt;&lt;P&gt;sudo now runs PAM stack even when no authentication is required&lt;/P&gt;&lt;P&gt;With this update, the sudo utility runs Pluggable Authentication Module (PAM) account management modules even when the "NOPASSWD" option is configured in the policy. &amp;gt; This enables checking for restrictions imposed by PAM modules outside of the authentication phase. As a result, PAM modules, such as pam_time, now work properly in the described scenario.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;PS sorry for the link - it's incorrect one.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 14:25:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114930#M1392</guid>
      <dc:creator>Radoslaw_Szulgo</dc:creator>
      <dc:date>2020-07-22T14:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding the new node to managed cluster</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114931#M1393</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://answers.dynatrace.com/users/5499/view.html"&gt;@Radoslaw S.&lt;/A&gt; Thanks for your help, I will ask linux admin to necessary changes. once the changes has been made i will give a try &lt;/P&gt;</description>
      <pubDate>Wed, 22 Jul 2020 14:43:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114931#M1393</guid>
      <dc:creator>mayana_s_khan</dc:creator>
      <dc:date>2020-07-22T14:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error while adding the new node to managed cluster</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114932#M1394</link>
      <description>&lt;P&gt;Actually we had two dynatrace users in existing cluster one dynatrace user in AD and second locally created dynatrace user which was causing issue in sudo. &lt;BR /&gt;&lt;BR /&gt;We have removed the local dynatrace users from all cluster nodes and change the owner of associated directories to AD dynatrace user and restarted the cluster nodes. Then successfully added the new node to cluster &lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 11:35:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-Managed-Q-A/Error-while-adding-the-new-node-to-Managed-cluster/m-p/114932#M1394</guid>
      <dc:creator>mayana_s_khan</dc:creator>
      <dc:date>2020-08-27T11:35:34Z</dc:date>
    </item>
  </channel>
</rss>

