I have installed OCS and GLPI two years ago.But today,I don't 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");
?>
~
~
Thank u very much!
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");
?>
~
~
Thank u very much!