The Puppet Labs Issue Tracker has Moved: https://tickets.puppetlabs.com

This issue tracker is now in read-only archive mode and automatic ticket export has been disabled. Redmine users will need to create a new JIRA account to file tickets using https://tickets.puppetlabs.com. See the following page for information on filing tickets with JIRA:

Bug #22493

Can't start puppet agent on non english Windows

Added by Yoann Le Touche over 2 years ago. Updated over 1 year ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Rob Reynolds% Done:

0%

Category:windows
Target version:3.3.1
Affected Puppet version:3.2.4 Branch:
Keywords:windows

We've Moved!

Ticket tracking is now hosted in JIRA: https://tickets.puppetlabs.com


Description

This is also at PUP-316.

When installing puppet with the >=3.2.4 installer, the Puppet Agent service fail to start.

While not pressing cancel and invoking puppet from the command line the following error occurs :

C:\Program Files (x86)\Puppet Labs\Puppet\bin>puppet.bat --help
C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/win32-dir-0.4.3/lib/win32/dir.rb:95:in `encode': "\xE9" to UTF-8
 in conversion from ASCII-8BIT to UTF-8 to CP850 (Encoding::UndefinedConversionError)
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/win32-dir-0.4.3/lib/win32/dir.rb:95:in `block in '
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/win32-dir-0.4.3/lib/win32/dir.rb:74:in `each'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/win32-dir-0.4.3/lib/win32/dir.rb:74:in `
'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/gems/1.9.1/gems/win32-dir-0.4.3/lib/win32/dir.rb:5:in `'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require
'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/facter/lib/facter/util/config.rb:44:in `'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/facter/lib/facter/util/resolution.rb:7:in `'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/facter/lib/facter/util/fact.rb:2:in `'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/facter/lib/facter.rb:23:in `'
        from C:/Program Files (x86)/Puppet Labs/Puppet/facter/lib/facter.rb:19:in `'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet.rb:6:in `'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/puppet/lib/puppet/util/command_line.rb:12:in `'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/sys/ruby/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Puppet Labs/Puppet/puppet/bin/puppet:3:in `
'

Sometimes you will see “Service ‘Puppet Agent’ (puppet) could not be installed. Verify that you have sufficient privileges to install system services.”


Related issues

Related to Puppet - Bug #17010: win32-dir gem returns a string whose encoding is not `asc... Closed
Related to Puppet - Bug #23379: puppet agent 3.4.0-rc1 and windows 7 Professional (DE edi... Needs More Information
Duplicated by Puppet - Bug #22613: puppet agent installer 3.2.4 and 3.3.0 on windows xp (sp2... Duplicate
Duplicated by Puppet - Bug #22583: invalid byte sequence in US-ASCII Duplicate
Duplicated by Puppet - Bug #23185: puppet agent service can't start when using GBK encoding ... Accepted

History

#1 Updated by Josh Cooper over 2 years ago

  • Status changed from Unreviewed to Accepted
  • Target version set to 3.3.1
  • Keywords set to windows

Thanks Yoann. Apparently the fix for #17010 does not work as expected. There is something wrong with the win32-dir gem. We will take a look at this.

#3 Updated by Rob Reynolds over 2 years ago

In puppet 3.3.0, I’m having trouble reproducing this with a Spanish instance.

#4 Updated by Rob Reynolds over 2 years ago

Rob Reynolds wrote:

In puppet 3.3.0, I’m having trouble reproducing this with a Spanish instance.

Its default encoding is CP850. Let me back up to 3.2.4 and see if I can reproduce.

#5 Updated by Rob Reynolds over 2 years ago

Rob Reynolds wrote:

Rob Reynolds wrote:

In puppet 3.3.0, I’m having trouble reproducing this with a Spanish instance.

Its default encoding is CP850. Let me back up to 3.2.4 and see if I can reproduce.

Unable to reproduce. The agent starts up just fine with Spanish

#6 Updated by Rob Reynolds over 2 years ago

What version of Windows are you seeing this on? I am running Windows 2008R2 ES

#7 Updated by Rob Reynolds over 2 years ago

  • Assignee set to Rob Reynolds

#8 Updated by Yoann Le Touche over 2 years ago

Rob Reynolds wrote:

What version of Windows are you seeing this on? I am running Windows 2008R2 ES

I tested this on Windows 7 FR

#9 Updated by Rob Reynolds over 2 years ago

Yoann Le Touche wrote:

Rob Reynolds wrote:

What version of Windows are you seeing this on? I am running Windows 2008R2 ES

I tested this on Windows 7 FR

Let me see if I can grab a copy. Thanks!

#10 Updated by Rob Reynolds over 2 years ago

Yoann Le Touche wrote:

Rob Reynolds wrote:

What version of Windows are you seeing this on? I am running Windows 2008R2 ES

I tested this on Windows 7 FR

x86 or x64?

#11 Updated by Rob Reynolds over 2 years ago

Rob Reynolds wrote:

Yoann Le Touche wrote:

Rob Reynolds wrote:

What version of Windows are you seeing this on? I am running Windows 2008R2 ES

I tested this on Windows 7 FR

x86 or x64?

SP1 or without?

#12 Updated by Rob Reynolds over 2 years ago

Rob Reynolds wrote:

Rob Reynolds wrote:

Yoann Le Touche wrote:

Rob Reynolds wrote:

What version of Windows are you seeing this on? I am running Windows 2008R2 ES

I tested this on Windows 7 FR

x86 or x64?

SP1 or without?

And terribly sorry, but last question – what SKU of Windows 7? Home, Professional, Ultimate or Enterprise?

#13 Updated by Yoann Le Touche over 2 years ago

Rob Reynolds wrote:

Rob Reynolds wrote:

Rob Reynolds wrote:

Yoann Le Touche wrote:

Rob Reynolds wrote:

What version of Windows are you seeing this on? I am running Windows 2008R2 ES

I tested this on Windows 7 FR

x86 or x64?

SP1 or without?

And terribly sorry, but last question – what SKU of Windows 7? Home, Professional, Ultimate or Enterprise?

x64, SP1, Professional.

I played a little with https://github.com/djberg96/win32-dir/blob/ffi/lib/win32/dir.rb#L95 before and the error occured with the key Networks while the path had the word “Réseau” in it. the character “é” is the source of the problem from what I saw.

#14 Updated by Yoann Le Touche over 2 years ago

Tested on Windows 7 Professional SP1 (x86_64) French

#15 Updated by Rob Reynolds over 2 years ago

Reproduced to some degree! Installing puppet msi is a no go because it tries to start the service and errors out.

#16 Updated by Rob Reynolds over 2 years ago

Rob Reynolds wrote:

Reproduced to some degree! Installing puppet msi is a no go because it tries to start the service and errors out.

And now that I have extracted the contents of the MSI out, I have reproduced this issue with 3.2.4!

#17 Updated by Josh Cooper over 2 years ago

  • Status changed from Accepted to Merged - Pending Release

Committed to 1.9.3 branch of puppet-win32-ruby in commit db0b1d3a and will be rolled into 3.3.1 release.

#18 Updated by Rob Reynolds over 2 years ago

It looks like the commit was merged into win32-dir already as well – https://github.com/djberg96/win32-dir/pull/6

#19 Updated by Melissa Stone over 2 years ago

  • Status changed from Merged - Pending Release to Closed

Released in puppet 3.3.1-rc3

#20 Updated by Claudiu Vasadi over 2 years ago

I still see the problem with puppet master and agent version 3.3.1. The agent is running on a German edition of Windows 7 Professional SP1 x64 and the master is running on FreeBSD 9.2 amd64.

I am getting the following errors from puppet agent console on windows (same errors are recorded to the eventlog): Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not intern from pson: “\xE4” on US-ASCII Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skopping run

The master reports: Could not intern from pson: “\x84” on US-ASCII Could not intern from pson: “\xE4” on US-ASCII

puppet.conf: pluginsource = puppet://puppet.local/plugins reports = store, http reporturl = http://puppet.local:3000/reports/upload

Can anyone reproduce this?

#21 Updated by Rob Reynolds over 2 years ago

Claudiu Vasadi wrote:

I still see the problem with puppet master and agent version 3.3.1. The agent is running on a German edition of Windows 7 Professional SP1 x64 and the master is running on FreeBSD 9.2 amd64.

I am getting the following errors from puppet agent console on windows (same errors are recorded to the eventlog): Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not intern from pson: “\xE4” on US-ASCII Warning: Not using cache on failed catalog Error: Could not retrieve catalog; skopping run

The master reports: Could not intern from pson: “\x84” on US-ASCII Could not intern from pson: “\xE4” on US-ASCII

puppet.conf: pluginsource = puppet://puppet.local/plugins reports = store, http reporturl = http://puppet.local:3000/reports/upload

Can anyone reproduce this?

Please report this as a new issue. We know we have work to do in making more of puppet able to better handle these scenarios. Also when you report the new issue, please include the output with the additional parameters: —trace —debug. Thanks!

#22 Updated by Rob Reynolds over 1 year ago

  • Description updated (diff)

#23 Updated by Rob Reynolds over 1 year ago

  • Description updated (diff)

#24 Updated by Rob Reynolds over 1 year ago

  • Description updated (diff)

Also available in: Atom PDF