I installed v1.1.13 on CentOS 6.4 from RPM repository.
When I started the td-agent service, I got the following error:
$ sudo service td-agent start
Starting td-agent: 2013-04-30 02:46:08 +0900 [error]: fluent/supervisor.rb:196:rescue in main_process: unexpected error error="Operation not permitted"
2013-04-30 02:46:08 +0900 [error]: fluent/supervisor.rb:197:rescue in main_process: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.33/lib/fluent/supervisor.rb:276:in `groups='
2013-04-30 02:46:08 +0900 [error]: fluent/supervisor.rb:197:rescue in main_process: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.33/lib/fluent/supervisor.rb:276:in `change_privilege'
2013-04-30 02:46:08 +0900 [error]: fluent/supervisor.rb:197:rescue in main_process: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.33/lib/fluent/supervisor.rb:85:in `block in start'
.....
The line 276 in supervisor.rb is "Process.groups = Process.groups | user_groups".
I debugged and found that Process.uid was the one of td-agent user on that line.
Also, executing "td-agent" directly is no problem.
Then I checked the init script and noticed that "DAEMON_ARGS=${DAEMON_ARGS---user td-agent}" on the line 33.
This option runs the process as td-agent user, but "Process.groups =" must be executed by root.
So this line should be changed to "DAEMON_ARGS=${DAEMON_ARGS-}".
And the td-agent service gave no error with this change.
Best regards,
Eiichi Shimotori
--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Masahiro, thank you for checking.
Just in case, could you show me the content of /etc/sysconfig/td-agent?
Eiichi Shimotori
My /etc/sysconfig/td-agent is:
PIDFILE=/var/run/td-agent/td-agent.pid
TD_AGENT_ARGS="/usr/sbin/td-agent --user td-agent --group td-agent --log /var/log/td-agent/td-agent.log"
"--user td-agent" must be the cause.
This is my fault. Sorry for that.
Eiichi Shimotori
Eiichi Shimotori
--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.