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

Telegraf on Windows fails to stop/start or restart after running for an hour+ #4975

Open
xkilian opened this Issue Nov 9, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@xkilian

xkilian commented Nov 9, 2018

Relevant telegraf.conf:

Enable default windows metrics
Send metrics every 30 seconds to 2 Graphite servers carbon-relays
Windows services
Windows processes
5 minute aggregation

System info:

Windows 2008 R2
Windows 2012 Datacenter
Telegraf 1.7.x, 1.8.x

This issue is the same as the closed issue: #3601.

Steps to reproduce:

Start Telegraf, let it run for an hour or so.
Stop it.
Start it. It will fail to start.
Start it again. It will start.

This issue is observed very often, because Telegraf is not stable on Windows, so it will often fail and services.msc can try to restart the services, but it will not work, as the service must be started TWICE for it to start. Has to resort to running a batch file to start it twice if it is not running. Not a very professional solution on Windows.

Expected behavior:

To start the first time...

Actual behavior:

Additional info:

This issue was observer in 1.6x and seemed to be better in 1.7 and the issue was closed. But this issue is still present in all Telegraf versions. Issue #3601 is the original. Should be re-opened as not fixed.

@xkilian

This comment has been minimized.

xkilian commented Nov 9, 2018

Oups.
Meant to say it was thought to be fixed in 1.6 but it is back in 1.7.x and 1.8.x.

@glinton

This comment has been minimized.

Member

glinton commented Nov 9, 2018

Can you include logs from trying to start it? If you are unsure where to find them, try running telegraf in the terminal telegraf.exe --debug --config \path\to\config\file

@xkilian

This comment has been minimized.

xkilian commented Nov 16, 2018

I will do that on monday. Thank you.

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