-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugunexpected problem or unintended behaviorunexpected problem or unintended behavior
Description
System info
Telegraf 1.32.1 (git: HEAD@946e4d7d)
Docker
No docker
Steps to reproduce
As a preparation have telegraf installed as a service with telegraf.exe ... service install
Then: Remove telegraf from the service list with sc delete telegraf
Now you can't install telegraf as a service anymore:
C:\Program Files\telegraf>"C:\Program Files\Telegraf\telegraf.exe" --config "C:\Program Files\Telegraf\telegraf.conf" --config-directory "C:\Program Files\Telegraf\telegraf.d" service install
2025-04-23T16:51:02Z E! setting up eventlog source failed: SYSTEM\CurrentControlSet\Services\EventLog\Application\telegraf registry key already exists
But you can't ask telegraf to cleanup everything, either:
C:\Program Files\telegraf>"C:\Program Files\Telegraf\telegraf.exe" service uninstall
2025-04-23T16:50:52Z E! opening service failed: The specified service does not exist as an installed service.
Expected behavior
Being able to use sc
to remove the service and then install it again without having to clean the registry.
Actual behavior
Having to clean the registry.
Additional info
No response
Metadata
Metadata
Assignees
Labels
bugunexpected problem or unintended behaviorunexpected problem or unintended behavior