-
Notifications
You must be signed in to change notification settings - Fork 26
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
MSI: Cannot launch worker process when a key with non-ASCII character exists just under SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/
registry
#616
Comments
Thanks for your report! Hmm, does this always occur in a Chinese Windows environment? |
https://github.com/oneclick/rubyinstaller2/blob/1037499985fcaff2c471e88ed254a7b698e508f6/lib/ruby_installer/build/msys2_installation.rb#L61-L84 Hmm, your registry includes a key with non-ASCII character under |
Hmm, I've tried with a such sub key but I can't reproduce it. |
4.5 bug on chinese windowsAs tested, met this issue on version 4.5 without any logs operation. met new issueOn version 4.4.2, can startup without any issue, but try to handle logs with chinese character, met error
log file encode
my config
how to fix it,thanks |
I faced a similar issue on the chinese Windows. It was resolved by manually installing the MSYS2 to the default path (c:/msys64 or c:/msys32) |
I also met the same issue on Japanese Windows. |
I've got the reason. Now I've confirmed this bug. |
You can avoid this bug by creating a following empty file:
|
I confirmed that all td-agent v4 & fluent-package v5 are affected, because it's reproduced with vanilla RubyInstaller 2.7.0 & 3.2.2 (& 3.3.0) too: C:\Users\aho\Downloads\rubyinstaller-2.7.0-1-x64\bin>echo "require 'rubygems'" | ruby -Eascii-8bit:ascii-8bit
Traceback (most recent call last):
15: from <internal:gem_prelude>:1:in `<internal:gem_prelude>'
14: from <internal:gem_prelude>:1:in `require'
13: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/2.7.0/rubygems.rb:1397:in `<top (required)>'
12: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/2.7.0/rubygems.rb:1397:in `require'
11: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/2.7.0/rubygems/defaults/operating_system.rb:3:in `<top (required)>'
10: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/singleton.rb:27:in `enable_dll_search_paths'
9: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/msys2_installation.rb:99:in `enable_dll_search_paths'
8: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/msys2_installation.rb:89:in `mingw_bin_path'
7: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/msys2_installation.rb:76:in `msys_path'
6: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/msys2_installation.rb:48:in `iterate_msys_paths'
5: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/2.7.0/win32/registry.rb:542:in `open'
4: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/2.7.0/win32/registry.rb:435:in `open'
3: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/site_ruby/2.7.0/ruby_installer/runtime/msys2_installation.rb:49:in `block in iterate_msys_paths'
2: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/2.7.0/win32/registry.rb:611:in `each_key'
1: from C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/2.7.0/win32/registry.rb:910:in `export_string'
C:/Users/aho/Downloads/rubyinstaller-2.7.0-1-x64/lib/ruby/2.7.0/win32/registry.rb:910:in `encode': U+3042 to ASCII-8BIT in conversion from UTF-16LE to UTF-8 to ASCII-8BIT (Encoding::UndefinedConversionError) |
This should be treated in fluent-pakckage-builder project. |
SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/
Registry
SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/
RegistrySOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/
Registry
SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/
RegistrySOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/
registry
I want to fix it in upstream, but I'm not sure where to report it yet. The codes which causes this issue: RubyInstaller2: Ruby:
In addition, we should add work around for this issue until it's addressed in upstream. fluent-package-builder/fluent-package/config.rb Lines 38 to 44 in 7e637b3
It would be better to treat only MSYS2 which is installed under C:\opt\fluent , it can be realized easily by adding return here.
|
When a non-ASCII key exists under the registry key `SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/`, Fluentd fails to start workers due to `Encoding::UndefinedConversionError`. This patch avoid this issue. Fix #616 Signed-off-by: Takuro Ashie <ashie@clear-code.com>
When a non-ASCII key exists under the registry key `SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/`, Fluentd fails to start workers due to `Encoding::UndefinedConversionError`. This patch avoid this issue. Fix #616 Signed-off-by: Takuro Ashie <ashie@clear-code.com>
When a non-ASCII key exists under the registry key `SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/`, Fluentd fails to start workers due to `Encoding::UndefinedConversionError`. This patch avoid this issue. Fix #616 Signed-off-by: Takuro Ashie <ashie@clear-code.com>
When a non-ASCII key exists under the registry key `SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/`, Fluentd fails to start workers due to `Encoding::UndefinedConversionError`. This patch avoid this issue. Fix #616 Signed-off-by: Takuro Ashie <ashie@clear-code.com>
When a non-ASCII key exists under the registry key `SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/`, Fluentd fails to start workers due to `Encoding::UndefinedConversionError`. This patch avoid this issue. Fix #616 Signed-off-by: Takuro Ashie <ashie@clear-code.com>
When a non-ASCII key exists under the registry key `SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/`, Fluentd fails to start workers due to `Encoding::UndefinedConversionError`. This patch avoid this issue. Fix #616 Signed-off-by: Takuro Ashie <ashie@clear-code.com>
When a non-ASCII key exists under the registry key `SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/`, Fluentd fails to start workers due to `Encoding::UndefinedConversionError`. This patch avoid this issue. Fix #616 Signed-off-by: Takuro Ashie <ashie@clear-code.com>
When a non-ASCII key exists under the registry key `SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/`, Fluentd fails to start workers due to `Encoding::UndefinedConversionError`. This patch avoid this issue. Fix #616 Signed-off-by: Takuro Ashie <ashie@clear-code.com>
When a non-ASCII key exists under the registry key `SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/`, Fluentd fails to start workers due to `Encoding::UndefinedConversionError`. This patch avoid this issue. Fix #616 Signed-off-by: Takuro Ashie <ashie@clear-code.com>
When a non-ASCII key exists under the registry key `SOFTWARE/Microsoft/Windows/CurrentVersion/Uninstall/`, Fluentd fails to start workers due to `Encoding::UndefinedConversionError`. This patch avoid this issue. Fix #616 Signed-off-by: Takuro Ashie <ashie@clear-code.com>
Describe the bug
I am newbie. met error for log file with chinese character
To Reproduce
td-agent -c etc\td-agent\td-agent.conf
sample log content:
Expected behavior
how to fixed?
Your Environment
Your Configuration
Your Error Log
Additional context
No response
The text was updated successfully, but these errors were encountered: