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-03-12 22:53:12

elsin16
Member
Registered: 2023-03-12
Posts: 2

GLPI Agent 1.4 - Remote package install

Hi!
I need help. I have installed GLPI docker image (https://hub.docker.com/r/diouxx/glpi ) and GLPI Inventory plugin (from the marketplace) to the server. Installed GLPI Agent on the client (Windows 10 x64).
In the client settings, I specified the url:

http://glpi.my-server.com/marketplace/glpiinventory/

glpi.my-server.com = address of the GLPI server.
Inventory is running, the server receives information from the client. Remote installation of packages does not work.
Logs:

[Sun Mar 12 23:30:04 2023][debug] new thread 14 to handle task Deploy
[Sun Mar 12 23:30:04 2023][info] running task Deploy
[Sun Mar 12 23:30:04 2023][debug2] http://glpi.my-server.com/marketplace/glpiinventory/?action=getConfig&task[Deploy]=2.10&machineid=DESKTOP-MF2M95K-2023-03-12-22-13-20
[Sun Mar 12 23:30:05 2023][debug2] http://glpi.my-server.com/front/massiveaction.php/marketplace/glpiinventory/b/deploy/?action=getJobs&machineid=DESKTOP-MF2M95K-2023-03-12-22-13-20&version=2.10
[Sun Mar 12 23:30:05 2023][error] [http client] Can't decode JSON content, starting with: 
         

<!DOCTYPE html>
<html lang="en" >
<head>
   <title>Authentication - GLPI</title>

   <meta charset="utf-8" />
...
[Sun Mar 12 23:30:05 2023][debug] bad JSON: No answer from server.
[Sun Mar 12 23:30:05 2023][info] No Deploy job found in server jobs list.

How to fix this error?

Last edited by elsin16 (2023-03-12 22:54:08)

Offline

#2 2023-03-13 13:49:29

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

Re: GLPI Agent 1.4 - Remote package install

Hi elsin16,

as you can see at the debug2 level, the agent is requesting an url starting with:

http://glpi.my-server.com/front/massiveaction.php/

This means you should have a wrong URL set as "Agent base URL" in the "Assets" tab of your entity. Check it in the administration section.
You should probably leave it empty.


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

Offline

#3 2023-03-13 21:03:55

elsin16
Member
Registered: 2023-03-12
Posts: 2

Re: GLPI Agent 1.4 - Remote package install

Thanks for the quick response! It worked!

Offline

Board footer

Powered by FluxBB