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 remontée agent Windows/Linux

Bonjour,

Après de nombreuses recherches, tentatives et vérifications je sollicite votre aide.

Lorsque l'agent cherche à lancer un inventaire (linux ou windows) j'obtiens une erreur 500. Avec mes recherches, j'ai vu qu'il s'agissait d'un problème d'identifiants avec mysql, j'ai donc vérifié à maintes reprises les fichiers :

  • z-ocsinventory-server.conf
  • ocsinventory.conf
  • dbconfig.inc.php

L'adresse de la base de donnée est bonne (192.168.11.50), le user est ocs et son mot de passe est entre quote et bien valide sur chacun des fichiers.

 

Sur la base de donnée, l'utilisateur ocs dispose de tout les droits en localhost et en 192.168.11.51 (adresse du serveur ocs) sur la base ocs. J'ai aussi testé en root bien que cela ne me plaise pas, et cela ne fonctionne pas non plus.

 

J'ai ensuite regardé du côté des logs d'apache, et (mauvaise ou bonne) surprise, plus aucune erreurs n'apparait.

 

Je peux vous assurez que j'ai regardé partout ou je pouvais pour résoudre mon problème avant de poster sur ce forum.

 

Voici les différents fichiers :

 

[OCS Inventory Agent]
ComProvider=ComHTTP.dll
Debug=0
Local=
NoSoftware=0
HKCU=0
NoTAG=0
IpDisc=
[HTTP]
Server=http://ocs.solidarite.spf/ocsinventory
SSL=0
CaBundle=cacert.pem
AuthRequired=0
User=
Pwd=
ProxyType=0
Proxy=
ProxyPort=0
ProxyAuthRequired=0
ProxyUser=
ProxyPwd=
[OCS Inventory Service]
TTO_WAIT=26160
PROLOG_FREQ=24
OLD_PROLOG_FREQ=24

 

==============================================================================
Starting OCS Inventory NG Agent on Thursday, April 02, 2015 11:43:01.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
AGENT => Inventory required
AGENT => Launching hardware and software checks
AGENT => Sending Inventory
INVENTORY => Inventory changed since last run
ERROR *** AGENT => Failed to send Inventory <HTTP Status Code #500>
AGENT =>  Communication Server ask for Package Download
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:09.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, April 02, 2015 11:47:29.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
AGENT => Inventory required
AGENT => Launching hardware and software checks
AGENT => Sending Inventory
INVENTORY => Inventory changed since last run
ERROR *** AGENT => Failed to send Inventory <HTTP Status Code #500>
AGENT =>  Communication Server ask for Package Download
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:10.

==============================================================================
Starting OCS Inventory NG Agent on Thursday, April 02, 2015 13:25:45.
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)
AGENT => Using network connection with Communication Server
AGENT => Using Communication Provider <OCS Inventory NG cURL Communication Provider> Version <2.1.1.1>
AGENT => Sending Prolog
AGENT => Prolog successfully sent
SUPPORT => No support detected, Registration key : N/A
AGENT => Inventory required
AGENT => Launching hardware and software checks
AGENT => Sending Inventory
INVENTORY => Inventory changed since last run
ERROR *** AGENT => Failed to send Inventory <HTTP Status Code #500>
AGENT =>  Communication Server ask for Package Download
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:30.

ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Wed Apr 01 16:04:04 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.39-0+deb7u2 mod_perl/2.0.7 Perl/v5.14.2 configured -- resuming normal operations
[Thu Apr 02 10:29:18 2015] [error] [client 192.168.6.45] File does not exist: /var/www/favicon.ico
[Thu Apr 02 11:21:19 2015] [notice] caught SIGTERM, shutting down
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Thu Apr 02 11:21:21 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.39-0+deb7u2 mod_perl/2.0.7 Perl/v5.14.2 configured -- resuming normal operations
[Thu Apr 02 11:27:38 2015] [notice] caught SIGTERM, shutting down
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
ocsinventory-server: Can't load SOAP::Transport::HTTP* - Web service will be unavailable
[Thu Apr 02 11:27:40 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.39-0+deb7u2 mod_perl/2.0.7 Perl/v5.14.2 configured -- resuming normal operations
[Thu Apr 02 11:33:18 2015] [notice] caught SIGTERM, shutting down
[Thu Apr  2 11:33:19 2015] OCSINVENTORY: (SOAP): Cannot find XML::Entities
[Thu Apr  2 11:33:20 2015] OCSINVENTORY: (SOAP): Cannot find XML::Entities
[Thu Apr 02 11:33:20 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.39-0+deb7u2 mod_perl/2.0.7 Perl/v5.14.2 configured -- resuming normal operations
[Thu Apr 02 11:42:19 2015] [notice] caught SIGTERM, shutting down
[Thu Apr 02 11:42:20 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.39-0+deb7u2 mod_perl/2.0.7 Perl/v5.14.2 configured -- resuming normal operations
[Thu Apr 02 13:25:31 2015] [notice] caught SIGTERM, shutting down
[Thu Apr 02 13:25:32 2015] [notice] Apache/2.2.22 (Debian) PHP/5.4.39-0+deb7u2 mod_perl/2.0.7 Perl/v5.14.2 configured -- resuming normal operations

 

Merci d'avance pour votre aide, je ne vois pas ce que je peux faire de plus... 

in OCS Inventory NG agent for Windows by (200 points)

2 Answers

0 votes
Bonjour,

Bon, j'ai trouvé la solution. J'avais installé avec apt-get la première fois. Après un test sur d'autres VMs avec apt-get puis avec l'installation de base j'ai découvert que cela fonctionnait.

J'ai donc fait la même chose sur mes serveurs et cela fonctionne... Désinstallation avec apt-get remove puis installation avec le setup.sh.

Merci.
by (200 points)
0 votes
Bonjour,

Merci pour le retour d'informations. Par principe, ne pas utiliser les packages debian. Ceux-ci ne sont pas maintenus correctement par Debian et ne sont pas supportés par l'équipe de développement OCS.

Cordialement
by (88.5k points)
 
Powered by Question2Answer
...