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

Elastic Agent fails to start using instructions for sysvinit systems #22360

Closed
jsoriano opened this issue Nov 2, 2020 · 1 comment · Fixed by #22543
Closed

Elastic Agent fails to start using instructions for sysvinit systems #22360

jsoriano opened this issue Nov 2, 2020 · 1 comment · Fixed by #22543

Comments

@jsoriano
Copy link
Member

jsoriano commented Nov 2, 2020

Elastic Agent fails to start on a sysvinit system when following the instructions for systems not based on systemd that can be found in the getting started docs:

# service elastic-agent start
Error: unknown command "test" for "elastic-agent"
Run 'elastic-agent --help' for usage.
unknown command "test" for "elastic-agent"
   ...fail!

Same happens when init.d script is called directly:

# /etc/init.d/elastic-agent start
Error: unknown command "test" for "elastic-agent"
Run 'elastic-agent --help' for usage.
unknown command "test" for "elastic-agent"
   ...fail!

The problem seems to be that this script calls the subcommand test config, that is not available in Agent:

TEST_ARGS="-e test config"

If this script is supposed to work, the test subcommand should be supported by Agent, or it shouldn't be called there. If only systemd is supported, the init script should be removed, and docs updated.

In principle all the Linux distributions supported by Agent, support systemd (see support matrix). Though SysV init can be used at least in Debian 9 and 10 (by installing the sysvinit-core package).

Reported in discuss: https://discuss.elastic.co/t/elastic-agent-init-script-calls-unavailable-test-command/253811

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

Successfully merging a pull request may close this issue.

3 participants