GLPI Agent stops sending inventory and returns connection error - "500 Can't connect to GLPI server" #863
Replies: 4 comments 3 replies
-
this looks as intermittent network problem. Even In that case, anyway, this is a bad idea to change On network connectivity issues, glpi-agent should try again the request soon, but not very soon if timeout is set to one hour. As I don't see any glpi-agent issue, I'll transfer your issue as a discussion. |
Beta Was this translation helpful? Give feedback.
-
Well, GH seems to have trouble to convert it as a discussion. Will retry later. |
Beta Was this translation helpful? Give feedback.
-
We can rule out network issues since we have employees both in the office and working remotely, and the problem occurs in both scenarios. Additionally, the GLPI server is hosted in a datacenter virtualized on Proxmox, and all infrastructure VMs run the GLPI Agent without any issues. The strange behavior happens only on employees' laptops: after being powered on for an extended period, the GLPI Agent loses connection to the server and stops sending inventories. However, as soon as the laptop is restarted, everything returns to normal automatically. It seems that the GLPI Agent service is unable to restore the connection on its own after running for a prolonged period. |
Beta Was this translation helpful? Give feedback.
-
To solve this issue, I created a script that adds a task to the Task Scheduler to check whether the GLPI Agent is running. If it isn't, the script automatically restarts it. This was necessary because when a laptop remained on for more than two days, the agent would lose connection and require manual intervention to restore functionality. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug reporting acknowledgment
Yes, I read it
Professional support
Still not applicable
Describe the bug
Notebooks running Windows 11 with the GLPI Agent installed work normally and send inventory correctly for some time. However, after a few hours or days, the agent stops communicating with the server and returns the following error:
500 Can't connect to GLPI server
(The requested name is valid, but no data of the requested type was found.)
This issue occurs randomly on about 10 out of 65 notebooks, and the affected devices vary over time. Restarting the notebook temporarily resolves the issue, but after some time, the error reappears.
Relevant Logs:
To reproduce
Steps to Reproduce the Issue:
Install GLPI Agent on a Windows 11 notebook.
Configure the agent to synchronize with the GLPI server.
The agent works normally and sends the inventory.
After some time, the agent stops synchronizing and returns the 500 Can't connect error.
Restarting the notebook makes the agent work normally again.
Expected behavior
Expected Behavior:
The GLPI Agent should continue sending inventories without requiring a computer restart.
Operating system
Windows
GLPI Agent version
v1.12
GLPI version
10.0.17
GLPIInventory plugin or other plugin version
GLPI Inventory v1.4.0
Additional context
Installation Method:
Tests Performed:
✅ Is the GLPI Server online? → Yes.
✅ Does the GLPI Agent work again after restarting the notebook? → Yes.
✅ Ping test to the GLPI server (ping glpi-server)? → Responds normally.
✅ Route test (tracert glpi-server)? → The route reaches the destination, but there is a timeout on one of the intermediate hops.
✅ HTTPS connection test (telnet glpi-server 443)? → Connection established successfully.
✅ DNS resolution test (nslookup glpi-server)? → The DNS correctly resolves the server's IP.
✅ Manual GLPI Agent test (
glpi-agent --server=https://glpi-server/ --debug
)? → Shows a connection error.Beta Was this translation helpful? Give feedback.
All reactions