cloudflared
cloudflared copied to clipboard
šuninstalling rpm leaves update service
Describe the bug After uninstalling RPM package the update service is left behind causing failures
To Reproduce Steps to reproduce the behavior:
- Install RPM per https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/#linux
- Run
dnf remove cloudflared - See error
Expected behavior Expect the update service to be removed upon uninstalling RPM.
Environment and versions
- OS: Linux/RHEL
- Architecture: x86
- Version: 9.5
Logs and errors Logs of the failed service after the uninstalled RPM.
ā cloudflared-update.service - Update cloudflared
Loaded: loaded (/etc/systemd/system/cloudflared-update.service; static)
Active: inactive (dead) since Tue 2025-04-22 00:00:00 UTC; 12h ago
Duration: 16ms
TriggeredBy: ā cloudflared-update.timer
Main PID: 1146758 (code=exited, status=127)
CPU: 4ms
Apr 22 00:00:00 host1 systemd[1]: Started Update cloudflared.
Apr 22 00:00:00 host1 bash[1146764]: /bin/bash: line 1: /usr/bin/cloudflared: No such file or directory
Apr 22 00:00:00 host1 systemd[1]: cloudflared-update.service: Main process exited, code=exited, status>
Apr 22 00:00:00 host1 systemd[1]: cloudflared-update.service: Failed with result 'exit-code'.
We disabled it via:
systemctl disable cloudflared-update.timer
systemctl reset-failed cloudflared-update