You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discovered this running up telegraf on a raspberry pi. This problem is mentioned tangentially in #1704 but I didn't find an open issue for it.
The arm bundle does not include /etc/telegraf/telegraf.d but the bundled init script uses this path for the config dir arg and the process terminates during startup (see detail in syslog extract below).
Telegraf should be tolerant of a missing config directory, or gracefully handle termination if it's intended that it should stop when the config directory does not exist. If config dir is mandatory then it should be present in the arm bundle.
May 6 03:41:57 astro systemd[1]: Started The plugin-driven server agent for reporting metrics into InfluxDB. May 6 03:41:58 astro telegraf[1726]: panic: runtime error: invalid memory address or nil pointer dereference May 6 03:41:58 astro telegraf[1726]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x14 pc=0xc6044] May 6 03:41:58 astro telegraf[1726]: goroutine 1 [running]: May 6 03:41:58 astro telegraf[1726]: panic(0xad9df0, 0x1141c008) May 6 03:41:58 astro telegraf[1726]: /usr/local/go/src/runtime/panic.go:500 +0x33c May 6 03:41:58 astro telegraf[1726]: github.com/influxdata/telegraf/internal/config.(*Config).LoadDirectory.func1(0xbe9f4f3a, 0x18, 0x0, 0x0, 0x105c420, 0x114cc6e0, 0x0, 0x0) May 6 03:41:58 astro telegraf[1726]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/internal/config/config.go:509 +0x30 May 6 03:41:58 astro telegraf[1726]: path/filepath.Walk(0xbe9f4f3a, 0x18, 0x1141c938, 0x0, 0x0) May 6 03:41:58 astro telegraf[1726]: /usr/local/go/src/path/filepath/path.go:396 +0x8c May 6 03:41:58 astro telegraf[1726]: github.com/influxdata/telegraf/internal/config.(*Config).LoadDirectory(0x11777720, 0xbe9f4f3a, 0x18, 0x0, 0x0) May 6 03:41:58 astro telegraf[1726]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/internal/config/config.go:522 +0x6c May 6 03:41:58 astro telegraf[1726]: main.reloadLoop(0x117c8f40, 0x0, 0x0) May 6 03:41:58 astro telegraf[1726]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:211 +0x11b4 May 6 03:41:58 astro telegraf[1726]: main.main() May 6 03:41:58 astro telegraf[1726]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:342 +0x74 May 6 03:41:58 astro systemd[1]: telegraf.service: main process exited, code=exited, status=2/INVALIDARGUMENT May 6 03:41:58 astro systemd[1]: Unit telegraf.service entered failed state.
The text was updated successfully, but these errors were encountered:
Discovered this running up telegraf on a raspberry pi. This problem is mentioned tangentially in #1704 but I didn't find an open issue for it.
The arm bundle does not include /etc/telegraf/telegraf.d but the bundled init script uses this path for the config dir arg and the process terminates during startup (see detail in syslog extract below).
Telegraf should be tolerant of a missing config directory, or gracefully handle termination if it's intended that it should stop when the config directory does not exist. If config dir is mandatory then it should be present in the arm bundle.
May 6 03:41:57 astro systemd[1]: Started The plugin-driven server agent for reporting metrics into InfluxDB. May 6 03:41:58 astro telegraf[1726]: panic: runtime error: invalid memory address or nil pointer dereference May 6 03:41:58 astro telegraf[1726]: [signal SIGSEGV: segmentation violation code=0x1 addr=0x14 pc=0xc6044] May 6 03:41:58 astro telegraf[1726]: goroutine 1 [running]: May 6 03:41:58 astro telegraf[1726]: panic(0xad9df0, 0x1141c008) May 6 03:41:58 astro telegraf[1726]: /usr/local/go/src/runtime/panic.go:500 +0x33c May 6 03:41:58 astro telegraf[1726]: github.com/influxdata/telegraf/internal/config.(*Config).LoadDirectory.func1(0xbe9f4f3a, 0x18, 0x0, 0x0, 0x105c420, 0x114cc6e0, 0x0, 0x0) May 6 03:41:58 astro telegraf[1726]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/internal/config/config.go:509 +0x30 May 6 03:41:58 astro telegraf[1726]: path/filepath.Walk(0xbe9f4f3a, 0x18, 0x1141c938, 0x0, 0x0) May 6 03:41:58 astro telegraf[1726]: /usr/local/go/src/path/filepath/path.go:396 +0x8c May 6 03:41:58 astro telegraf[1726]: github.com/influxdata/telegraf/internal/config.(*Config).LoadDirectory(0x11777720, 0xbe9f4f3a, 0x18, 0x0, 0x0) May 6 03:41:58 astro telegraf[1726]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/internal/config/config.go:522 +0x6c May 6 03:41:58 astro telegraf[1726]: main.reloadLoop(0x117c8f40, 0x0, 0x0) May 6 03:41:58 astro telegraf[1726]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:211 +0x11b4 May 6 03:41:58 astro telegraf[1726]: main.main() May 6 03:41:58 astro telegraf[1726]: /home/ubuntu/telegraf-build/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:342 +0x74 May 6 03:41:58 astro systemd[1]: telegraf.service: main process exited, code=exited, status=2/INVALIDARGUMENT May 6 03:41:58 astro systemd[1]: Unit telegraf.service entered failed state.
The text was updated successfully, but these errors were encountered: