ArcGIS Monitor 2024.1.1 on Linux - Failed to retrieve license information - Workaround

112
0
Wednesday
Labels (1)
MarceloMarques
Esri Regular Contributor
1 0 112

Platform

RedHat Linux 9.5
ArcGIS Monitor 2024.1.1

Problem

ArcGIS Monitor 2024.1.1 - Failed to retrieve license information

Description

I can install monitor without any issue.

su - root
--install the software silently
cd /data/installers/monitor/Monitor_Server_rpm
./ArcGIS-Monitor-server-2024.1.1.704-rpm.bin -l yes --nox11
 

Then, I can authorize monitor. See the documentation for "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
 

I can check that the license is fine.

MarceloMarques_3-1747843122836.png

I can finish up the setup of monitor.

su - root
--create the initial administrator account
# /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

--connect Monitor Server to the database 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
 

I can then log in to the monitor url

https://PS026033:30443/arcgis/monitor

But a warning message keep showing up "Failed to retrieve license information"

 

MarceloMarques_4-1747843166336.png

MarceloMarques_5-1747843213193.png

Troubleshooting

ArcGIS Monitor Logs show the message "installdir does not exist".

MarceloMarques_6-1747843252164.png

MarceloMarques_7-1747843316878.png

enabled debug mode log level in ArcGIS Monitor and tried to refresh the license from the Monitor web app.

I got a few more messages that helped me narrow down the issue.

"Checking license 240 at /usr/lib/arcgis/monitor/server/framework/ESRI/License24.0"

Cause of the Problem

The ArcGIS Monitor Service runs under the "arcgis" user.

Hence, the "arcgis" user must own the /usr/lib/arcgis/monitor/server/framework/ESRI/License24.0/sysgen/keycodes file.

But when we authorize, we use the root account, because the "arcgis" user is a service account just to run the 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.

MarceloMarques_0-1747843427360.png

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.

Tags (2)
Contributors
About the Author
| Marcelo Marques | Esri Principal Product Engineer | Cloud & Database Administrator | OCP - Oracle Database Certified Professional | 32 years' experience | www.linkedin.com/in/mmarquesbr | "I embarked on my journey with Esri Technology in 1992, and since 1997, I have been working with ArcSDE Geodatabases, right from its initial release." | " a successful Enterprise ArcGIS application deployment starts with a strong physical database design and best database administration practices" | " I do not fear computers. I fear the lack of them." - Isaac Asimov |