I'm trying to install the Unix OCS Server on CentOS, OCS server 2.1.2. The mysql db & OCS config credentials match. I get the following errors:
My Apache log:
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 170.\n
My Agent log:
[Fri Oct 23 22:22:01 2015][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.1.1
[Fri Oct 23 22:22:01 2015][debug] Log system initialised (File)
[Fri Oct 23 22:22:01 2015][debug] --scan-homedirs missing. Don't scan user directories
[Fri Oct 23 22:22:01 2015][debug] Accountinfo file: /var/lib/ocsinventory-agent/http:__xxx.xxx.xxx.xxx:80_ocsinventory/ocsinv.adm
[Fri Oct 23 22:22:01 2015][debug] OCS Agent initialised
[Fri Oct 23 22:22:01 2015][debug] Turns hooks on for /etc/ocsinventory-agent/modules.conf
[Fri Oct 23 22:22:01 2015][debug] Ocsinventory unified agent for UNIX, Linux and MacOSX 2.1.1
[Fri Oct 23 22:22:01 2015][debug] Log system initialised (File)
[Fri Oct 23 22:22:01 2015][debug] Calling handlers : `start_handler'
[Fri Oct 23 22:22:01 2015][debug] [snmp] Calling snmp_start_handler
[Fri Oct 23 22:22:01 2015][debug] - Net::SNMP loaded
[Fri Oct 23 22:22:01 2015][debug] Compress::Zlib is available.
[Fri Oct 23 22:22:01 2015][debug] Calling handlers : `prolog_writer'
[Fri Oct 23 22:22:01 2015][debug] sending XML
[Fri Oct 23 22:22:01 2015][debug] sending: <?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<DEVICEID>ocs-agent2015-10-23-22-17-06</DEVICEID>
<QUERY>PROLOG</QUERY>
</REQUEST>
[Fri Oct 23 22:22:02 2015][error] Cannot establish communication : 500 Internal Server Error