Jira (PUP-6035) Puppet Throws Exception when Running Under Unicode Windows User

3 views
Skip to first unread message

Ryan Gard (JIRA)

unread,
Mar 9, 2016, 6:40:03 PM3/9/16
to puppe...@googlegroups.com
Ryan Gard created an issue
 
Puppet / Bug PUP-6035
Puppet Throws Exception when Running Under Unicode Windows User
Issue Type: Bug Bug
Affects Versions: PUP 4.4.0
Assignee: Unassigned
Components: Windows
Created: 2016/03/09 3:39 PM
Environment:

Agent: Windows Server 2012 R2 (WIN_SUT)

Labels: windows
Priority: Normal Normal
Reporter: Ryan Gard

Description

If a user attempts to run Puppet under a Unicode Windows user account an unhandled exception will be thrown.

Attachments

  • None.

Reproduction Steps

  1. Install Puppet Agent test build on WIN_SUT.
  2. Create user "㔲㔳㔴㔵㔶" and join the user to the "Administrators" group on WIN_SUT.
  3. Logoff and logon as the "㔲㔳㔴㔵㔶" user on the WIN_SUT.
  4. Open a Puppet console and execute the following command:

    C:\>puppet --version
    Error: Could not initialize global default settings: Invalid argument @ dir_s_mk
    dir - C:/Users/?????

Expect

Puppet should display the version number.

Actual

Puppet throws an unhandled exception:

C:\>puppet --version
Error: Could not initialize global default settings: Invalid argument @ dir_s_mk
dir - C:/Users/?????
 
C:\>chcp 65001
Active code page: 65001
 
C:\>puppet --version
Error: Could not initialize global default settings: Invalid argument @ dir_s_mk
dir - C:/Users/?????

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc)
Atlassian logo

Ethan Brown (JIRA)

unread,
Mar 10, 2016, 5:28:03 PM3/10/16
to puppe...@googlegroups.com

Ethan Brown (JIRA)

unread,
Mar 10, 2016, 5:29:03 PM3/10/16
to puppe...@googlegroups.com

Michael Smith (JIRA)

unread,
Mar 14, 2016, 12:52:03 PM3/14/16
to puppe...@googlegroups.com
Michael Smith commented on Bug PUP-6035
 
Re: Puppet Throws Exception when Running Under Unicode Windows User

We noticed in

FACT-1341 that File.expand_path returns a path in the local code page, which appears to cause this issue.

Kylo Ginsberg (JIRA)

unread,
Mar 18, 2016, 5:59:03 PM3/18/16
to puppe...@googlegroups.com
Kylo Ginsberg updated an issue
 
Change By: Kylo Ginsberg
Fix Version/s: PUP 4.4.1
Fix Version/s: PUP 4.4.2

Craig Gomes (JIRA)

unread,
Mar 21, 2016, 4:48:05 PM3/21/16
to puppe...@googlegroups.com
Craig Gomes updated an issue
Change By: Craig Gomes
Sprint: Windows 2016-04- 06 20

Steve Barlow (JIRA)

unread,
Mar 28, 2016, 4:55:02 PM3/28/16
to puppe...@googlegroups.com
Steve Barlow updated an issue
Change By: Steve Barlow
Fix Version/s: PUP 4.4.2
Fix Version/s: PUP 4.5.0
This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Atlassian logo

Ethan Brown (JIRA)

unread,
Apr 4, 2016, 5:18:05 PM4/4/16
to puppe...@googlegroups.com
Ethan Brown updated an issue
Change By: Ethan Brown
Sprint: Windows 2016- 04 05 - 20 04

Steve Barlow (JIRA)

unread,
Apr 20, 2016, 1:41:12 PM4/20/16
to puppe...@googlegroups.com
Steve Barlow updated an issue
Change By: Steve Barlow
Sprint: Windows 2016-05- 04 18

Glenn Sarti (JIRA)

unread,
May 3, 2016, 5:14:03 PM5/3/16
to puppe...@googlegroups.com

Glenn Sarti (JIRA)

unread,
May 3, 2016, 5:16:04 PM5/3/16
to puppe...@googlegroups.com
Glenn Sarti commented on Bug PUP-6035

Using conemu

PS C:\Users\㔲㔳㔴㔵㔶> cd \source
PS C:\source> cd puppet
PS C:\source\puppet> bundle exec puppet --version
C:/tools/ruby21/lib/ruby/site_ruby/2.1.0/rbreadline.rb:1097:in `<module:RbReadline>': HOME environment variable (or HOMEDRIV
E and HOMEPATH) must be set and point to a directory (RuntimeError)
        from C:/tools/ruby21/lib/ruby/site_ruby/2.1.0/rbreadline.rb:17:in `<top (required)>'
        from C:/tools/ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/tools/ruby21/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from C:/tools/ruby21/lib/ruby/site_ruby/2.1.0/readline.rb:10:in `<module:Readline>'
        from C:/tools/ruby21/lib/ruby/site_ruby/2.1.0/readline.rb:8:in `<top (required)>'
...

Glenn Sarti (JIRA)

unread,
May 3, 2016, 6:35:04 PM5/3/16
to puppe...@googlegroups.com
Glenn Sarti commented on Bug PUP-6035

As per

FACT-1341

Using ConEmu

C:\Windows\system32>facter --version
3.1.5 (commit b5c2cf9b2ac290cb17fcadea19b467a39e17c1fd)
 
C:\Windows\system32>set u
USERDOMAIN=WIN-EDSON23CGLF
USERDOMAIN_ROAMINGPROFILE=WIN-EDSON23CGLF
USERNAME=㔲㔳㔴㔵㔶
USERPROFILE=C:\Users\㔲㔳㔴㔵㔶
 
C:\Windows\system32>

Using previous facter which does not have

FACT-1341 applied

C:\Users\㔲㔳㔴㔵㔶>facter --version
3.1.4 (commit c08a5ed7606b6cd8be3a146b247c03bf7213c445)
C:\Users\㔲㔳㔴㔵㔶>puppet --version
4.3.2
 
 
C:\Users\㔲㔳㔴㔵㔶>chcp 437
Active code page: 437
 
C:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.16 seconds
Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: U+3532 from UTF-8 to IBM437
Notice: Applied catalog in 0.05 seconds
 
C:\Users\㔲㔳㔴㔵㔶>chcp 1252
Active code page: 1252
 
C:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.17 seconds
Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: U+3532 to WINDOWS-1252 in conversion from UTF-8 to WINDOWS-1252
Notice: Applied catalog in 0.05 seconds
 
C:\Users\㔲㔳㔴㔵㔶>chcp 65001
Active code page: 65001
 
C:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.14 seconds
Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: Invalid argument @ dir_chdir - C:/Users/?????
Notice: Applied catalog in 1.09 seconds

Glenn Sarti (JIRA)

unread,
May 3, 2016, 6:41:05 PM5/3/16
to puppe...@googlegroups.com
Glenn Sarti commented on Bug PUP-6035

Using Latest Puppet Agent

 
C:\Users\㔲㔳㔴㔵㔶>facter --version
3.1.6 (commit 3a021f47393001e7acdde60e53ff8ac0cc04a9ec)
 
C:\Users\㔲㔳㔴㔵㔶>puppet --version
4.4.2
 
C:\Users\㔲㔳㔴㔵㔶>chcp 437
Active code page: 437
 
C:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.13 seconds
Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: U+3532 from UTF-8 to IBM437
Notice: Applied catalog in 0.05 seconds
 
C:\Users\㔲㔳㔴㔵㔶>chcp 1252
Active code page: 1252
 
C:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.13 seconds
Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: U+3532 to WINDOWS-1252 in conversion from UTF-8 to WINDOWS-1252
Notice: Applied catalog in 0.05 seconds
 
C:\Users\㔲㔳㔴㔵㔶>chcp 65001
Active code page: 65001
 
C:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.14 seconds
Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: Invalid argument @ dir_chdir - C:/Users/?????
Notice: Applied catalog in 1.08 seconds

C:\Users\㔲㔳㔴㔵㔶>facter --version

3.1.6 (commit 3a021f47393001e7acdde60e53ff8ac0cc04a9ec)

C:\Users\㔲㔳㔴㔵㔶>puppet --version

4.4.2

C:\Users\㔲㔳㔴㔵㔶>chcp 437
Active code page: 437

C:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp

Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.13 seconds


Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: U+3532 from UTF-8 to IBM437
Notice: Applied catalog in 0.05 seconds

C:\Users\㔲㔳㔴㔵㔶>chcp 1252
Active code page: 1252

C:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp

Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.13 seconds


Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: U+3532 to WINDOWS-1252 in conversion from UTF-8 to WINDOWS-1252
Notice: Applied catalog in 0.05 seconds

C:\Users\㔲㔳㔴㔵㔶>chcp 65001
Active code page: 65001

C:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.14 seconds
Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: Invalid argument @ dir_chdir - C:/Users/?????

Notice: Applied catalog in 1.08 seconds

C:\Users\㔲㔳㔴㔵㔶>ruby -v
ruby 2.1.8p440 (2015-12-16 revision 53160) [x64-mingw32]

 

Glenn Sarti (JIRA)

unread,
May 3, 2016, 6:46:03 PM5/3/16
to puppe...@googlegroups.com
Glenn Sarti commented on Bug PUP-6035

Interesting error

C:\Users\㔲㔳㔴㔵㔶>gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.4.5.1
  - RUBY VERSION: 2.1.8 (2015-12-16 patchlevel 440) [x64-mingw32]
  - INSTALLATION DIRECTORY: c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/gems/2.1.0
  - RUBY EXECUTABLE: "c:/Program Files/Puppet Labs/Puppet/sys/ruby/bin/ruby.exe"
  - EXECUTABLE DIRECTORY: c:/Program Files/Puppet Labs/Puppet/sys/ruby/bin
  - SPEC CACHE DIRECTORY: C:/Users/?????/.gem/specs    <--------------- ERROR
  - SYSTEM CONFIGURATION DIRECTORY: C:/ProgramData
  - RUBYGEMS PLATFORMS:
    - ruby
    - x64-mingw32
  - GEM PATHS:
     - c:/Program Files/Puppet Labs/Puppet/sys/ruby/lib/ruby/gems/2.1.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - c:\Program Files\Puppet Labs\Puppet\puppet\bin
     - c:\Program Files\Puppet Labs\Puppet\facter\bin
     - c:\Program Files\Puppet Labs\Puppet\hiera\bin
     - c:\Program Files\Puppet Labs\Puppet\mcollective\bin
     - c:\Program Files\Puppet Labs\Puppet\bin
     - c:\Program Files\Puppet Labs\Puppet\sys\ruby\bin
     - c:\Program Files\Puppet Labs\Puppet\sys\tools\bin
     - C:\Program Files\ConEmu
     - C:\Program Files\ConEmu\ConEmu
     - C:\tools\ruby21\bin
     - C:\Windows\system32
     - C:\Windows
     - C:\Windows\System32\Wbem
     - C:\Windows\System32\WindowsPowerShell\v1.0\
     - C:\ProgramData\chocolatey\bin
     - C:\Program Files\Git\cmd
     - C:\Program Files (x86)\GitExtensions\
     - C:\Program Files\Perforce
     - C:\tools\DevKit2\bin
     - C:\Users\㔲㔳㔴㔵㔶\.dnx\bin
     - C:\Program Files\Microsoft DNX\Dnvm\
     - C:\Program Files\Microsoft SQL Server\120\Tools\Binn\
     - C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\
     - C:\Program Files\Microsoft\Web Platform Installer\
     - C:\Program Files (x86)\Microsoft SDKs\Azure\CLI\wbin
     - C:\Program Files\Puppet Labs\Puppet\bin

Glenn Sarti (JIRA)

unread,
May 3, 2016, 6:55:07 PM5/3/16
to puppe...@googlegroups.com
Glenn Sarti commented on Bug PUP-6035

Have been unable to reproduce exactly but still seeing errors

Unable to test anything that requires bundler due to it's use of rb-readline failing hard.

Glenn Sarti (JIRA)

unread,
May 3, 2016, 6:58:04 PM5/3/16
to puppe...@googlegroups.com
Glenn Sarti commented on Bug PUP-6035

Interesting error. Looks working directory related

 
C:\source>chcp 65001
Active code page: 65001
 
C:\source>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.14 seconds
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns:
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: Name                           Value
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ----                           -----
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ALLUSERSPROFILE                C:\ProgramData
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ANSICON                        124x1000 (124x57)
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ANSICON_DEF                    7
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: APPDATA                        C:\Users\㔲㔳㔴㔵㔶\AppData\Roaming
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: APT_LISTBUGS_FRONTEND          none
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: APT_LISTCHANGES_FRONTEND       none
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ChocolateyInstall              C:\ProgramData\chocolatey
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: CommonProgramFiles             C:\Program Files\Common Files
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: CommonProgramFiles(x86)        C:\Program Files (x86)\Common Files
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: CommonProgramW6432             C:\Program Files\Common Files
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: COMPUTERNAME                   WIN-EDSON23CGLF
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ComSpec                        C:\Windows\system32\cmd.exe
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuANSI                     ON
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuAnsiLog
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuBackHWND                 0x000A0418
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuBaseDir                  C:\Program Files\ConEmu\ConEmu
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuBuild                    160204
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuDir                      C:\Program Files\ConEmu
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuDrawHWND                 0x001C0234
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuDrive                    C:
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuHooks                    Enabled
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuHWND                     0x0007040E
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuIsAdmin                  ADMIN
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuPID                      1620
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuServerPID                7856
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuWorkDir                  C:\Users\㔲㔳㔴㔵㔶
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ConEmuWorkDrive                C:
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: DEBIAN_FRONTEND                noninteractive
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: FACTER_env_windows_installdir  c:\Program Files\Puppet Labs\Puppet
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: FACTERDIR                      c:\Program Files\Puppet Labs\Puppet\facter
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: FP_NO_HOST_CHECK               NO
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: HIERA_DIR                      c:\Program Files\Puppet Labs\Puppet\hiera
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: HOME                           C:/Users/㔲㔳㔴㔵㔶
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: HOMEDRIVE                      C:
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: HOMEPATH                       \Users\㔲㔳㔴㔵㔶
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: LOCALAPPDATA                   C:\Users\㔲㔳㔴㔵㔶\AppData\Local
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: LOGONSERVER                    \\WIN-EDSON23CGLF
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: MCOLLECTIVE_DIR                c:\Program Files\Puppet Labs\Puppet\mcollective
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: NUMBER_OF_PROCESSORS           2
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: OS                             Windows_NT
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: Path                           c:\Program Files\Puppet Labs\Puppet\facter/bin;c:\Program Files\Puppet Labs\Puppet\puppet...
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PATHEXT                        .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.RB;.RBW;.CPL
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PL_BASEDIR                     c:\Program Files\Puppet Labs\Puppet
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PROCESSOR_ARCHITECTURE         AMD64
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PROCESSOR_IDENTIFIER           Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PROCESSOR_LEVEL                6
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PROCESSOR_REVISION             3a09
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ProgramData                    C:\ProgramData
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ProgramFiles                   C:\Program Files
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ProgramFiles(x86)              C:\Program Files (x86)
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ProgramW6432                   C:\Program Files
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PROMPT                         $P$G
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PSModulePath                   C:\Users\㔲㔳㔴㔵㔶\Documents\WindowsPowerShell\Modules;C:\Program Files\WindowsPowerShell\Mod...
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PUBLIC                         C:\Users\Public
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: PUPPET_DIR                     c:\Program Files\Puppet Labs\Puppet\puppet
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: RUBYLIB                        c:/Program Files/Puppet Labs/Puppet/puppet/lib;c:/Program Files/Puppet Labs/Puppet/facter...
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: RUBYOPT                        rubygems
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: SCRIPT_NAME                    puppet
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: SCRIPT_TEMP                    puppet
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: SSL_CERT_DIR                   C:\Windows\system32\ssl\certs
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: SSL_CERT_FILE                  C:\Windows\system32\ssl\cert.pem
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: SystemDrive                    C:
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: SystemRoot                     C:\Windows
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: TEMP                           C:\Users\5BAD~1\AppData\Local\Temp
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: TMP                            C:\Users\5BAD~1\AppData\Local\Temp
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: USER                           㔲㔳㔴㔵㔶
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: USERDOMAIN                     WIN-EDSON23CGLF
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: USERDOMAIN_ROAMINGPROFILE      WIN-EDSON23CGLF
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: USERNAME                       㔲㔳㔴㔵㔶
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: USERPROFILE                    C:\Users\㔲㔳㔴㔵㔶
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: VS140COMNTOOLS                 C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: windir                         C:\Windows
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: executed successfully
Notice: Applied catalog in 2.18 seconds
 
C:\source>cd \users
 
C:\Users>cd 㔲㔳㔴㔵㔶
 
C:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.12 seconds
Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: Invalid argument @ dir_chdir - C:/Users/?????
Notice: Applied catalog in 1.08 seconds

Glenn Sarti (JIRA)

unread,
May 4, 2016, 12:42:04 PM5/4/16
to puppe...@googlegroups.com
Glenn Sarti commented on Bug PUP-6035

Maybe related...

Logged in as administrator (no UTF8)
Source Code is at C:\Source\Puppet

SET BUNDLE_GEMFILE=c:\source\puppet\Gemfile
 
CD C:\
 
 
C:\>bundle exec puppet apply c:\bad.pp
DL is deprecated, please use Fiddle
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.17 seconds
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns:
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: Name                           Value
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ----                           -----
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: _ORIGINAL_GEM_PATH
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ALLUSERSPROFILE                C:\ProgramData
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ANSICON                        124x1000 (124x73)
....
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: VS140COMNTOOLS                 C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: windir                         C:\Windows
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: executed successfully
Notice: Applied catalog in 4.23 seconds
 
C:\>cd c:\Users\㔲㔳㔴㔵㔶
 
c:\Users\㔲㔳㔴㔵㔶>bundle exec puppet apply c:\bad.pp
C:/tools/ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:53:in `chdir': Invalid argument @ dir_chdir - c:/Users/????? (Errno::EINVAL)
        from C:/tools/ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:53:in `block in chdir'
        from C:/tools/ruby21/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
        from C:/tools/ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/shared_helpers.rb:52:in `chdir'
        from C:/tools/ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.11.2/lib/bundler.rb:339:in `load_gemspec_uncached'
        from C:/tools/ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.11.2/lib/bundler.rb:329:in `load_gemspec'
        from C:/tools/ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/source/path.rb:135:in `block in load_spec_files'
        from C:/tools/ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/source/path.rb:134:in `each'
        from C:/tools/ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/source/path.rb:134:in `load_spec_files'
        from C:/tools/ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/source/path.rb:92:in `local_specs'
        from C:/tools/ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/source/path.rb:100:in `specs'
        from C:/tools/ruby21/lib/ruby/gems/2.1.0/gems/bundler-1.11.2/lib/bundler/definition.rb:564:in `block in converge_loc
...

Glenn Sarti (JIRA)

unread,
May 4, 2016, 12:47:05 PM5/4/16
to puppe...@googlegroups.com
Glenn Sarti commented on Bug PUP-6035

More interesting

Logged in as administrator (no UTF8)

Running Puppet from install (not source)

 
c:\>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.12 seconds
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns:
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: Name                           Value
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ----                           -----
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ALLUSERSPROFILE                C:\ProgramData
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ANSICON                        124x1000 (124x73)
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: ANSICON_DEF                    7
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: APPDATA                        C:\Users\Administrator\AppD
......
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: VMPOOL_TOKEN                   test
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: VS140COMNTOOLS                 C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: windir                         C:\Windows
 
Notice: /Stage[main]/Main/Exec[tomcat-configure-service]/returns: executed successfully
Notice: Applied catalog in 2.17 seconds
 
c:\>cd c:\Users\㔲㔳㔴㔵㔶
 
c:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.12 seconds
Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: U+3532 from UTF-8 to IBM437
Notice: Applied catalog in 0.05 seconds
 
c:\Users\㔲㔳㔴㔵㔶>chcp 65001
Active code page: 65001
 
c:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.12 seconds
Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: Invalid argument @ dir_chdir - c:/Users/?????
Notice: Applied catalog in 1.08 seconds
 
c:\Users\㔲㔳㔴㔵㔶>

Glenn Sarti (JIRA)

unread,
May 4, 2016, 12:51:03 PM5/4/16
to puppe...@googlegroups.com
Glenn Sarti commented on Bug PUP-6035

Confirmed...The Dir.chdir command is trying to convert the UTF8 pathname into the local code page

Added some debug text;
C:\Program Files\Puppet Labs\Puppet\puppet\lib\puppet\exec.rb

    debug "Executing#{check ? " check": ""} '#{command}'"
    begin
      # Do our chdir
      puts "DEBUG TEST"
      puts "dir = #{dir}"
      Dir.chdir(dir) do
        environment = {}

Output:

c:\Users\㔲㔳㔴㔵㔶>puppet apply c:\bad.pp
Notice: Compiled catalog for win-edson23cglf.localdomain in environment production in 0.14 seconds
DEBUG TEST
dir = c:\Users\㔲㔳㔴㔵㔶
Error: /Stage[main]/Main/Exec[tomcat-configure-service]: Could not evaluate: Invalid argument @ dir_chdir - c:/Users/?????
Notice: Applied catalog in 1.08 seconds

Steve Barlow (JIRA)

unread,
May 4, 2016, 1:27:04 PM5/4/16
to puppe...@googlegroups.com
Steve Barlow updated an issue
Change By: Steve Barlow
Fix Version/s: PUP 4.5.0
Fix Version/s: PUP 4.y

Steve Barlow (JIRA)

unread,
May 4, 2016, 1:28:07 PM5/4/16
to puppe...@googlegroups.com
Steve Barlow updated an issue
Change By: Steve Barlow
Sprint: Windows 2016- 05 06 - 18 15

Kenaz Kwa (JIRA)

unread,
May 23, 2016, 4:47:11 PM5/23/16
to puppe...@googlegroups.com
Kenaz Kwa updated an issue
Change By: Kenaz Kwa
Sprint: Windows 2016-06- 15 29

Larissa Lane (JIRA)

unread,
May 24, 2016, 6:24:03 PM5/24/16
to puppe...@googlegroups.com
Larissa Lane updated an issue
Change By: Larissa Lane
Labels: i18n  utf-8  windows

Craig Gomes (JIRA)

unread,
Jun 13, 2016, 5:04:05 PM6/13/16
to puppe...@googlegroups.com
Craig Gomes updated an issue
Change By: Craig Gomes
Sprint: Windows 2016- 06 07 - 29 13 - Choco Un

Kenaz Kwa (JIRA)

unread,
Jun 16, 2016, 4:35:03 PM6/16/16
to puppe...@googlegroups.com
Kenaz Kwa updated an issue
Change By: Kenaz Kwa
Sprint: Windows 2016-07-13 - Choco Un

Ethan Brown (JIRA)

unread,
Sep 21, 2016, 6:08:06 PM9/21/16
to puppe...@googlegroups.com
Ethan Brown assigned an issue to Ethan Brown
Change By: Ethan Brown
Assignee: Ethan Brown
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Ethan Brown (JIRA)

unread,
Sep 21, 2016, 6:09:03 PM9/21/16
to puppe...@googlegroups.com

Ethan Brown (JIRA)

unread,
Sep 21, 2016, 6:09:04 PM9/21/16
to puppe...@googlegroups.com
Ethan Brown assigned an issue to Unassigned
Change By: Ethan Brown
Assignee: Ethan Brown

Ethan Brown (JIRA)

unread,
Oct 7, 2016, 9:26:04 PM10/7/16
to puppe...@googlegroups.com
Ethan Brown commented on Bug PUP-6035
 
Re: Puppet Throws Exception when Running Under Unicode Windows User

I have moved this into the Phase 1 Blockers epic PUP-6718, because the underlying Ruby Dir.chdir seems to be having issues, and that should impact other uses within Puppet. If we want to create a new ticket around Dir problems we can do that - moving this ticket back into the Developer epic PUP-6720.

I believe that Dir.entries and other Dir methods may misbehave with Unicode paths.

Geoff Nichols (JIRA)

unread,
Jan 23, 2017, 10:26:04 PM1/23/17
to puppe...@googlegroups.com
Geoff Nichols updated an issue
 
Change By: Geoff Nichols
Sprint: AP Grooming 2017-02-01

Geoff Nichols (JIRA)

unread,
Mar 1, 2017, 12:00:45 PM3/1/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
Mar 1, 2017, 12:01:09 PM3/1/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
Mar 1, 2017, 12:01:35 PM3/1/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
Mar 8, 2017, 4:27:03 AM3/8/17
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Sprint: Agent Grooming  On-Deck

Geoff Nichols (JIRA)

unread,
Mar 15, 2017, 12:37:07 PM3/15/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
Mar 22, 2017, 8:38:03 AM3/22/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
Apr 5, 2017, 11:28:04 PM4/5/17
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Sprint: Agent Puppet 5  Grooming

Geoff Nichols (JIRA)

unread,
Apr 11, 2017, 4:32:02 PM4/11/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
Apr 11, 2017, 4:33:02 PM4/11/17
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Fix Version/s: PUP 5.y
Fix Version/s: PUP 5.0.0

Geoff Nichols (JIRA)

unread,
Apr 11, 2017, 4:35:03 PM4/11/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
Apr 11, 2017, 4:35:03 PM4/11/17
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Acceptance Criteria: Puppet does not throw an exception when running under a Unicode user on Windows.

Geoff Nichols (JIRA)

unread,
Apr 11, 2017, 4:35:03 PM4/11/17
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Sprint: Puppet 5 Grooming Agent Ready for Engineering

Geoff Nichols (JIRA)

unread,
Apr 18, 2017, 6:18:02 PM4/18/17
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Fix Version/s: PUP 5.0.0
Fix Version/s: PUP 5.y

Geoff Nichols (JIRA)

unread,
Apr 21, 2017, 8:55:03 PM4/21/17
to puppe...@googlegroups.com
Geoff Nichols updated an issue
Change By: Geoff Nichols
Sprint: Agent  Ready for Engineering  N+2

Geoff Nichols (JIRA)

unread,
Apr 24, 2017, 9:44:03 AM4/24/17
to puppe...@googlegroups.com

Geoff Nichols (JIRA)

unread,
Apr 25, 2017, 9:14:03 AM4/25/17
to puppe...@googlegroups.com

Sean McDonald (JIRA)

unread,
May 16, 2017, 2:37:05 PM5/16/17
to puppe...@googlegroups.com
Sean McDonald updated an issue
Change By: Sean McDonald
Labels: i18n  triaged  utf-8 windows

Karen Van der Veer (JIRA)

unread,
Aug 4, 2017, 2:42:04 PM8/4/17
to puppe...@googlegroups.com
Karen Van der Veer updated an issue
Change By: Karen Van der Veer
Sprint: Platform Core  2017-09-19  Grooming

Moses Mendoza (JIRA)

unread,
Aug 7, 2017, 7:14:03 PM8/7/17
to puppe...@googlegroups.com
Moses Mendoza updated an issue
Change By: Moses Mendoza
Sprint: Platform Core Grooming

Josh Cooper (Jira)

unread,
Jun 6, 2020, 7:53:02 PM6/6/20
to puppe...@googlegroups.com
Josh Cooper updated an issue
Change By: Josh Cooper
Team: Coremunity Night's Watch
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages