Skip to content
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

fluentd-ui start fail #298

Open
tangjiaxing669 opened this issue Jan 29, 2020 · 4 comments
Open

fluentd-ui start fail #298

tangjiaxing669 opened this issue Jan 29, 2020 · 4 comments

Comments

@tangjiaxing669
Copy link

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.

@neil-greenwood
Copy link

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

Is any log generated by fluentd-ui?

@ashie
Copy link
Member

ashie commented Jul 27, 2020

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
Copy link
Member

ashie commented Jul 27, 2020

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
Copy link
Member

ashie commented Jul 27, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants