You are not logged in.
Pages: 1
Hello,
I have a Debian 12 VM with GLPI 10.1.18 installed, and a Windows 11 VM with the GLPI agent installed. The problem is that it does not appear in the GLPI inventory (the "enable inventory" option is activated).
I have tested bidirectional pings, there is no firewall, and I can connect to GLPI in a browser on Windows 11... but I cannot get it to appear in the inventory.
Here are the logs from the GLPI agent:
x VJ ( ,J, S R22Q Q*.I,)- j
[Tue Mar 25 09:50:19 2025][error] No supported answer from server at ''http://199.13.10.62/glpi''
[Tue Mar 25 09:50:19 2025][info] target server0: next run: Tue Mar 25 10:06:19 2025 - ''http://199.13.10.62/glpi''
[Tue Mar 25 09:50:20 2025][info] GLPI Agent memory usage: WSS=3321856 PFU=178450432
[Tue Mar 25 10:06:19 2025][info] target server0: server ''http://199.13.10.62/glpi''
[Tue Mar 25 10:06:19 2025][info] sending prolog request to server0
[Tue Mar 25 10:06:19 2025][error] [http client] can't uncompress content starting with:
x VJ ( ,J, S R22Q Q*.I,)- j
Help please, Thanks!
Offline
check if your vm is in Bridged Adapter, because I had a similar problem and I solved it by doing this
GLPI 10.0.18 - installed on ubunto server
English posts are translated
Offline
Thanks Antonio123,
I am, but don't walk
Offline
try reinstalling agent and on the server don't put /glpi use only ("http:******62")
GLPI 10.0.18 - installed on ubunto server
English posts are translated
Offline
I tried, but it doesn't work (which seems normal) because only the IP address without "/glpi/" takes me to the Apache2 server and not to GLPI. But thank you!
[Tue Mar 25 12:27:30 2025][error] Failed to handle run event for inventory
[Tue Mar 25 12:27:32 2025][info] running task Inventory: run event
[Tue Mar 25 12:27:32 2025][info] New inventory from Windows-Client-2025-03-25-08-39-01 for local0
[Tue Mar 25 12:28:32 2025][info] GLPI Agent exiting (8568)
[Tue Mar 25 12:28:41 2025][info] GLPI Agent service starting
[Tue Mar 25 12:28:45 2025][info] [http server] HTTPD service started on port 62354
[Tue Mar 25 12:28:48 2025][info] GLPI Agent memory usage: WSS=4362240 PFU=115965952
[Tue Mar 25 12:28:48 2025][info] target local0: next run: Tue Mar 25 12:57:21 2025 - C:/Program Files/GLPI-Agent
[Tue Mar 25 12:28:48 2025][info] target server0: next run: Tue Mar 25 12:57:23 2025 - http://199...62
[Tue Mar 25 12:28:52 2025][error] Failed to handle run event for inventory
[Tue Mar 25 12:28:53 2025][info] running task Inventory: run event
[Tue Mar 25 12:28:53 2025][info] New inventory from Windows-Client-2025-03-25-08-39-01 for local0
Offline
[Tue Mar 25 12:28:53 2025][info] New inventory from Windows-Client-2025-03-25-08-39-01 for local0
but this line means that it's already working, or still not working
GLPI 10.0.18 - installed on ubunto server
English posts are translated
Offline
x VJ ( ,J, S R22Q Q*.I,)- j [Tue Mar 25 09:50:19 2025][error] No supported answer from server at ''http://199.13.10.62/glpi''
This probably means you have a wrong configuration somewhere in GLPI. Check your GLPI configuration files and look for a line or other chars before any "<?php" tag... also check there's no closing tag "?>" as this is not expected in configuration files.
GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer
Offline
Thank you, gbougard!
I checked, but I can't find it. I reinstalled the agent without "Quick Installation" (following advice from an internet user).
Here are the logs from the current installation:
[Tue Mar 25 15:39:11 2025][info] target server0: next run: Tue Mar 25 16:22:31 2025 - http://199..62/glpi
[Tue Mar 25 15:40:47 2025][info] running task Inventory: run event
[Tue Mar 25 15:40:47 2025][info] New inventory from Windows-Client-2025-03-25-15-24-53 for local0
[Tue Mar 25 15:41:58 2025][info] Inventory saved in C:/Program Files/GLPI-Agent/Windows-Client-2025-03-25-15-24-53.xml
[Tue Mar 25 15:42:01 2025][error] Failed to handle run event for inventory
[Tue Mar 25 15:42:01 2025][info] GLPI Agent memory usage: WSS=3248128 PFU=139198464
[Tue Mar 25 15:44:36 2025][error] [http server] invalid request type: GET
[Tue Mar 25 15:44:37 2025][error] Failed to handle run event for remoteinventory
[Tue Mar 25 15:44:37 2025][error] Failed to handle run event for inventory
[Tue Mar 25 15:44:37 2025][info] running task Inventory: run event
[Tue Mar 25 15:44:37 2025][info] New inventory from Windows-Client-2025-03-25-15-24-53 for local0
[Tue Mar 25 15:45:13 2025][info] Inventory saved in C:/Program Files/GLPI-Agent/Windows-Client-2025-03-25-15-24-53.xml
[Tue Mar 25 15:45:13 2025][info] target local0: next run: Tue Mar 25 16:44:13 2025 - C:\Program Files\GLPI-Agent\
[Tue Mar 25 15:45:13 2025][info] GLPI Agent memory usage: WSS=3276800 PFU=147243008
Offline
...[error] [http server] invalid request type: GET
This means you have a server configuration issue. I see this error for the first time ever... This is not glpi-agent you need to cleanly reinstall but your glpi server.
GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer
Offline
Hello gbougard
You are right, i reinstalled my GLPI server and installed the agent version: v1.14-gitbc73ef73 nightly build. The Windows client is now appearing in the GLPI inventory.
Thank you!
Offline
I just encountered the same situation : Debian 12 VM with GLPI 10.1.18 and GLPI Inventory 1.50 plugin installed. A Windows 11 VM with the GLPI agent 1.13 installed. This GLPI server is only for testing so I did not set it to https. Its URL is then http://IP-ADDRESS.
By testing I discovered the 1.13 agent version is somewhat buggy with a non-https GLPI server address => "[error] Failed to handle run event for inventory" can be found in the GLPI agent log.
I just uninstalled it and installed the 1.12 version instead => inventory is working.
BTW
- I also have GLPI servers in production on https where GLPI agent 1.13 is working as usual.
- "[error] [http server] invalid request type: GET" => means you probably mistyped the server URL when installing the agent. Check here (h t t p s://glpi-agent.readthedocs.io/en/latest/configuration.html#available-parameters) and choose the right URL depending on your GLPI server inventory configuration.
Last edited by denisl (2025-03-26 13:29:54)
Offline
This problem is solved. Now i have one other ....
I can access my GLPI server using http://localhost/, but I can't access it via http://localhost/glpi. I added an alias Alias "/glpi" "/var/www/html/glpi/public", but it doesn’t work.
I’ll share my VirtualHost configuration, which I set up following the official documentation.
If you could give me a hand, I’d really appreciate it! Thanks in advance!
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/html/glpi/public
Alias "/glpi" "/var/www/html/glpi/public"
<Directory /var/www/html/glpi/public>
Require all granted
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.+)$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</Directory>
Offline
Finally, i found a solution that works. In the VirtualHost configuration, you need to add the alias in the following line: ,,RewriteRule ^(.*)$ glpi/index.php [QSA,L]"
Last edited by viteok1 (2025-03-26 15:09:14)
Offline
Pages: 1