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

Can't run --test non-interactively #3395

Closed
absolutejam opened this issue Oct 26, 2017 · 6 comments
Closed

Can't run --test non-interactively #3395

absolutejam opened this issue Oct 26, 2017 · 6 comments
Labels
bug unexpected problem or unintended behavior platform/windows
Milestone

Comments

@absolutejam
Copy link

Bug report

Running 'C:\\opt\\telegraf\\telegraf.exe --config C:\\opt\\telegraf\\telegraf.conf --config-directory C:\\opt\\telegraf\\conf.d --test either within Powershell remoting or viia. SaltStack provides the following error: 2017/10/26 22:23:02 E! The service process could not connect to the service controller. Running other flags, eg. --version works.

Relevant telegraf.conf:

Number of win_perf_counters

System info:

Telegraf v1.4.1 (git: release-1.4 2de7aa2)
Windows

Expected behavior:

Config is tested, printing to stdout.

Actual behavior:

Error: Telegraf v1.4.1 (git: release-1.4 2de7aa23d7d3c3bcf639d417129ab7c17d83399b)

Use case: [Why is this important (helps with prioritizing requests)]

Auto-validation with config-management.

@danielnelson
Copy link
Contributor

I wonder if this would be fixed by #2754

@danielnelson danielnelson added bug unexpected problem or unintended behavior platform/windows labels Oct 26, 2017
@danielnelson
Copy link
Contributor

@absolutejam I think this will be fixed in 1.6, can you retest with a nightly build: https://github.com/influxdata/telegraf#nightly-builds

@danielnelson danielnelson added this to the 1.6.0 milestone Apr 4, 2018
@mahessub
Copy link

hi,
i'm seeing this issue on Windows Telegraf version 1.9.1.
"C:\Program Files\Telegraf\telegraf.exe --test" returns
"2018/12/17 00:32:39 E! The service process could not connect to the service controller."
while
"C:\Program Files\Telegraf\telegraf.exe --version"
works fine.
Can you kindly let me know if this will be fixed?
Thank you!

@danielnelson
Copy link
Contributor

@mahessub Try adding the --console flag: telegraf.exe --console --test.

@mahessub
Copy link

@danielnelson works fine adding "--console" flag. Thanks a lot!

@Hipska
Copy link
Contributor

Hipska commented Sep 10, 2024

@absolutejam have a look at #15732 where there is now an actual config check command..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unexpected problem or unintended behavior platform/windows
Projects
None yet
Development

No branches or pull requests

4 participants