You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
When td-agent.conf includes multibyte character comments, td-agent aborts in booting linux.
## in /var/log/boot.log
Starting td-agent: * Stopping save kernel messages [ OK ]
* Starting crash report submission daemon [ OK ]
/opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config/basic_parser.rb:56:in `skip': invalid byte sequence in US-ASCII (ArgumentError)
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config/basic_parser.rb:56:in `skip'
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config/basic_parser.rb:80:in `spacing'
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config/v1_parser.rb:58:in `parse_element'
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config/v1_parser.rb:41:in `parse!'
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config/v1_parser.rb:31:in `parse'
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/config.rb:29:in `parse'
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/supervisor.rb:466:in `read_config'
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/supervisor.rb:130:in `start'
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/lib/fluent/command/fluentd.rb:171:in `<top (required)>'
from /opt/td-agent/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /opt/td-agent/embedded/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
from /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.20/bin/fluentd:6:in `<top (required)>'
from /opt/td-agent/embedded/bin/fluentd:23:in `load'
from /opt/td-agent/embedded/bin/fluentd:23:in `<top (required)>'
from /usr/sbin/td-agent:7:in `load'
from /usr/sbin/td-agent:7:in `<main>'
* td-agent
But when using service command (or /etc/init.d/td-agent) manually, td-agent succeeds to start.
/etc/inint.d/td-agent start
# or
service td-agent start
steps to reproduce
1 add below line to /etc/td-agent/td-agent.conf
# あいうえお
2 reboot OS.
3 then td-agent aborts. check /var/log/boot.log.
version
I tried two environments.
Ubuntu 12.04
Ubuntu 14.04
$ /opt/td-agent/embedded/bin/ruby --version
ruby 2.1.8p440 (2015-12-16 revision 53160) [x86_64-linux]
$ /opt/td-agent/usr/sbin/td-agent --version
td-agent 0.12.20
$ aptitude show td-agent
Package: td-agent
New: yes
State: installed
Automatically installed: no
Version: 2.3.1-0
Priority: extra
Section: misc
Maintainer: Treasure Data, Inc
Architecture: amd64
Uncompressed Size: 217 M
Conflicts: td-agent
Description: Treasure Agent: A data collector for Treasure Data
Homepage: http://treasuredata.com
workaround
If I add export LANG="en_US.UTF-8" to /etc/init.d/td-agent or /etc/default/td-agent, then td-agent starts successfully in booting linux.
When td-agent.conf includes multibyte character comments, td-agent aborts in booting linux.
But when using service command (or /etc/init.d/td-agent) manually, td-agent succeeds to start.
steps to reproduce
version
I tried two environments.
workaround
If I add
export LANG="en_US.UTF-8"to /etc/init.d/td-agent or /etc/default/td-agent, then td-agent starts successfully in booting linux.Or delete all comments.