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.

Package creation error

Dear,

When I try to create a package bigger than 2Go my browser send me the message : "Connection reset"

I tried on different browsers, but still the same message.

I've already try to modify php.ini in /etc/php/7.3/apache2 

I've set 20 000M for the values of : upload_max_filesize and post_max_size

in OCS Inventory NG server for Unix by (470 points)

5 Answers

0 votes
Hi,

Modify these values in ocsinventory-reports.conf file and restart apache.

Regards
by (90.4k points)
0 votes
Hi

I put post_max_size 4001M and upload_max_filesize 4000M

But still the same issue
by (470 points)
0 votes

hy, can you post you apache error log and perhaps check your

httpd.conf

<IfModule mod_fcgid.c>
    MaxRequestLen         10000000
</IfModule>
Kind regards

i really don't know the answer .. but perhaps this can help you .. he solved a similar problem
https://superuser.com/questions/1429196/file-upload-results-with-connection-reset
 quote"

Finally solved it by adding the following line in apache :

RequestReadTimeout handshake=5 header=10 body=120

https://httpd.apache.org/docs/2.4/mod/mod_reqtimeout.html

by (24.4k points)
edited by
0 votes

Hi,

Here is my appache log error after trying again to upload my package and get a "connection reset": 

[Wed Apr 28 09:23:48.627446 2021] [mpm_prefork:notice] [pid 2540] AH00169: caught SIGTERM, shutting down

[Wed Apr 28 09:23:49.093817 2021] [ssl:warn] [pid 21202] AH01909: 127.0.0.1:443:0 server certificate does NOT include an ID which matches the server name

[Wed Apr 28 09:23:49.630941 2021] [ssl:warn] [pid 21204] AH01909: 127.0.0.1:443:0 server certificate does NOT include an ID which matches the server name

[Wed Apr 28 09:23:49.636684 2021] [mpm_prefork:notice] [pid 21204] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1d mod_perl/2.0.10 Perl/v5.28.1 configured -- resuming normal operations

[Wed Apr 28 09:23:49.636726 2021] [core:notice] [pid 21204] AH00094: Command line: '/usr/sbin/apache2'

[Wed Apr 28 09:24:37.490360 2021] [php7:warn] [pid 21227] [client 10.15.1.81:64116] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /usr/share/ocsinventory-reports/ocsreports/require/search/Search.php on $

I tried to add  :

<IfModule mod_fcgid.c>
    MaxRequestLen         10000000
</IfModule>
In my apache2.conf file, but nothing change (apache service restarted) :/
by (470 points)
0 votes
Dear,

Has anyone encountered this problem before?
by (470 points)
 
Powered by Question2Answer
...