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-01-26 17:10:50

javier.sansaloni
Member
Registered: 2013-10-17
Posts: 34

Cannot deploy task with glpiinventory plugin with fusioninventory agen

Hi!
I have updated glpi to 10.0.5 version this week.

I have fusioninventory installed on all devices.

I have use rewrite rules with apache to translate url for glpi inventory and it's ok.

I have installed glpiplugin inventory for deploy, esx,etc...

I can not deploy in the new version...
What can I do??

Do I need configure anything?

Thank you for your attention,

Regards,

Offline

#2 2023-01-26 19:50:15

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

Re: Cannot deploy task with glpiinventory plugin with fusioninventory agen

Hi javier.sansaloni,

do you mean you created a task and it doesn't run on agent side ? If yes, first check the agent log for deploy task run and tell us what it is saying.


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

Offline

#3 2023-01-27 10:46:45

javier.sansaloni
Member
Registered: 2013-10-17
Posts: 34

Re: Cannot deploy task with glpiinventory plugin with fusioninventory agen

[Thu Jan 26 13:19:36 2023][debug] new thread 9803 to handle task WMI
[Thu Jan 26 13:19:40 2023][debug] new thread 9804 to handle task Deploy
[Thu Jan 26 13:19:40 2023][info] running task Deploy
[Thu Jan 26 13:19:40 2023][debug2] https://glpi.ayto-burriana.org/plugins/ … onfig&task[Deploy]=2.8&machineid=BU325.ayto-burriana.org-2021-07-07-14-39-04
[Thu Jan 26 13:19:41 2023][debug2] Looking for Win32_LogicalDisk class WMI objects
[Thu Jan 26 13:19:41 2023][debug] Free space on C:\Program Files\FusionInventory-Agent\var\https..__glpi.ayto-burriana.org_plugins_fusioninventory_front_plugin_fusioninventory.communication.php\deploy: 46765
[Thu Jan 26 13:19:41 2023][debug2] https://glpi.ayto-burriana.org/marketpl … ersion=2.8
[Thu Jan 26 13:19:41 2023][error] [http client] communication error: 400 Bad Request
[Thu Jan 26 13:19:41 2023][debug] bad JSON: No answer from server.
[Thu Jan 26 13:19:41 2023][info] No Deploy job found in server jobs list.

Offline

#4 2023-01-27 10:49:41

javier.sansaloni
Member
Registered: 2013-10-17
Posts: 34

Re: Cannot deploy task with glpiinventory plugin with fusioninventory agen

I have put two rewrite rules to convert fusioninventory url to new url (glpiinventory)

The second works well (inventory) and it is in this forum
The first rule is for deployment.



RewriteEngine On
RewriteRule plugins/fusioninventory/front/plugin_fusioninventory.communication.php(.*)$ marketplace/glpiinventory/front/plugin_fusioninventory.communication.php [R=307]
RewriteRule plugins/fusioninventory/(.*)$ / [R=307]

Thank you for your attention

Offline

#5 2023-01-27 13:41:01

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

Re: Cannot deploy task with glpiinventory plugin with fusioninventory agen

I see the Deploy task is requesting job to a different URL and the second is surely wrong. This is a symptom of an old problem with FI plugin. Right now, you should just check in glpi administration your entity configuration. You may see an URL as "Agent Base URL" in the asset section. Try to remove it or adjust it to the same URL that you're using on agent side. In that last case, you may need to upgrade GLPI to GLPI 10.0.6 & GlpiInventory to 1.1.0 which were release few days ago.


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

Offline

#6 2023-02-14 12:35:09

javier.sansaloni
Member
Registered: 2013-10-17
Posts: 34

Re: Cannot deploy task with glpiinventory plugin with fusioninventory agen

I have updated glpi and Inventory.


I have a question, the user URL is pau.burriana.es but the deploy URL is glpi.ayto-burriana.org because I manage the domain certificates ayto-burriana.org. Which is the correct URL?

Thank you very much for your attention

This is the log file (BAD certficate because the URL are different)

[Tue Feb 14 11:26:00 2023][debug2] https://glpi.ayto-burriana.org/marketpl … 44-06&task[Deploy]=2.10
[Tue Feb 14 11:26:00 2023][debug2] https://pau.burriana.es/marketplace/glp … rsion=2.10
[Tue Feb 14 11:26:00 2023][error] [http client] internal response: 500 Can't connect to pau.burriana.es:443 (Bad file descriptor), SSL connect attempt failed error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed
[Tue Feb 14 11:26:00 2023][debug] bad JSON: No answer from server.

Offline

#7 2023-02-14 12:47:54

javier.sansaloni
Member
Registered: 2013-10-17
Posts: 34

Re: Cannot deploy task with glpiinventory plugin with fusioninventory agen

Update:

I have put the URL in the entity:  https://glpi.ayto-burriana.org/marketpl … iinventory

Now The agent can see the deploy task but not the file

[Tue Feb 14 11:45:08 2023][debug2] https://glpi.ayto-burriana.org/marketpl … &part=file
[Tue Feb 14 11:45:09 2023][error] Source or mirror is not a valid URL:  https://glpi.ayto-burriana.org/marketpl … Part&file=

[Tue Feb 14 11:45:09 2023][error] Source or mirror is not a valid URL:  https://glpi.ayto-burriana.org/marketpl … Part&file=
[Tue Feb 14 11:45:09 2023][error] Source or mirror is not a valid URL:  https://glpi.ayto-burriana.org/marketpl … Part&file=
[Tue Feb 14 11:45:09 2023][error] Source or mirror is not a valid URL:  https://glpi.ayto-burriana.org/marketpl … Part&file=
[Tue Feb 14 11:45:09 2023][error] Source or mirror is not a valid URL:  https://glpi.ayto-burriana.org/marketpl … Part&file=
[Tue Feb 14 11:45:09 2023][error] Source or mirror is not a valid URL:  https://glpi.ayto-burriana.org/marketpl … Part&file=
[Tue Feb 14 11:45:09 2023][error] Source or mirror is not a valid URL:  https://glpi.ayto-burriana.org/marketpl … Part&file=
[Tue Feb 14 11:45:09 2023][error] Source or mirror is not a valid URL:  https://glpi.ayto-burriana.org/marketpl … Part&file=
[Tue Feb 14 11:45:09 2023][error] Source or mirror is not a valid URL:  https://glpi.ayto-burriana.org/marketpl … Part&file=

Offline

Board footer

Powered by FluxBB