fusioninventory-agent icon indicating copy to clipboard operation
fusioninventory-agent copied to clipboard

Service restarts/terminates on specific windows host

Open vazome opened this issue 3 years ago • 8 comments
trafficstars

Windows logs gave us: The FusionInventory Agent service terminated unexpectedly. It has done this 1 time(s) And fusioninventory logs shows it's stuck for 12 hours:

[Fri Nov 26 12:57:16 2021][info] target server0: server https://sub.example.domain/plugins/fusioninventory/
[Fri Nov 26 12:57:16 2021][info] sending prolog request to server0
[Sat Nov 27 00:11:17 2021][info] FusionInventory Agent service starting

What can cause such a delay or even termination?

vazome avatar Dec 07 '21 08:12 vazome

do you have enough memory on you device?

ddurieux avatar Dec 07 '21 08:12 ddurieux

@ddurieux Yeah it's enough, I have not seen a spike

vazome avatar Dec 07 '21 12:12 vazome

memory and disk space?

ddurieux avatar Dec 07 '21 12:12 ddurieux

It was ok with resources. Disk space was available at the moment same with memory.

vazome avatar Dec 07 '21 13:12 vazome

is it the agent version 32bits or 64 bits? What version of Windows?

ddurieux avatar Dec 07 '21 13:12 ddurieux

Agent is 64 bit Microsoft Windows Server 2012 R2 Standard is 64 bit

vazome avatar Dec 07 '21 16:12 vazome

@ddurieux could there be a potential cause or maybe I can search for some additional logs?

vazome avatar Dec 10 '21 10:12 vazome

Hi @vazome are you running the agent as a service ? For such case, there's a way to catch perl errors:

  • Rename the file fusioninventory-win32-service.rc.sample under C:\Program Files\FusionInventory\perl\bin just removing .sample extension.
  • Restart the service
  • You should see stderr.txt and stdout.txt files under C:\Program Files\FusionInventory\logs
  • If the error occurs during inventory, force an inventory and check there if you see some perl errors, or wait for the crash and check these files.

g-bougard avatar Dec 10 '21 10:12 g-bougard