You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2023-05-16 21:43:48

alexniko
Member
Registered: 2023-05-16
Posts: 11

Can not registeg agent again on GLPI server

I deleted agent from the computer and delete agent from server. Reboot computer and install agent again. Agent not register on the server. No errors on computer side. Here is log

[Tue May 16 22:07:38 2023][debug] Running in background mode
[Tue May 16 22:07:38 2023][info] target server0: next run: Wed May 17 14:32:29 2023 - Xttps://glpi.XXX.XXX/front/inventory.php
[Tue May 16 22:07:48 2023][debug] target server0: init event for Deploy task
[Tue May 16 22:07:49 2023][debug] [target server0] New storage maintenance event on deploy task
[Tue May 16 22:07:49 2023][debug2] [target server0] Event scheduled in 120 seconds
[Tue May 16 22:07:50 2023][debug] target server0: init event for RemoteInventory task
[Tue May 16 22:07:51 2023][debug] target server0: init event for Inventory task
[Tue May 16 22:07:52 2023][debug] target server0: init event for Collect task
[Tue May 16 22:09:49 2023][debug] target server0: storage maintenance event for deploy task
[Tue May 16 22:09:49 2023][debug] new thread 3 to handle task Deploy
[Tue May 16 22:09:49 2023][info] running task Deploy: storage maintenance event
[Tue May 16 22:09:49 2023][debug] Deploy task storage maintenance event for server0 target
[Tue May 16 22:09:49 2023][debug] No need to plan another storage maintenance event for server0 target
[Tue May 16 22:09:51 2023][debug] Agent memory usage before freeing memory: WSS=93196288 PFU=116899840
[Tue May 16 22:09:51 2023][info] GLPI Agent memory usage: WSS=3194880 PFU=116899840

But no any agent on server

Offline

#2 2023-05-17 09:06:02

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: Can not registeg agent again on GLPI server

Hi alexniko,

what would be interesting from the log is the part when it tries to connect to the server. Here it says next try will be on "Wed May 17 14:32:29 2023".
Fortunately, you still can force to connect earlier: open a browser and reach http://127.0.0.1:62354/ url and click on the "run now" link.
You can also open an administrator console, change directory to the agent installation folder and run:

glpi-agent --debug --debug --logger=stderr,file --force

GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#3 2023-05-17 09:08:12

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: Can not registeg agent again on GLPI server

Also be sure to use latest GLPI version: 10.0.7
There was a bug in 10.0.6 which was preventing inventory to be imported after some time.


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#4 2023-05-18 14:47:35

alexniko
Member
Registered: 2023-05-16
Posts: 11

Re: Can not registeg agent again on GLPI server

gbougard wrote:

Hi alexniko,

what would be interesting from the log is the part when it tries to connect to the server. Here it says next try will be on "Wed May 17 14:32:29 2023".
Fortunately, you still can force to connect earlier: open a browser and reach Xttp://127.0.0.1:62354 url and click on the "run now" link.
You can also open an administrator console, change directory to the agent installation folder and run:

glpi-agent --debug --debug --logger=stderr,file --force

Yes thanks it helps!

Offline

Board footer

Powered by FluxBB