Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-1055

"invalid byte sequence" with service provider upstart

    Details

    • Template:
    • Team:
      Platform OS

      Description

      I am sometimes getting "invalid byte sequence in US-ASCII" when using the Service type with the upstart provider. (I am not manually setting `provider => 'upstart'`, it is being set based on OS detection).
      The problem seems to randomly pop up, and then goes away on its own. I did manage to capture the output of `agent --trace` during one run when the issue occurred.

      This is with Ubuntu 12.04.1 and ruby 1.9.3-p0

      Error: /Stage[main]/Ipa::Client::Basic/Service[sssd]: Could not evaluate: invalid byte sequence in US-ASCII
      /usr/lib/ruby/vendor_ruby/puppet/provider/service/upstart.rb:204:in `match'
      /usr/lib/ruby/vendor_ruby/puppet/provider/service/upstart.rb:204:in `match'
      /usr/lib/ruby/vendor_ruby/puppet/provider/service/upstart.rb:204:in `block in enabled_post_0_9_0?'
      /usr/lib/ruby/vendor_ruby/puppet/provider/service/upstart.rb:203:in `each_line'
      /usr/lib/ruby/vendor_ruby/puppet/provider/service/upstart.rb:203:in `enabled_post_0_9_0?'
      /usr/lib/ruby/vendor_ruby/puppet/provider/service/upstart.rb:101:in `enabled?'
      /usr/lib/ruby/vendor_ruby/puppet/type/service.rb:56:in `retrieve'
      /usr/lib/ruby/vendor_ruby/puppet/type.rb:1027:in `block in retrieve'
      /usr/lib/ruby/vendor_ruby/puppet/type.rb:1022:in `each'
      /usr/lib/ruby/vendor_ruby/puppet/type.rb:1022:in `retrieve'
      /usr/lib/ruby/vendor_ruby/puppet/type.rb:1041:in `retrieve_resource'
      /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:32:in `perform_changes'
      /usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:133:in `evaluate'
      /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:48:in `apply'
      /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:83:in `eval_resource'
      /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:103:in `block (2 levels) in evaluate'
      /usr/lib/ruby/vendor_ruby/puppet/util.rb:351:in `block in thinmark'
      /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
      /usr/lib/ruby/vendor_ruby/puppet/util.rb:350:in `thinmark'
      /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:103:in `block in evaluate'
      /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:382:in `traverse'
      /usr/lib/ruby/vendor_ruby/puppet/transaction.rb:98:in `evaluate'
      /usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:144:in `apply'
      /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:122:in `block in apply_catalog'
      /usr/lib/ruby/vendor_ruby/puppet/util.rb:179:in `block in benchmark'
      /usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
      /usr/lib/ruby/vendor_ruby/puppet/util.rb:178:in `benchmark'
      /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:121:in `apply_catalog'
      /usr/lib/ruby/vendor_ruby/puppet/configurer.rb:179:in `run'
      /usr/lib/ruby/vendor_ruby/puppet/agent.rb:45:in `block (5 levels) in run'
      /usr/lib/ruby/vendor_ruby/puppet/agent/locker.rb:20:in `lock'
      /usr/lib/ruby/vendor_ruby/puppet/agent.rb:45:in `block (4 levels) in run'
      /usr/lib/ruby/1.9.1/sync.rb:227:in `sync_synchronize'
      /usr/lib/ruby/vendor_ruby/puppet/agent.rb:45:in `block (3 levels) in run'
      /usr/lib/ruby/vendor_ruby/puppet/agent.rb:119:in `with_client'
      /usr/lib/ruby/vendor_ruby/puppet/agent.rb:42:in `block (2 levels) in run'
      /usr/lib/ruby/vendor_ruby/puppet/agent.rb:84:in `run_in_fork'
      /usr/lib/ruby/vendor_ruby/puppet/agent.rb:41:in `block in run'
      /usr/lib/ruby/vendor_ruby/puppet/application.rb:179:in `call'
      /usr/lib/ruby/vendor_ruby/puppet/application.rb:179:in `controlled_run'
      /usr/lib/ruby/vendor_ruby/puppet/agent.rb:39:in `run'
      /usr/lib/ruby/vendor_ruby/puppet/application/agent.rb:338:in `onetime'
      /usr/lib/ruby/vendor_ruby/puppet/application/agent.rb:312:in `run_command'
      /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block (2 levels) in run'
      /usr/lib/ruby/vendor_ruby/puppet/application.rb:456:in `plugin_hook'
      /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `block in run'
      /usr/lib/ruby/vendor_ruby/puppet/util.rb:504:in `exit_on_fail'
      /usr/lib/ruby/vendor_ruby/puppet/application.rb:364:in `run'
      /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:132:in `run'
      /usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:86:in `execute'
      /usr/bin/puppet:4:in `<main>'
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                redmine.exporter redmine.exporter
              • Votes:
                7 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Zendesk Support