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.12.3 available

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

print can't be called before the response phase

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
in OCS Inventory NG server for Unix by (490 points)

1 Answer

0 votes
For me, downgrading mod_perl to 2.0.8 from 2.0.9 fixed this issue.
by (490 points)
 
Powered by Question2Answer
...