Hello,
I have a problem with one offline environment. It wants to do a server upgrade and I get the problem of no permissions for the Dynatrace user to the /tmp directory.
Error: Precondition verification failed on host ‘IP’ due to: Script has returned code 0 with status OK and with details: sudo: ldap_sasl_bind_s(): Can’t contact LDAP server
2023-04-17 11:25:50 UTC 0 Starting Dynatrace 1.262.154.20230324-154358 installer …
2023-04-17 11:25:50 UTC 10 Verifying system compatibility …
2023-04-17 11:25:50 UTC 20 Verifying disk space …
2023-04-17 11:25:50 UTC 25 Verifying Dynatrace directories …
2023-04-17 11:25:50 UTC 50 Verifying system privileges …
2023-04-17 11:26:21 UTC 70 Verifying system connectivity …
2023-04-17 11:26:21 UTC 80 Checking user permissions …
2023-04-17 11:26:31 UTC 100 System verification failed, with status: installer unpacked, system verified
FAILED
Dynatrace user dynatrace:dynatrace doesn’t have access to following directories: /tmp - cannot access. Make sure they are accessible and permissions are granted properly.
. Precondition verification failed on host ‘IP’ due to: Script has returned code 0 with status OK and with details: sudo: ldap_sasl_bind_s(): Can’t contact LDAP server
The server was installed with the root account. Nothing has been changed on the server.
Interestingly when I manually log in to this user I can perform all operations normally. In addition, DT server itself created a directory there despite the information that it has no permissions.
Dynatrace-server [root@dynatrace-server dynatrace] 13:29# sudo su - dynatrace
sudo: ldap_sasl_bind_s(): Can’t contact LDAP server
su: warning: cannot change directory to /home/dynatrace: No such file or directory
Dynatrace-server [dynatrace@dynatrace-server dynatrace] 13:30$ cd /tmp
Dynatrace-server [dynatrace@dynatrace-server tmp] 13:30$ ll
total 0
drwxr-xr-x 2 dynatrace dynatrace 53 Apr 16 23:08 hsperfdata_dynatrace
Dynatrace-server [dynatrace@dynatrace-server tmp] 13:30$ mkdir new
Dynatrace-server [dynatrace@dynatrace-server tmp] 13:30$ cd new
Dynatrace-server [dynatrace@dynatrace-server new] 13:30$ vi aa
Dynatrace-server [dynatrace@dynatrace-server new] 13:30$ ll
total 4
-rw-r----- 1 dynatrace dynatrace 17 Apr 17 13:30 aa
Have any of you had this problem?
Radek