Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.11.1 available

The official documentation can be found on http://wiki.ocsinventory-ng.org. Read it before asking your question.

Problème déploiement

Bonjour à tous,

Je tente de déployer un paquet à partir d'un OCS serveur fraichement installé (sous CentOS), et ça ne fonctionne pas.

Le logiciel utilisé pour le test de déploiement est Chrome. Le fichier d'installation .MSI a été zippé, et le paquet configuré en mode Exécuter (Au passage j'ai un peu de mal à saisir la différence entre Lancer et Exécuter). J'ai ensuite activé le paquet, et ai lancé le télédéploiement sur un groupe de machines (qui n'en contient qu'une pour l'instant. C'est un test ;-) ).

La communication avec les agents se fait en SSL (sous Windows).

Le fichier ocsinventory.log me ça (j'ai supprimé quelques lignes inutiles) :

======================================================
Starting OCS Inventory NG Agent on Tuesday, May 26, 2015 13:28:51.
AGENT => Running OCS Inventory NG Agent Version 2.1.1.1
AGENT => Using OCS Inventory NG FrameWork Version 2.1.1.1
AGENT => Loading plug-in(s)
    DLL PLUGIN => Searching for Plug-in DLL(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
    DLL PLUGIN => 0 DLL Plug-in(s) succesfully loaded on 0 DLL(s) found
AGENT => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <E-0445-2015-05-13-17-36-07> and MACs <B8:AC:6F:9C:CB:1F> in file <ocsinventory.dat>
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <https://monserveur/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
    AGENT => Prolog Frequency set to 24 hour(s)
AGENT => Inventory required
AGENT => Launching hardware and software checks
    INVENTORY => Loading Download history
    INVENTORY => Logged on user ID is <Administrateur>
    INVENTORY => Operating System is <Microsoft Windows 7 Professionnel 6.1.7601 Service Pack 1>, description <PC ENS>
    INVENTORY => Operating System uses 64 bits memory address width
    (...)
    EXECUTABLE PLUGIN => Searching for VBS script(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
    EXECUTABLE PLUGIN => Searching for executable(s) in folder <C:\Program Files (x86)\OCS Inventory Agent\plugins>
AGENT => Sending Inventory
    INVENTORY => Checking last inventory state
    INVENTORY => Logical drives inventory state changed
    INVENTORY => Software inventory state changed
INVENTORY => Inventory changed since last run
    INVENTORY => Generating XML document with Device properties
   (...)
    COM SERVER => Initializing cURL library for sendRequest
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <https://monserveur/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #200>
    COM SERVER => Cleaning cURL library
AGENT => Inventory successfully sent
    INVENTORY => Writing new inventory state
AGENT =>  Communication Server ask for Package Download
    DOWNLOAD => Package history file successfully cleaned for duplicate IDs
    DOWNLOAD => Package <1432633026> already in download queue, keeping on package
DOWNLOAD => Download and setup tool successfully started
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:16
.

======================================================

Le fichier download.log indique ça :

======================================================
Starting OCS Inventory NG Package Download and Setup Tool on Tuesday, May 26, 2015 13:29:07.
DOWNLOAD => Running OCS Inventory NG Download Version 2.1.1.1
DOWNLOAD => Using OCS Inventory NG FrameWork Version 2.1.1.1
DOWNLOAD => Using network connection with Communication Server
    COM PROVIDER => Loading Communication Provider <C:\Program Files (x86)\OCS Inventory Agent\ComHTTP.dll>
DOWNLOAD => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
DOWNLOAD => Starting new period of 10 cycles
    DOWNLOAD => Flushing package queue
DOWNLOAD => Parsing directory <C:\ProgramData\OCS Inventory NG\Agent\download> for packages
    DOWNLOAD => Verifying package <C:\ProgramData\OCS Inventory NG\Agent\download\1432633026>
DOWNLOAD => Package <1432633026> verified and added to process queue
DOWNLOAD => High priority 0 package found, removing lower priority package from queue
    DOWNLOAD => Processing packages for cycle 1 on Tuesday, May 26, 2015 13:29:07
DOWNLOAD => Downloading package fragment <1432633026-1>
    COM SERVER => Initializing cURL library for getFile
    COM SERVER => Using cURL without server authentication
    COM SERVER => Disabling cURL proxy support
    COM SERVER => Enabling cURL SSL server validation support using CA Bundle <cacert.pem>
    COM SERVER => Sending fileGet request to URL <HTTP://monserveur/download/1432633026/1432633026-1>

======================================================

Et puis voilà, rien d'autre ne se passe. Dans les statistiques du paquet, il est indiqué qu'il y'a une notification et rien d'autre.

Ai-je oublié quelque chose ? J'avoue que je me perd un peu pour l'instant car je suis habitué à UpdatEngine, il faut que je m'habitue ;-)

Merci d'avance pour vos réponses.

in OCS Inventory NG server for Unix by (180 points)
edited by

1 Answer

0 votes

Bonjour,

Dans la dernière ligne de ton download.log : HTTP://monserveur/download/1432633026/1432633026-1

Tu as testé cette URL directement dans ton navigateur ? Car je vois en début de post que tu es en HTTPS, donc attention.

De mémoire, lors de la livraison du serveur, nous ne fournissons pas des fichiers de conf pour être full HTTPS. Il faut regarder du coté d'apache et de la déclaration de l'alias /download

by (180 points)
Bonjour,

Oui cette URL fonctionne.

D'ailleurs au moment de l'installation je n'accédais à rien. Dans la config Apache, j'ai dû remplacer tous les "Allow from all" par "Require all granted" pour que ça fonctionne.
 
Powered by Question2Answer
...