Re: [Puppet Users] Error with service: "invalid byte sequence in US-ASCII"

Patrick Hemmer
Tue, 19 Feb 2013 05:02:05 -0000

No, but it''s not related to the manifest. The manifest this resource is
in actually hasn''t changed in months. Also I can reboot the box and it
goes away. Other boxes that aren''t doing it will sometimes start doing
it when they reboot. (at least that''s the behaviour I''ve been
observing,
but I have only rebooted a few boxes since this started occurring).
So it seems like it''s environmental, but I have no clue what.

-Patrick


On 02/18/2013 11:57 PM, Conor wrote:
>
> Have you looked for non-printable characters?
>
> `cat -v <filename>` is one of the easier ways to check.
>
> -Conor
>
> On Feb 18, 2013 11:54 AM, "Patrick" <patrick.hemmer@gmail.com
> <mailto:patrick.hemmer@gmail.com>> wrote:
>
>     I just built a new puppet master, and whenever I run puppet on it,
>     it throws an error while processing a service resource:
>
>         # puppet agent -t
>         Info: Retrieving plugin
>         Info: Caching catalog for i-45dc2b1d
>         Info: Applying configuration version ''g
>         9ea47ad19bc706a754c00f00a024309948d3ea03''
>         Error: /Stage[main]/Ipa::Client::Basic/Service[sssd]: Could
>         not evaluate: invalid byte sequence in US-ASCII
>         Notice: Finished catalog run in 15.37 seconds
>
>
>     The debug output:
>
>         Debug: Executing ''/sbin/status sssd''
>         Debug: Executing ''/sbin/initctl --version''
>         Error: /Stage[main]/Ipa::Client::Basic/Service[sssd]: Could
>         not evaluate: invalid byte sequence in US-ASCII
>
>
>
>     This is what the manifest for that resource looks like:
>
>         service { ''sssd'':
>           ensure     => running,
>           enable     => true,
>           hasstatus  => true,
>           hasrestart => true,
>           require    => [ Package[''sssd''],
File[''/etc/sssd/sssd.conf''], ],
>         }
>
>
>
>     This is with ubuntu 12.04 and puppet 3.1
>     Any ideas?
>
>     --
>     You received this message because you are subscribed to the Google
>     Groups "Puppet Users" group.
>     To unsubscribe from this group and stop receiving emails from it,
>     send an email to puppet-users+unsubscribe@googlegroups.com
>     <mailto:puppet-users%2Bunsubscribe@googlegroups.com>.
>     To post to this group, send email to puppet-users@googlegroups.com
>     <mailto:puppet-users@googlegroups.com>.
>     Visit this group at http://groups.google.com/group/puppet-users?hl=en.
>     For more options, visit https://groups.google.com/groups/opt_out.