Actions
Bug #6439
closedrudder-agent is stuck, waiting for user input during log compression
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
rudder 3.0.2
If I run manually "cf-agent -KI" on the policy server, it is apparently stuck right after:
2015-03-26T09:25:55+0100 info: /default/root_component_check/methods/'any'/default/compress_webapp_log/files/'/var/log/rudder/webapp'[0]: Transforming '/bin/gzip "/var/log/rudder/webapp/2015_03_13.stderrout.log"'
After some time I got bored and pressed Enter, and I could see the following log line:
2015-03-26T09:26:02+0100 info: /default/root_component_check/methods/'any'/default/compress_webapp_log/files/'/var/log/rudder/webapp'[0]: gzip: /var/log/rudder/webapp/2015_03_13.stderrout.log.gz already exists; do you wish to overwrite (y or n)? not overwritten 2015-03-26T09:26:02+0100 error: /default/root_component_check/methods/'any'/default/compress_webapp_log/files/'/var/log/rudder/webapp'[0]: Finished command related to promiser '/var/log/rudder/webapp' -- an error occurred, returned 2 2015-03-26T09:26:02+0100 error: /default/root_component_check/methods/'any'/default/compress_webapp_log/files/'/var/log/rudder/webapp'[0]: Transformer '/var/log/rudder/webapp/2015_03_13.stderrout.log' => '/bin/gzip "/var/log/rudder/webapp/2015_03_13.stderrout.log"' returned error
Then it's stuck the same way for 2015_03_16.stderrout.log…
I guess you should do what's necessary to ensure the commands called are not in interactive mode. ;-)
Thanks.
Actions