Author Topic: Centralized agent upgrade  (Read 506 times)

Meandmybrain

  • Newbie
  • *
  • Posts: 20
    • View Profile
Centralized agent upgrade
« 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



Tatjana Dubrovica

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 268
    • View Profile
Re: Centralized agent upgrade
« Reply #1 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.
« Last Edit: December 04, 2019, 07:53:09 pm by Tatjana Dubrovica »

Meandmybrain

  • Newbie
  • *
  • Posts: 20
    • View Profile
Re: Centralized agent upgrade
« Reply #2 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
« Last Edit: December 05, 2019, 10:46:01 am by Meandmybrain »

Tatjana Dubrovica

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 268
    • View Profile
Re: Centralized agent upgrade
« Reply #3 on: December 08, 2019, 02:27:57 pm »