cloudflare / cloudflare/cloudflared
🐛uninstalling rpm leaves update service
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
After uninstalling RPM package the update service is left behind causing failures
**To Reproduce**
Steps to reproduce the behavior:
1. Install RPM per https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/#linux
2. Run `dnf remove cloudflared`
3. 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.
```bash
○ 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:
```bash
systemctl disable cloudflared-update.timer
systemctl reset-failed cloudflared-update
```
Contributor guide
Assessment
This issue has not been assessed yet.