Bug #19248
closedssh Remote Execution fails when output contains special characters
Description
When using "Run Job" with "Commands" and "Run Command - SSH Default" on CentOS 7.3 with Foreman 13.2 or 14.2 with commands, which produce special character as output, it fails and at least the the following error is displayed:
'Failed to initialize: Dynflow::ExecutionPlan::Steps::Error - Playbook execution failed'
To reproduce, run one ofthe following commands:
systemctl status iptables
echo ●
echo ü
On the other hand the following command is working:
systemctl status iptables | tr -d ●
Maybe, this is not the intended behaviour.
Updated by Marek Hulán over 7 years ago
I encountered the same. As a simple workaround, add LANG=C to the top of the template. I think it's already reported as #18356
Updated by IfAM Admins over 7 years ago
Marek Hulán wrote:
I encountered the same. As a simple workaround, add LANG=C to the top of the template. I think it's already reported as #18356
Thank you for your quick help, we searched the bug reports, but didn't find it. Your idea works like charm.
Updated by Marek Hulán over 7 years ago
- Related to Bug #18356: Smart proxy worker fails on encoding error added