-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 service with S7Comm plugin will stopped after started 10s if the PLC is not available #15609
Comments
The host is windows 10 |
Hi, Please enable In general, telegraf will fail to start up if it fails to connect to a device. This is the expected behavior as it makes it very clear that something is wrong to the user. It could be a bad password, connection, etc. We have added some connection error retry logic to some plugins and could possibly add this here, but I would like to see a complete set of logs first. Thanks |
you are welcome! 2024-07-10T00:42:09Z I! Starting Telegraf 1.31.1 brought to you by InfluxData the makers of InfluxDB Looks like the program crashed at line 156 and not logging more information |
I think connection error retry logic for this plugins is very useful given our plant network situation, Thanks |
@GitTurboy just for my understanding, do you see an error message in the log or does it stop with |
if run as a service , the log were just same as what I posted. 【and the service will stoped !】 2024-07-10T07:42:44Z W! �[31mOutputs are not used in testing mode!�[0m |
@GitTurboy please test the binary in PR #15655, available as soon as CI finished the tests, and let me know if this fixes the issue! You should set |
I have tried and All looks well. After observer several days, I will close this problem. Thank you! |
@GitTurboy please don't close the issue, it will automatically be closed as soon as we do merge the corresponding PR! Anyway, please let me know in here how your tests went, even though the issue might be closed already! In case of any problem feel free to reopen the issue! |
Relevant telegraf.conf
Logs from Telegraf
System info
Telegraf 1.31.1
Docker
No response
Steps to reproduce
...
Expected behavior
the service should keep run
and try to reconnect to PLC periody
Actual behavior
the service stoped
Additional info
no
The text was updated successfully, but these errors were encountered: