Select to view content in your preferred language

Error of Agent is already registered

113
4
Jump to solution
Tuesday
ElviaCortes
Emerging Contributor

Hello, since I couldn't successfully upgrade to Monitor 2024.1.1 as it seems there is some database corruption.  I went ahead and decided to start with a fresh install on a new machine with a new database.  My issue is when I started adding my agents again, I am unable to register them with the new machine.  It says that Agent is already registered.  I started with the server machines and before doing the registration I went into the admin properties of server and removed the monitorSystemId and even deleted the usage reports.  Restarted server but I am still unable to register the agent.

Can anybody point me into the steps to follow for this approach for server and portal?  

I would really appreciate your help.

Elvia

0 Kudos
1 Solution

Accepted Solutions
ElviaCortes
Emerging Contributor

 

Hi @DerekLaw, I was able to fix my issue by deleting the " C:\Users\[ArcGISMonitorServiceAccount]\AppData\Local\ESRI\ArcGISMonitor\config-store-client" folder before re-installing the client software.

View solution in original post

4 Replies
DerekLaw
Esri Esteemed Contributor

Hi @ElviaCortes,

My issue is when I started adding my agents again, I am unable to register them with the new machine.  It says that Agent is already registered. 

Can you please try and re-register the AM Agent, including the --agent-id flag? 

If the agent is already present in ArcGIS Monitor Server, then you need to include this flag, followed by the ID of the agent in question. You can find the agent ID by going to ArcGIS Monitor Server > Monitoring > Agents, and enabling the ID column:

DerekLaw_0-1747228522255.png

 

To re-register the agent, the command should look like this:

./arcgis-monitor-agent.exe admin:system:register --server-url https://agmserver:30443/arcgis --username admin --password MyPassword!1 --agent-id 2 

Hope this helps,



0 Kudos
ElviaCortes
Emerging Contributor

Hello @DerekLaw , thank you for your suggestion.  I tried that, but it doesn't work.  The error now is "Selected Agen is not available for registration".  The main thing is that ArcGIS Server still thinks that is registered to the old server monitor hostname.  This is a new install of monitor server.  Both server and agent have the same version of 2024.1.1.

0 Kudos
ElviaCortes
Emerging Contributor

 

Hi @DerekLaw, I was able to fix my issue by deleting the " C:\Users\[ArcGISMonitorServiceAccount]\AppData\Local\ESRI\ArcGISMonitor\config-store-client" folder before re-installing the client software.

DerekLaw
Esri Esteemed Contributor

Hi @ElviaCortes,

That's good to hear. I was going to ask that you please check the ArcGIS Monitor config-store information in your Windows user profile next. But you already found the location. Great. 

0 Kudos