Project

General

Profile

Actions

Bug #9794

closed

Malformed .gz inventory breaks upload process

Added by Janos Mattyasovszky about 8 years ago. Updated almost 8 years ago.

Status:
Released
Priority:
N/A
Assignee:
-
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

When you have a malformed .ocs.gz inventory, the send-clean.sh script fails:

the decompression fails but the error is not handled:

+ /bin/gzip --force --quiet --decompress /var/rudder/inventories/incoming/badserver-2016-09-20-10-49-31.ocs.gz

gzip: /var/rudder/inventories/incoming/badserver-2016-09-20-10-49-31.ocs.gz: unexpected end of file

Then the curl invocation fails, because the expected uncompressed file is not present, that is supposed to be uploaded:

++ /usr/bin/curl --proxy '' -f -F file=@/var/rudder/inventories/incoming/badserver-2016-09-20-10-49-31.ocs -o /dev/null -w '%{http_code}' http://localhost:8080/endpoint/upload/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (26) failed creating formpost data

# ls /var/rudder/inventories/incoming/badserver-2016-09-20-10-49-31.ocs
ls: cannot access /var/rudder/inventories/incoming/badserver-2016-09-20-10-49-31.ocs: No such file or directory

Actions #1

Updated by Alexis Mousset about 8 years ago

  • Category changed from Server components to Techniques
  • Target version set to 3.1.18
Actions #2

Updated by Janos Mattyasovszky about 8 years ago

  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/1093
Actions #3

Updated by Janos Mattyasovszky about 8 years ago

  • Status changed from New to Pending release
  • % Done changed from 0 to 100
Actions #4

Updated by Vincent MEMBRÉ almost 8 years ago

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 3.1.18, 3.2.11, 4.0.3 and 4.1.0~beta3 which were released today.

Actions #5

Updated by Benoît PECCATTE almost 8 years ago

  • Found in version (s) 3.1.11 added
Actions #6

Updated by Benoît PECCATTE almost 8 years ago

  • Found in version(s) old deleted (3.1.11)
Actions

Also available in: Atom PDF