News:

We really need your input in this questionnaire

Main Menu

Centralized Agent Upgrade Fails

Started by ChrisC, October 29, 2021, 01:59:28 PM

Previous topic - Next topic

ChrisC

I have followed the instructions here:
https://www.netxms.org/documentation/adminguide/upgrade.html?highlight=upgrade%20agent#centralized-agent-upgrade, but when I try and deploy the agent, none of them work, and I get the message "Agent's version doesn't match package version after upgrade"
I am running NetXMS Server 3.9.298, and am trying to install the agent 3.9.334 and will upgrade the server soon afterwards.
I have never tried this before.

Looking at the agent logs, it seems to be receiving the file in chunks, which are then merged back into the original .exe.
I see this in the log also:
2021.10.29 11:33:38.769 *D* [procexec           ] ProcessExecutor::execute(): process "CMD.EXE /C "C:\NetXMS\var\nxagent-3.9.334-x64.exe" /VERYSILENT /SUPPRESSMSGBOXES /LOG /FORCECLOSEAPPLICATIONS /NORESTART" started
which I guess is good news, but I can't see anything obvious after this.

All agents I am trying to upgrade are on the same LAN, so I doubt it's a network problem.
I ran the above command manually on one of the failing servers, and it worked.


Filipp Sudanov

There was a bug recently that upgrade command was actually not executed.
The upgrade however is uploaded.
You can create agent action that executes CMD.EXE /C "C:\NetXMS\var\nxagent-3.9.334-x64.exe" /VERYSILENT /SUPPRESSMSGBOXES /LOG /FORCECLOSEAPPLICATIONS /NORESTART
and it should do the job.
You can create agent configuration policy in a template and apply this template to your nodes - this way you can distribute this action to your agents.

ChrisC