-
-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
php5-fpm service fails with "invalid byte sequence in US-ASCII" #79
Comments
Thanks for reporting and making us aware of this. I'm not sure, however, if we should fix this or rather forward this to Ondřej because we're no managing the php-fpm upstart config at But I wonder why we don't have this problems as we're also mostly running Ubuntu trusty here. Maybe some environmental differences. Will investigate. |
Not sure if forwarding this will yield a thing since Ondřej already said this:
It might very well be a Puppet issue, but I wanted to be sure other users of this module are able to find this report and an interim solution. For the record, this is the
Some people suggest setting e.g. |
Here is the upstream report for Puppet: upstart provider fails with non-ASCII characters in job conf file with a non-UTF8 locale. I suggest watching that report and adding info as necessary but keep this one open until a fix is applied in Puppet. |
Here's the umbrella task in Puppet and I have yet to grasp the gist of it: |
I have the same problem with this on Ubuntu. Is there any solution yet as I'm not able to find any working ones. |
@Yamakasi ATM only to locally edit the mentioned file and replace/remove the non-ASCII characters. |
@mbrodala Sorry for my delay, but you say replace/remove, which file and which non-ASCII characters as I'm not using one in my own manifests. |
@Yamakasi Have a look at my initial post. The file is shipped with the package. |
I'm not sure what we should do here as this technically is a bug in puppet and not in the module code. We could replace the init file or do some hackery to avoid this but I'm not sure it's worth it. If someone has a nice solution feel free to reopen or submit a PR and let's hope Puppet gets this right soon. |
I solved the problem for me in this way: I added in the field "Supported Locales" the string "cs_CZ.UTF-8". I have several languages added: "en_US.UTF-8", "fr_FR.UTF-8", "it_IT.UTF-8" |
Adding the "cs_CZ.UTF-8" to locales did not work for me. |
I just overpuppetized that string in it's startscript... much better and never an issue anymore. |
@Yamakasi Could tell us more details here? |
@mbrodala simple, just create your own php5-fpm.conf.erb and remove the Characters from his name. Done |
That's one solution, thanks. |
This worked for me after a vagrant destroy |
For the record we are currently using a workaround like this in our config.vm.provision "puppet" do |puppet|
# ...
puppet.facter = {
# Specifying the LANG environment variable this way is a work around.
# The work around can be removed when this issue is fixed https://github.com/mitchellh/vagrant/issues/2270
"hack=hack LANG=en_US.UTF-8 hack" => "hack"
}
end We are also using a Puppet module (saz-locales) to ensure this locale is present. |
The php5-fpm service fails to start on Ubuntu Trusty with an error message like this:
The issue comes from the file
/etc/init/php5-fpm.conf
which contains some non-ascii characters for the upstart script author Ondřej Surý. Manually replacing this with pure ASCII characters fixes the issue.Since I am not sure who can fix this issue I am adding it here for others to find.
See also this issue on ask.puppetlabs.com and in cookbook-php-fpm.
The text was updated successfully, but these errors were encountered: