NetXMS Support Forum

English Support => General Support => Topic started by: Egert143 on May 18, 2020, 07:46:12 PM

Title: Agent update fails when cpu @ 100%
Post by: Egert143 on May 18, 2020, 07:46:12 PM
Hello

When upgrading agents with NetXms, i get failed update when target machine is @ 100% cpu usage, even when trying multiple times. When i pause the app that is causing high load then agent upgrade works fine. What could cause this ?

Egert
Title: Re: Agent update fails when cpu @ 100%
Post by: Victor Kirhenshtein on May 25, 2020, 10:46:31 AM
Hi,

on what OS and what agent version?

Best regards,
Victor
Title: Re: Agent update fails when cpu @ 100%
Post by: Egert143 on May 25, 2020, 12:43:02 PM
Agent is installed on windows 10 machine. This bug has been around for as long as i have been using netxms (so oldest agent i tryed should be 2.2.16) and currently i am using 3.3.314.

Maybe its somekinde timeout? Because upgrade proccess takes longer when machine is under full load ?



Egert
Title: Re: Agent update fails when cpu @ 100%
Post by: Filipp Sudanov on May 26, 2020, 04:07:10 AM
Are you upgrading via GUI, or via https://www.netxms.org/documentation/adminguide/upgrade.html#centralized-agent-upgrade ?
If it's GUI, can you record a video to see at what stage the installation is failing?
Title: Re: Agent update fails when cpu @ 100%
Post by: Egert143 on May 26, 2020, 08:45:34 AM
I am upgrading with "Package Manager".
Title: Re: Agent update fails when cpu @ 100%
Post by: Filipp Sudanov on May 26, 2020, 05:48:43 PM
Can you set DebugLevel=6 in agent configuration file and show agent log during upgrade attempt?
Title: Re: Agent update fails when cpu @ 100%
Post by: Egert143 on May 27, 2020, 10:56:15 AM
In Package Manager:

Upgrade log:

Title: Re: Agent update fails when cpu @ 100%
Post by: Filipp Sudanov on June 10, 2020, 02:37:46 PM
There will be some changes in file upload process in v. 3.4 that should be out within a week. Please check if this problem occurs in 3.4 and give us an update.
Title: Re: Agent update fails when cpu @ 100%
Post by: Egert143 on June 19, 2020, 01:01:05 PM
Seems that issue is still present. Active agent version is 3.3.314 and trying to upgrade to 3.4.178 with package manager. After few seconds i get message failed - File transfer failed.
Title: Re: Agent update fails when cpu @ 100%
Post by: Egert143 on September 28, 2020, 10:41:17 AM
Hello

With versions 3.5.90 the issue is still present, agents with high cpu usage cant be upgraded. Error message is "File transfer failed".

Egert
Title: Re: Agent update fails when cpu @ 100%
Post by: Egert143 on April 28, 2021, 09:51:51 AM
Hello

Reviving old topic.

With version 3.8.0, agent 3.8.262 (old agent version trying to upgrade 3.5.90) package manager update still fails when target cpu is 100% usage or very near to it (showing security camera feeds). Can i assist with logs or something to get this issue resolved?

Egert
Title: Re: Agent update fails when cpu @ 100%
Post by: Victor Kirhenshtein on April 29, 2021, 09:28:08 AM
Hi,

try to run file transfer manually from server with nxupload command line tool - when will it stop and with what error? If possible, capture TCP session between server and agent used for upload and provide capture file.

Best regards,
Victor
Title: Re: Agent update fails when cpu @ 100%
Post by: Egert143 on April 29, 2021, 10:03:22 AM
First time using that tool, so hope i did it correctly.

Command i ran: "nxupload TargetIP Path\nxagent-3.8.262-x64.exe". It stops with "Upload: 7178488" and then "error: 408: Request timeout".

Egert
Title: Re: Agent update fails when cpu @ 100%
Post by: Victor Kirhenshtein on April 29, 2021, 10:16:56 AM
And what is actual file size?
Title: Re: Agent update fails when cpu @ 100%
Post by: Egert143 on April 29, 2021, 10:20:40 AM
nxagent-3.8.262-x64.exe size is 6,84MB
Title: Re: Agent update fails when cpu @ 100%
Post by: Victor Kirhenshtein on May 18, 2021, 05:43:12 PM
It looks like file is actually transferred, but sender just don't wait enough for final confirmation, which is probably take more time due to target system load. I have increased wait time for confirmation on file upload, hopefully it will help. Change will be included into next patch release.

Best regards,
Victor