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
I am getting "System error 1067" when I try to run telegraf with a remote config file #4235
Comments
Reproduces with today's nightly on Windows x86. |
@vlastahajek Can you look into this one? |
Sure.. |
Hi All, I have tried with the latest version of the telegraf i.e 1.12.5 with the below command and there is no issue if we provide the full path of the configuration file like below. PLEASE FOLLOW THE BELOW STEPS. I also got the server error issue when i used the command like below. C:\Program Files\telegraf>telegraf.exe -service install -config telegraf.conf also if you are using some different directory please make sure that telegraf have the permission to access the config file. Hope this helps you. |
@vlastahajek is it possible to add an option to provide a different RunAs account while installing the service? That way you can run telegraf as a different user or as systemlocal by default. |
This is basically possible. What is your main installation use case? Installing Telegraf using scripts? |
In my case, I have my own powershell module for installing agents and adding configuration, but what it does is essentially open cmd and type "telegraf.exe --service install --config folder --config-directory other_folder" Adding a flag for the telegraf.exe would be optimal, but the same could be done with a few lines of powershell |
Trying to install Telegraf as a Windows Service on Windows Server 2012 R2 Standard Before installing the service, I ensured the test was successful. It doesn't seem to be a problem with the config. I tried to install the service in different ways and none of them made a difference. It installed the registry key correctly though Does anyone have any idea? |
Try these things:
Error 1607 means that the service could not be start due to corrupt files / corrupt service registry key / anything related to windows trying to run the service by itself and failing Hope it helps |
@SoloWinf Did you try to install an older version? I use 1.11 in my production. It might sound silly, but did you restart your server during the process, windows operating system have a tendency to "solve themselves" after restarting. Comparing what you posted to what i have everything seems to be the same. |
I just tried with 1.11.0, still doesn't work. |
It works with version 1.13.3 (i386) on a couple of Windows 2012 R2 Standard x64 servers. Thanks @TheSilverHawkx for your time. |
@SoloWinf, When you experience an error during the start of Telegraf, check log entries in Event Viewer->Application, please. There should be an error reported by Telegraf |
So I kept running into posts, same as this one, where people suggest messing with your registries, deleting telegraf, re-installing, etc. |
@0x5nc Indeed, this could be the most often issue of config file problem. |
As I mentioned earlier, I've been able to deploy 1.13.3 (i386) on several Windows 2012 R2 Standard x64 servers without a problem. The version that did not work on any of those servers was telegraf-1.13.3_windows_amd64. |
Can you please share me the config file. Mostly issue will be there in config.. |
I have the same Issue, windows server 2016, half servers works but the other half does not |
i tried with the latest version but getting same error, I can start it with but when I try to start as a service I get error 1067 |
@evollution , could you, please, check for the Telegraf service error in the Windows Event Log? https://github.com/influxdata/telegraf/blob/master/docs/WINDOWS_SERVICE.md#troubleshooting |
I'm going to close this issue since this is a generic error message, there is no particular bug to fix for this issue. If you experience this error, the advice from @vlastahajek check the Windows Event Log is correct. |
It seems this was caused by our antivirus, since the exe is not signed the service start is blocked by our AV |
I am installing telegraf service on Windows 10 Enterprise x64 using the following command:
But when I try to run the service (net start telegraf), I am getting the following error message: (nothing in the log)
net start telegraf
The Telegraf Data Collector Service service is starting.
The Telegraf Data Collector Service service could not be started.
A system error has occurred.
System error 1067 has occurred.
The process terminated unexpectedly.
Any idea why or how to overcome this?
The text was updated successfully, but these errors were encountered: