fluentd-ui icon indicating copy to clipboard operation
fluentd-ui copied to clipboard

fluentd-ui start fail

Open tangjiaxing669 opened this issue 5 years ago • 4 comments

This is my config info:

[root@Jasontom ~]# td-agent --version
td-agent 1.9.0

[root@Jasontom ~]# td-agent-gem --version
WARN: Unresolved specs during Gem::Specification.reset:
      tzinfo (< 3.0, >= 1.0, >= 1.0.0)
WARN: Clearing out unresolved specs.
Please report a bug if this causes problems.
2.6.14

[root@Jasontom ~]# td-agent-gem install -V fluentd-ui
.....
.....

[root@Jasontom ~]# /opt/td-agent/embedded/lib/ruby/gems/2.4.0/bin/fluentd-ui setup
[root@Jasontom ~]# /opt/td-agent/embedded/lib/ruby/gems/2.4.0/bin/fluentd-ui start
[root@Jasontom ~]# /opt/td-agent/embedded/lib/ruby/gems/2.4.0/bin/fluentd-ui status
fluentd-ui is stopped

Execute start without any output.

tangjiaxing669 avatar Jan 29 '20 13:01 tangjiaxing669

I'm seeing the same problem. I have td-agent 1.9.2, running on Ubuntu bionic.

Is any log generated by fluentd-ui?

neil-greenwood avatar Feb 27 '20 09:02 neil-greenwood

td-agent 1.9.0 or 1.9.2 seems too old, probably you mean td-agent 3.6.0 with fluentd-1.9.2. (td-agent --version shows fluentd's version instead of td-agent package's version).

I confirmed this issue with td-agent 3.6.0. The cause is that shebang of /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-ui-1.2.1/bin/fluentd-ui (which is the actual path of the executable) is inappropriate for td-agent:

#!/usr/bin/env ruby

ashie avatar Jul 27 '20 04:07 ashie

A workaround for it is that adding /opt/td-agent/embedded/bin to your PATH:

sudo PATH=/opt/td-agent/embedded/bin:$PATH /opt/td-agent/embedded/lib/ruby/gems/2.4.0/bin/fluentd-ui start

ashie avatar Jul 27 '20 05:07 ashie

The cause is that shebang of /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-ui-1.2.1/bin/fluentd-ui (which is the actual path of the executable) is inappropriate for td-agent:

#!/usr/bin/env ruby

The detail is incorrect. /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-ui-1.2.1/bin/fluentd-ui is executed correctly by load. But it fails to run bundler since it can't find the path.

ashie avatar Jul 27 '20 06:07 ashie