OCSInventory-NG / OCSInventory-Server

Communication server of OCS Inventory
http://www.ocsinventory-ng.org/
GNU General Public License v2.0
340 stars 138 forks source link

Empties OCS files in server when gzip is used by unix agent #463

Open jsalgado78 opened 3 weeks ago

jsalgado78 commented 3 weeks ago

General informations

Operating system : Server: DockerHub image ocsinventory/ocsinventory-docker-image:2.12 Client: RHEL 9.2 x86_64

Server informations

Perl version: 5.34.0 Mysql / Mariadb / Percona version : MySQL 5.7.33

OCS Inventory informations

Ocs Server version : 2.12.0

Problem's description

OCS Inventory Server 2.12.0 (Docker image used ocsinventory/ocsinventory-docker-image:2.12) generates empties ocs files (0 bytes size) when a computer (client) is running OCS Inventory Unix Agent 2.10.0, Compress::Zlib is not detected and gzip is used by the agent

[Tue Jun 25 12:51:47 2024][debug] Compress::Zlib is not available! The data will be compressed with
             gzip instead but won't be accepted by server prior 1.02

If I force deflated mode in Compress.pm (unix agent file) .ocs file is successfully generated in OCS Inventory Server GENERATE_OCS_FILES option is enabled