sabuto / hassio-telegraf

MIT License
28 stars 14 forks source link

Segmentation fault #29

Closed 0p3t0 closed 3 years ago

0p3t0 commented 4 years ago

Good morning, Unfortunately I receive segmentation fault 1 or 2 times a day.

running on Raspberry Pi2B System | HassOS 4.11 Deployment | production

Telegraf Current version: 0.5.4 (changelog)

Please let me know if you need more details

this is the log:

[15:04:08] INFO: Updating config [15:04:10] INFO: Updating config for Kernel [15:04:10] INFO: Updaing config for Swap [15:04:10] INFO: Updating config for Docker [15:04:10] INFO: Updating config for Smart Monitor [15:04:10] INFO: Updating config for thermal zone sensors [15:04:10] INFO: .../sys/class/thermal/thermal_zone0 [15:04:11] INFO: Finished updating config, Starting Telegraf 2020-08-06T13:04:12Z I! Starting Telegraf 1.13.2 2020-08-06T13:04:12Z I! Using config file: /etc/telegraf/telegraf.conf 2020-08-06T13:04:13Z I! Loaded inputs: cpu diskio swap swap interrupts net file kernel smart processes internal linux_sysctl_fs netstat sensors docker disk mem system nstat 2020-08-06T13:04:13Z I! Loaded aggregators: 2020-08-06T13:04:13Z I! Loaded processors: 2020-08-06T13:04:13Z I! Loaded outputs: influxdb 2020-08-06T13:04:13Z I! Tags enabled: flush_interval=10s host=raspy 2020-08-06T13:04:13Z I! [agent] Config: Interval:10s, Quiet:false, Hostname:"raspy", Flush Interval:10s /run.sh: line 188: 5270 Segmentation fault (core dumped) telegraf

Thanks a lot in advance, and thanks a lot for the work done until now =)

sabuto commented 4 years ago

i'll have a look into this thanks for letting me know :)

fliphess commented 3 years ago

I think this is because of: https://github.com/influxdata/telegraf/issues/8277 If so, it was fixed with the upgrade to 1.17. 👍

sabuto commented 3 years ago

@0p3t0 did this fix it?

0p3t0 commented 3 years ago

@0p3t0 did this fix it?

I've enabled Watchdog function on Home Assistant docker plugin, so basically as workaround I don't feel anymore relevant crashes, but I'll upgrade Telegraf plugin tomorrow, disabling Watchdog to give you a consistent feedback. Meanwhile thanks a lot for your effort! :)

sabuto commented 3 years ago

@0p3t0 did this fix it?

I've enabled Watchdog function on Home Assistant docker plugin, so basically as workaround I don't feel anymore relevant crashes, but I'll upgrade Telegraf plugin tomorrow, disabling Watchdog to give you a consistent feedback. Meanwhile thanks a lot for your effort! :)

I appreciate that thanks :), tbf it was @fliphess who did it :D

0p3t0 commented 3 years ago

Hi @Sabuto, @fliphess, After 24h from update to telegraf plugin in Home assistant, version of plugin 0.5.6, I didn't detected any crash, so we can consider the bug as fixed :) Thanks a lot!