dokku / dokku-event-listener

Service that listens to docker events and runs dokku commands
BSD 3-Clause "New" or "Revised" License
11 stars 11 forks source link

After uninstalling dokku, service still runs #114

Open sec0ndhand opened 1 year ago

sec0ndhand commented 1 year ago

Description of problem

I uninstalled dokku.

I expected it to be gone.

I was seeing the service logging to syslog (failing to run), and I didn't think it should run.

After running sudo systemctl stop dokku-event-listener.service it stopped logging.

Steps to reproduce

Install dokku on ubuntu (not sure if this is necessary for reproduction) deploy an app using Postgres and Regis delete all apps uninstall dokku tail -f /var/log/syslog

observe the service still running.

dokku-event-listener version

dunno. It was uninstalled, but still being called every 10 seconds.

Output of failing command

Apr  9 00:00:51 hostname systemd[432964]: dokku-event-listener.service: Failed to locate executable /usr/bin/dokku-event-listener: No such file or directory
Apr  9 00:00:51 hostname systemd[432964]: dokku-event-listener.service: Failed at step EXEC spawning /usr/bin/dokku-event-listener: No such file or directory
Apr  9 00:00:51 hostname systemd[1]: dokku-event-listener.service: Main process exited, code=exited, status=203/EXEC
Apr  9 00:00:51 hostname systemd[1]: dokku-event-listener.service: Failed with result 'exit-code'.
Apr  9 00:01:01 hostname systemd[1]: dokku-event-listener.service: Scheduled restart job, restart counter is at 261998.
Apr  9 00:01:01 hostname systemd[1]: Stopped dokku-event-listener process.
Apr  9 00:01:01 hostname systemd[1]: Started dokku-event-listener process.
josegonzalez commented 1 year ago

Thanks for the bug report!

PhunkyBob commented 6 months ago

Same here. My workaround:

sudo systemctl daemon-reload
sudo systemctl stop dokku-retire.service
sudo systemctl mask dokku-retire.service
sudo systemctl stop dokku-retire.timer
sudo systemctl mask dokku-retire.timer