NetXMS Support Forum

English Support => General Support => Topic started by: Meandmybrain on December 04, 2019, 05:03:59 PM

Title: Centralized agent upgrade
Post by: Meandmybrain on December 04, 2019, 05:03:59 PM
Hi,

for the first time I'm going to use the centralized agent upgrade, but it won't work.

The upgrade files are uploaded and shown in the packetmanager.
After choosing the node I want to upgrade immediately "Unable to start upgrade process" is shown.
In the destinationfolder at the node (win server 2016), a new file "nxagent-xxx-x64.exe" is created but with zero bytes. (win server 2016/2012R2)
Log says that "nxagent-xxx-x64.exe" could not be executed. -makes sense at this point ;)

So option one is an error while downloading this file to node, option two maybe is an error uploading the file to netxms server.
Could you please tell me where the upgrade file is stored "usually" on netxms server (Ubuntu 18.04 LTS)?
Besides that I'm open for other thoughts.

Best regards
Sebastian


Title: Re: Centralized agent upgrade
Post by: Tatjana Dubrovica on December 04, 2019, 07:51:21 PM
It should be under: var/lib/netxms/packages/

Found bug that might cause it. npi file should be in the same folder with the file that should be uploaded (check that name of the file inside npi file is the same as the actual file name). In case if file not found package manager shows error, but sill uploads file with 0 sizes and adds it to the list.

Please check if it is your case.
Title: Re: Centralized agent upgrade
Post by: Meandmybrain on December 05, 2019, 10:36:13 AM
Hi,

under var/lib/netxms/packages/ is a file called "nxagent-3.1.241-x64.exe" with 0 size.
Filename in npi is exactly the name of the agent upgrade exe.
Additional info: i'm not able to get access to /packages using "cd". Is this a normal behavior? I can only show the content of /packes using "sudo ls -la /var/lib/netxms/packages"
After I copied "nxagent-3.1.241-x64.exe" to /packages via terminal, deployment worked.
So it seems to be a problem while uploading the files using management console (i'm using web console).

Best regards
Sebastian
Title: Re: Centralized agent upgrade
Post by: Tatjana Dubrovica on December 08, 2019, 02:27:57 PM
Issue created: https://track.radensolutions.com/issue/NX-1727