Actions
Bug #9794
closedMalformed .gz inventory breaks upload process
Pull Request:
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
Updated by Alexis Mousset about 8 years ago
- Category changed from Server components to Techniques
- Target version set to 3.1.18
Updated by Janos Mattyasovszky about 8 years ago
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/1093
Updated by Janos Mattyasovszky about 8 years ago
- Status changed from New to Pending release
- % Done changed from 0 to 100
Applied in changeset rudder-techniques|c8f46b42a36124419edeaa56eb34f419f4ee086e.
Updated by Vincent MEMBRÉ almost 8 years ago
- Status changed from Pending release to Released
Updated by Benoît PECCATTE almost 8 years ago
- Found in version(s) old deleted (
3.1.11)
Actions