Skip to content

Error killing process: TerminateProcess: Access is denied #18746

@tguenneguez

Description

@tguenneguez

Relevant telegraf.conf

[[inputs.exec]]
  commands = [ "powershell.exe -OutputFormat Text -NonInteractive -NoProfile -NoLogo -File check_update_status.ps1" ]
  data_format = "influx"
  timeout = "59s"
  interval = "60s"

Logs from Telegraf

2026-04-20T07:21:33Z W! [inputs.exec] Collection took longer than expected; not complete after interval of 1m0s
2026-04-20T07:21:34Z E! [agent] Error killing process: TerminateProcess: Access is denied.

System info

Windows Serveur 2016

Docker

No response

Steps to reproduce

  1. Have a powershell script that response in more than timeout
  2. Run telegraf as service

Expected behavior

Why ower windows, the service is not able to kill child process ?

Actual behavior

Be able to kill child process

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugunexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions