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-08-04 11:09:33

CDR
Member
Registered: 2023-08-04
Posts: 13

GLPI 10 / GLPI agent et Deploy Task

Hi there,

Im' using GLPI 10.0.7 (Linux) and GLPI Agent 1.5 on my Windows client devices.
My Inventory is working fine, I have also on SNMP Inventory Task working BUT...
My Deploy tast is not working stuck on "prepared" status.

I try to do a very basic task (for testing) --> Create on directory on de local C drive on my Windows Client.

Here is my Windows client log files (mode Debug 2)  (after forcing Inventory on 127.0.0.1:62354 or using the GLPI Web console).

[Fri Aug  4 08:59:44 2023][info] running task Deploy
[Fri Aug  4 08:59:44 2023][debug] [http server] GET request / from client 127.0.0.1
[Fri Aug  4 08:59:44 2023][debug2] [http client] Not using compression
[Fri Aug  4 08:59:44 2023][debug] [http server] response status 200
[Fri Aug  4 08:59:44 2023][debug2] http://MONSERVEUR/marketplace/glpiinventory/?action=getConfig&task[Deploy]=3.0&machineid=MONPC.MONDOMAINE.COM-2023-08-04-08-04-21
[Fri Aug  4 08:59:44 2023][debug] [http server] GET request / from client 127.0.0.1
[Fri Aug  4 08:59:44 2023][debug] [http server] response status 200
[Fri Aug  4 08:59:44 2023][debug2] http://MONSERVEUR//marketplace/glpiinventory/b/deploy/?action=getJobs&version=3.0&machineid=MONPC.MONDOMAINE.COM-2023-08-04-08-04-21
[Fri Aug  4 08:59:44 2023][error] [http client] communication error: 403 Forbidden
[Fri Aug  4 08:59:44 2023][debug] bad JSON: No answer from server.
[Fri Aug  4 08:59:44 2023][debug] [http server] GET request / from client 127.0.0.1
[Fri Aug  4 08:59:44 2023][info] No Deploy job found in server jobs list.
[Fri Aug  4 08:59:44 2023][debug] [http server] response status 200
[Fri Aug  4 08:59:44 2023][debug] [http server] GET request / from client 127.0.0.1
[Fri Aug  4 08:59:44 2023][debug] [http server] response status 200
[Fri Aug  4 08:59:45 2023][debug] [http server] GET request / from client 127.0.0.1
[Fri Aug  4 08:59:45 2023][debug] [http server] response status 200
[Fri Aug  4 08:59:45 2023][debug] [http server] GET request / from client 127.0.0.1
[Fri Aug  4 08:59:45 2023][debug] [http server] response status 200
[Fri Aug  4 08:59:47 2023][debug] new thread 4 to handle task Collect
[Fri Aug  4 08:59:47 2023][info] running task Collect
[Fri Aug  4 08:59:47 2023][debug2] [http client] Not using compression
[Fri Aug  4 08:59:47 2023][debug2] http://MONSERVEUR/marketplace/glpiinventory/?action=getConfig&task[Collect]=2.9&machineid=MONPC.MONDOMAINE.COM-2023-08-04-08-04-21
[Fri Aug  4 08:59:47 2023][info] No Collect job enabled or Collect support disabled server side.
[Fri Aug  4 08:59:48 2023][debug] new thread 5 to handle task RemoteInventory
[Fri Aug  4 08:59:48 2023][debug] Remote inventory task execution disabled: no remote setup
[Fri Aug  4 08:59:48 2023][debug] new thread 6 to handle task Inventory
[Fri Aug  4 08:59:48 2023][info] running task Inventory
[Fri Aug  4 08:59:48 2023][info] New inventory from MONPC.MONDOMAINE.COM-2023-08-04-08-04-21 for server0
...
...


Any ideas ?


Thks,

Offline

#2 2023-08-04 12:25:52

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

Re: GLPI 10 / GLPI agent et Deploy Task

Hi CDR,

"403 Forbidden" means you have a server configuration issue, probably in the HTTP server itself.

I see a double slash in the second url: "http://MONSERVEUR//marketplace/glpiinventory/b/deploy/?action=getJobs&version=3.0&machineid=MONPC.MONDOMAINE.COM-2023-08-04-08-04-21"
Just after "MONSERVEUR", this may be the reason. You should check what is set on "Agent base URL" on the "Assets" tab of your entity in GLPI administration. If something is set, try to leave it empty or remove the last slash.


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

Offline

#3 2023-08-04 14:02:15

CDR
Member
Registered: 2023-08-04
Posts: 13

Re: GLPI 10 / GLPI agent et Deploy Task

gbougard wrote:

Hi CDR,

"403 Forbidden" means you have a server configuration issue, probably in the HTTP server itself.

I see a double slash in the second url: "http://MONSERVEUR//marketplace/glpiinventory/b/deploy/?action=getJobs&version=3.0&machineid=MONPC.MONDOMAINE.COM-2023-08-04-08-04-21"
Just after "MONSERVEUR", this may be the reason. You should check what is set on "Agent base URL" on the "Assets" tab of your entity in GLPI administration. If something is set, try to leave it empty or remove the last slash.

Hello,

I just a Typo (when I replace the real name on my server by "Monserveur" to publish on this forum), only one slash in the conf.

The inventory is working Fine using the same server address confgiured in the Windows GLPi agent.

I don't see where to find this "You should check what is set on "Agent base URL" on the "Assets" tab of your entity in GLPI administration. If something is set, try to leave it empty or remove the last slash." ?

Offline

#4 2023-08-04 14:13:42

CDR
Member
Registered: 2023-08-04
Posts: 13

Re: GLPI 10 / GLPI agent et Deploy Task

gbougard wrote:

Hi CDR,

"403 Forbidden" means you have a server configuration issue, probably in the HTTP server itself.

I see a double slash in the second url: "http://MONSERVEUR//marketplace/glpiinventory/b/deploy/?action=getJobs&version=3.0&machineid=MONPC.MONDOMAINE.COM-2023-08-04-08-04-21"
Just after "MONSERVEUR", this may be the reason. You should check what is set on "Agent base URL" on the "Assets" tab of your entity in GLPI administration. If something is set, try to leave it empty or remove the last slash.

Thanks a lot, in the agent base URL I had : "http://MONSERVEUR/" I removed the / and the end and it's working fine now....
:-)

Offline

#5 2023-08-09 15:10:57

CDR
Member
Registered: 2023-08-04
Posts: 13

Re: GLPI 10 / GLPI agent et Deploy Task

gbougard wrote:

Hi CDR,

"403 Forbidden" means you have a server configuration issue, probably in the HTTP server itself.

I see a double slash in the second url: "http://MONSERVEUR//marketplace/glpiinventory/b/deploy/?action=getJobs&version=3.0&machineid=MONPC.MONDOMAINE.COM-2023-08-04-08-04-21"
Just after "MONSERVEUR", this may be the reason. You should check what is set on "Agent base URL" on the "Assets" tab of your entity in GLPI administration. If something is set, try to leave it empty or remove the last slash.


hello...

All was Working fine but Today, I have the same error Again (Inventory is Working but my Deploy task is Stuck on "prepared"
I have updated from fusion inventory Agent to GLPi agent.

Logs of GLPI agent on the client :
[Wed Aug  9 14:55:18 2023][info] running task Deploy
[Wed Aug  9 14:55:18 2023][debug2] http://srv-helpdesk/front/inventory.php?action=getConfig&task[Deploy]=2.10&machineid=CDR-VESA-2019.vesa.local-2023-08-04-08-04-21
[Wed Aug  9 14:55:18 2023][error] [http client] communication error: 400 Bad Request, Protocol not supported
[Wed Aug  9 14:55:18 2023][info] Deploy task not supported by server0

agent base URL : is still "http://MONSERVEUR" (without the / at the End)
I 've also Tried with an empty field...
Same error...

Any Ideas ?

Last edited by CDR (2023-08-09 15:21:15)

Offline

#6 2023-08-10 11:44:40

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

Re: GLPI 10 / GLPI agent et Deploy Task

[Wed Aug  9 14:55:18 2023][debug2] http://srv-helpdesk/front/inventory.php?action=getConfig&task[Deploy]=2.10&machineid=CDR-VESA-2019.vesa.local-2023-08-04-08-04-21

Please fix you configured server url in agent config after you have read that documentation: https://glpi-agent.readthedocs.io/en/la … tml#server


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

Offline

Board footer

Powered by FluxBB