Plattform
RedHat Linux 9.5
ArcGIS Monitor 2024.1.1
Problem
ArcGIS Monitor 2024.1.1 - Lizenzinformationen konnten nicht abgerufen werden
Beschreibung
Ich kann Monitor ohne Probleme installieren.
su - root
--installiere die Software stillschweigend
cd /data/installers/monitor/Monitor_Server_rpm
./ArcGIS-Monitor-server-2024.1.1.704-rpm.bin -l yes --nox11
Dann kann ich Monitor autorisieren. Siehe die Dokumentation für "Authorize Monitor Server silently.
https://doc.arcgis.com/en/monitor/latest/install/linux/authorize-arcgis-monitor-server.htm
su - root
# /usr/lib/arcgis/monitor/server/tools/authorizeSoftware
-f /data/installers/license/Monitor.ecp
Ich kann überprüfen, dass die Lizenz in Ordnung ist.
Ich kann die Einrichtung von Monitor abschließen.
su - root
--erstelle das initiale Administrator-Konto
# /usr/lib/arcgis/monitor/server/bin/arcgis-monitor-server
admin:security:users:add --username agsmonadmin --password "*****"
--name-first AGSMON --name-last ADMIN --email alertmon@acme.com --role admin
--verbinde Monitor Server mit dem Datenbank-Repository
# /usr/lib/arcgis/monitor/server/bin/arcgis-monitor-server admin:database:register
--address mondbpg.acme.com:5432 --database agsmondb2
--username agmon --password "*******" --encrypt false
# systemctl status arcgis-monitor-server
Dann kann ich mich bei der Monitor-URL anmelden
https://PS026033:30443/arcgis/monitor
Aber eine Warnmeldung erscheint immer wiedera0"Failed to retrieve license information"
Fehlerbehebung
ArcGIS Monitor-Protokolle zeigen die Meldunga0"installdir existiert nicht".
Icha0habe den Debug-Modus Log-Level in ArcGIS Monitor aktiviert und versucht, die Lizenz über die Monitor-Webanwendung zu aktualisieren.
Ich erhielt einige weitere Meldungen, die mir halfen, das Problem einzugrenzen.
"Checking license 240 at /usr/lib/arcgis/monitor/server/framework/ESRI/License24.0"
Ursache des Problems
Der ArcGIS Monitor-Dienst läuft unter dem Benutzer "arcgis".
Daher muss der Benutzer "arcgis" Eigentümer der Datei seina0/usr/lib/arcgis/monitor/server/framework/ESRI/License24.0/sysgen/keycodesa0Datei.
Aber wenn wir autorisieren, verwenden wir das Konto root, weil der Benutzer "arcgis" ein Dienstkonto ist, das nur zum Ausführen des arcgis-monitor-server service, and we cannot log in as the "arcgis" user.
su - root
/usr/lib/arcgis/monitor/server/tools/authorizeSoftware
-f /data/installers/license/Monitor.ecp
Hence, the entire "framework" folder and subfolders are owned by root:root.
Therefore the "arcgis" user could not read the "keycodes" file.
Workaround
The workaround was quite simple.
I changed the owner of the "framework" folder and subfoders and files to be arcgis:arcgis.
su - root
chown -R arcgis:arcgis /usr/lib/arcgis/monitor/server/framework
Now, ArcGIS Monitor can validate the license just fine.
The "arcgis" user is the service account, we cannot log in as "arcgis" user, but we can run the authorization tool as "arcgis" using "sudo -u arcgis"
su - root
# sudo -u arcgis /usr/lib/arcgis/monitor/server/tools/authorizeSoftware
-f /data/installers/license/Monitor.ecp
I hope this helps if you encounter the same issue.