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.

I have installed OCS and GLPI two years ago.But today,I don't know why can't success

I have installed OCS and GLPI two years ago.But today,I don't know why can't success.
 
 Win7 Agent:Service encounter error <OCS Inventory NG Agent encounter an error (exit code is 4 => Failed to talk with Communication Server)>.

 Server:Http:Access:192.168.74.136 - - [15/Feb/2017:16:04:38 +0800] "GET /ocsinventory/deploy/label HTTP/1.1" 400 306 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"
                    192.168.74.136 - - [15/Feb/2017:16:04:38 +0800] "POST /ocsinventory HTTP/1.1" 500 614 "-" "OCS-NG_WINDOWS_AGENT_v2.3.0.0"

           Error:[Wed Feb 15 16:03:54 2017] [notice] caught SIGTERM, shutting down
                   [Wed Feb 15 16:03:59 2017] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
                   [Wed Feb 15 16:04:00 2017] [notice] Digest: generating secret for digest authentication ...
                   [Wed Feb 15 16:04:00 2017] [notice] Digest: done
                   [Wed Feb 15 16:04:00 2017] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.5.38 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
                   [Wed Feb 15 16:04:22 2017] [error] [client 192.168.74.136] mpxs_Apache2__RequestRec_print: $r->print can't be called before the response phase at /usr/local/share/perl5/Apache/Ocsinventory  /Server/Communication.pm line 182.\n
                   [Wed Feb 15 16:04:38 2017] [error] [client 192.168.74.136] mpxs_Apache2__RequestRec_print: $r->print can't be called before the response phase at /usr/local/share/perl5/Apache/Ocsinventory/Server/Communication.pm line 182.\n
         
z-ocsinventory-server.conf
  # Master Database settings
  # Replace localhost by hostname or ip of MySQL server for WRITE
  PerlSetEnv OCS_DB_HOST localhost
  # Replace 3306 by port where running MySQL server, generally 3306
  PerlSetEnv OCS_DB_PORT 3306
  # Name of database
  PerlSetEnv OCS_DB_NAME ocsweb
  PerlSetEnv OCS_DB_LOCAL ocsweb
  # User allowed to connect to database
  PerlSetEnv OCS_DB_USER root
  # Password for user

  PerlSetVar OCS_DB_PWD inmycontrol

dbconfig.inc.php
<?php
define("DB_NAME", "ocsweb");
define("SERVER_READ","localhost");
define("SERVER_WRITE","localhost");
define("COMPTE_BASE","root");
define("PSWD_BASE","inmycontrol");
?>
~
Agent logļ¼š

Starting OCS Inventory NG Agent on Wednesday, February 15, 2017 16:41:22.
AGENT => Running OCS Inventory NG Agent Version 2.3.0.0
AGENT => Using OCS Inventory NG FrameWork Version 2.3.0.0
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) successfully 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.3.0.0>
    AGENT => Sending getLabel request
    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 <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending fileGet request to URL <http://192.168.74.137/ocsinventory/deploy/label>
    COM SERVER => fileGet response received <HTTP Status Code #400>
    COM SERVER => Cleaning cURL library
    AGENT => Failed to retrieve Label <HTTP Status Code #400>
AGENT => Sending Prolog
    DID_CHECK => Read DeviceID <SSS-PC-2017-02-13-17-42-58> and MACs <00:0C:29:C1:43:39> 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 <C:\ProgramData\OCS Inventory NG\Agent\cacert.pem>
    COM SERVER => Sending HTTP Post request to URL <http://192.168.74.137/ocsinventory>
    COM SERVER => HTTP Post response received <HTTP Status Code #500>
    COM SERVER => Cleaning cURL library
ERROR *** AGENT => Failed to send Prolog <HTTP Status Code #500>
AGENT => Unloading communication provider
AGENT => Unloading plug-in(s)
AGENT => Execution duration: 00:00:00.

Thank u very much!
in OCS Inventory NG server for Unix by (120 points)
edited by

Please log in or register to answer this question.

 
Powered by Question2Answer
...