Public bug reported:

Ubuntu 22.04
Telegraf is configured with docker input:
[[inputs.docker]]
  endpoint = "unix:///run/podman/podman.sock"
  gather_services = false
  source_tag = false
  container_name_include = []
  container_name_exclude = []
  storage_objects = []
  timeout = "5s"
  docker_label_include = []
  docker_label_exclude = []
if /run/podman/podman.sock is missing while (re)starting telegraf service, then 
telegraf 1.36.3-1 and latest as of now, 1.36.4-1, will crash at startup:
[root@int2fvpvms001-scl-five9lab-com telegraf.d]# dpkg-query -W |grep telegraf
telegraf        1.36.4-1
[root@int2fvpvms001-scl-five9lab-com telegraf.d]# rm -f /run/podman/podman.sock
[root@int2fvpvms001-scl-five9lab-com telegraf.d]# systemctl restart telegraf
[root@int2fvpvms001-scl-five9lab-com telegraf.d]# systemctl status telegraf
× telegraf.service - Telegraf
     Loaded: loaded (/lib/systemd/system/telegraf.service; enabled; vendor 
preset: enabled)
    Drop-In: /etc/systemd/system/telegraf.service.d
             └─override.conf
     Active: failed (Result: exit-code) since Fri 2025-12-05 21:01:59 UTC; 4s 
ago
       Docs: https://github.com/influxdata/telegraf
    Process: 2091712 ExecStart=/usr/bin/telegraf -config 
/etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d 
$TELEGRAF_OPTS (code=exited, status=1/FAILURE)
   Main PID: 2091712 (code=exited, status=1/FAILURE)
        CPU: 95ms

Dec 05 21:01:59 int2fvpvms001-scl-five9lab-com systemd[1]: telegraf.service: 
Scheduled restart job, restart counter is at 5.
Dec 05 21:01:59 int2fvpvms001-scl-five9lab-com systemd[1]: Stopped Telegraf.
Dec 05 21:01:59 int2fvpvms001-scl-five9lab-com systemd[1]: telegraf.service: 
Start request repeated too quickly.
Dec 05 21:01:59 int2fvpvms001-scl-five9lab-com systemd[1]: telegraf.service: 
Failed with result 'exit-code'.
Dec 05 21:01:59 int2fvpvms001-scl-five9lab-com systemd[1]: Failed to start 
Telegraf.


telegraf 1-36.2-1 simply complains that docker inputs unavailable.
[root@int2fvpvms001-scl-five9lab-com telegraf.d]# apt install telegraf=1.36.2-1 
-y --allow-downgrades
......
[root@int2fvpvms001-scl-five9lab-com telegraf.d]# dpkg-query -W |grep telegraf
telegraf        1.36.2-1
[root@int2fvpvms001-scl-five9lab-com telegraf.d]# rm -f /run/podman/podman.sock
[root@int2fvpvms001-scl-five9lab-com telegraf.d]# systemctl restart telegraf
[root@int2fvpvms001-scl-five9lab-com telegraf.d]# systemctl status telegraf
● telegraf.service - Telegraf
     Loaded: loaded (/lib/systemd/system/telegraf.service; enabled; vendor 
preset: enabled)
    Drop-In: /etc/systemd/system/telegraf.service.d
             └─override.conf
     Active: active (running) since Fri 2025-12-05 20:56:33 UTC; 15s ago
       Docs: https://github.com/influxdata/telegraf
   Main PID: 2089091 (telegraf)
      Tasks: 13 (limit: 4546)
     Memory: 35.5M
        CPU: 341ms
     CGroup: /system.slice/telegraf.service
             └─2089091 /usr/bin/telegraf -config /etc/telegraf/telegraf.conf 
-config-directory /etc/telegraf/telegraf.d

Dec 05 20:56:33 int2fvpvms001-scl-five9lab-com telegraf[2089091]: 
2025-12-05T20:56:33Z I! Loaded secretstores:
Dec 05 20:56:33 int2fvpvms001-scl-five9lab-com telegraf[2089091]: 
2025-12-05T20:56:33Z I! Loaded outputs: prometheus_client
Dec 05 20:56:33 int2fvpvms001-scl-five9lab-com telegraf[2089091]: 
2025-12-05T20:56:33Z I! Tags enabled: farm=shared 
host=int2fvpvms001-scl-five9lab-com stage=int2
Dec 05 20:56:33 int2fvpvms001-scl-five9lab-com telegraf[2089091]: 
2025-12-05T20:56:33Z I! [agent] Config: Interval:10s, Quiet:false, 
Hostname:"int2fvpvms001-sc…terval:10s
Dec 05 20:56:33 int2fvpvms001-scl-five9lab-com telegraf[2089091]: 
2025-12-05T20:56:33Z W! [agent] The default value of 
'skip_processors_after_aggregators' will…o 'false'!
Dec 05 20:56:33 int2fvpvms001-scl-five9lab-com telegraf[2089091]: 
2025-12-05T20:56:33Z E! DeprecationError: Value "false" for option 
"ignore_protocol_stats" of…ocol stats
Dec 05 20:56:33 int2fvpvms001-scl-five9lab-com systemd[1]: Started Telegraf.
Dec 05 20:56:33 int2fvpvms001-scl-five9lab-com telegraf[2089091]: 
2025-12-05T20:56:33Z I! [outputs.prometheus_client] Listening on 
http://0.0.0.0:9273/metrics
Dec 05 20:56:40 int2fvpvms001-scl-five9lab-com telegraf[2089091]: 
2025-12-05T20:56:40Z E! [inputs.docker] Error in plugin: Cannot connect to the 
Docker daemon …n running?
Dec 05 20:56:40 int2fvpvms001-scl-five9lab-com telegraf[2089091]: 
2025-12-05T20:56:40Z E! [inputs.docker] Error in plugin: Cannot connect to the 
Docker daemon …n running?
Hint: Some lines were ellipsized, use -l to show in full.

** Affects: ubuntu
     Importance: Undecided
         Status: Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2134251

Title:
  telegraf 1.36.3-1 with docker input crashes if docker socket missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/2134251/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to