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.

Can't create a package of 700 MB - [SOLVED]

When I try to build a package with a (zip) filesize of 700 MB it gets uploaded and the page to configure the fragments appears.  After clicking Send on that page, I only receive a blank page with only the OCS header and menu.

If I check the folder /var/lib/ocsinventory-reports/download only a tmp file of 700 MB exists in the package subfolder. No info file is generated.  Of course the package does not appear for activation.

With smaller packages (e.g. 50 MB and 150 MB) everythings works fine.

Any help would be very appreciated!

Setup info:

OS: CentOS Linux 7 (Core)
Version: 3.10.0-693.17.1.el7.x86_64
PHP Version: 5.4.16
Web Server: Apache/2.4.6 (CentOS) PHP/5.4.16 mod_perl/2.0.10 Perl/v5.16.3
Database Server: MariaDB Server version 5.5.56-MariaDB
Version OCSReports: 2.4

in OCS Inventory NG server for Unix by (200 points)
edited by

3 Answers

0 votes
Hi,

See /var/log/httpd/error_log file if youhave some errors

Regards

Frank
by (90.2k points)
0 votes
The error in the httpd error logfile is:

PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 719935845 bytes) in /usr/share/ocsinventory-reports/ocsreports/require/function_telediff.php on line 396, referer: https://ocs.domain.com/ocsreports/index.php?function=tele_package
by (200 points)
0 votes
Changed /etc/php.ini:

Line "memory_limit = 128M" replaced by "memory_limit = 2048M"

Restarted httpd and tried again => Solved!

PS: I've put 2048M because I have bigger packages to create as well.
by (200 points)
 
Powered by Question2Answer
...