cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

šŸ›uninstalling rpm leaves update service

Open paulbadcock opened this issue 8 months ago • 0 comments

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.

ā—‹ 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

paulbadcock avatar Apr 22 '25 12:04 paulbadcock