withfig / fig

Public issue tracker for Fig.
https://fig.io
MIT License
2.04k stars 63 forks source link

bug: fig-daemon.service restarts indefinitely #2949

Closed adhamsalama closed 5 months ago

adhamsalama commented 6 months ago

Checks

Operating system

Fedora Linux

Expected behaviour

I have uninstalled Fig like a year ago, and when I run jouranctl -e now I see logs for fig-daemon.service trying to start and failing then restarting.

Here are the longs:

May 18 16:22:49 fedora systemd[1826]: fig-daemon.service: Scheduled restart job, restart counter is at 4.
May 18 16:22:49 fedora systemd[1826]: Started fig-daemon.service - Fig Daemon.
May 18 16:22:49 fedora (fig)[3604]: fig-daemon.service: Failed to locate executable fig: No such file or directory
May 18 16:22:49 fedora (fig)[3604]: fig-daemon.service: Failed at step EXEC spawning fig: No such file or directory
May 18 16:22:49 fedora systemd[1826]: fig-daemon.service: Main process exited, code=exited, status=203/EXEC
May 18 16:22:49 fedora systemd[1826]: fig-daemon.service: Failed with result 'exit-code'.

Actual behaviour

It should have been uninstalled completely from the system.

Steps to reproduce

No response

Environment

No response

grant0417 commented 6 months ago

Hey to remove that you can run sudo systemctl disable --now fig-daemon to disable the daemon. We no longer distribute the Linux version so this should not be an issue for future users.

adhamsalama commented 6 months ago

@grant0417 When I run that command I get this: Failed to disable unit: Unit file fig-daemon.service does not exist

grant0417 commented 5 months ago

Can you run sudo systemctl status fig-daemon and systemctl status --user fig-daemon

adhamsalama commented 5 months ago

sudo systemctl status fig-daemon

Unit fig-daemon.service could not be found.

systemctl status --user fig-daemon

     Loaded: loaded (/home/adham/.config/systemd/user/fig-daemon.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/user/service.d
             └─10-timeout-abort.conf
     Active: activating (auto-restart) (Result: exit-code) since Fri 2024-06-07 21:10:56 EEST; 2s ago
    Process: 6101 ExecStart=fig daemon (code=exited, status=203/EXEC)
   Main PID: 6101 (code=exited, status=203/EXEC)
        CPU: 3ms

@grant0417

grant0417 commented 5 months ago

Okay to remove it permanently run the following steps, let me know if you have any additional issues:

systemctl --user stop fig-daemon.service
systemctl --user disable fig-daemon.service
rm -f ~/.config/systemd/user/fig-daemon.service
adhamsalama commented 5 months ago

It worked, thanks @grant0417!

maddler commented 4 months ago

I tried the proposed solution but that's not working. Any clue how to resolve this?

2024-07-09T23:49:30.275240+01:00 pihole2 systemd[3678928]: fig-daemon.service: Failed at step EXEC spawning /usr/bin/fig: No such file or directory 2024-07-09T23:49:30.275508+01:00 pihole2 systemd[2359]: fig-daemon.service: Main process exited, code=exited, status=203/EXEC 2024-07-09T23:49:30.275864+01:00 pihole2 systemd[2359]: fig-daemon.service: Failed with result 'exit-code'. 2024-07-09T23:49:35.495165+01:00 pihole2 systemd[2359]: fig-daemon.service: Scheduled restart job, restart counter is at 706901. 2024-07-09T23:49:35.495709+01:00 pihole2 systemd[2359]: Stopped fig-daemon.service - Fig Daemon. 2024-07-09T23:49:35.517779+01:00 pihole2 systemd[2359]: Started fig-daemon.service - Fig Daemon. 2024-07-09T23:49:35.518750+01:00 pihole2 systemd[3678934]: fig-daemon.service: Failed to locate executable /usr/bin/fig: No such file or directory 2024-07-09T23:49:35.519071+01:00 pihole2 systemd[3678934]: fig-daemon.service: Failed at step EXEC spawning /usr/bin/fig: No such file or directory 2024-07-09T23:49:35.519417+01:00 pihole2 systemd[2359]: fig-daemon.service: Main process exited, code=exited, status=203/EXEC 2024-07-09T23:49:35.519891+01:00 pihole2 systemd[2359]: fig-daemon.service: Failed with result 'exit-code'. 2024-07-09T23:49:40.745212+01:00 pihole2 systemd[2359]: fig-daemon.service: Scheduled restart job, restart counter is at 706902. 2024-07-09T23:49:40.745566+01:00 pihole2 systemd[2359]: Stopped fig-daemon.service - Fig Daemon. 2024-07-09T23:49:40.777766+01:00 pihole2 systemd[2359]: Started fig-daemon.service - Fig Daemon. 2024-07-09T23:49:40.778889+01:00 pihole2 systemd[3678937]: fig-daemon.service: Failed to locate executable /usr/bin/fig: No such file or directory 2024-07-09T23:49:40.779154+01:00 pihole2 systemd[3678937]: fig-daemon.service: Failed at step EXEC spawning /usr/bin/fig: No such file or directory 2024-07-09T23:49:40.780405+01:00 pihole2 systemd[2359]: fig-daemon.service: Main process exited, code=exited, status=203/EXEC 2024-07-09T23:49:40.780905+01:00 pihole2 systemd[2359]: fig-daemon.service: Failed with result 'exit-code'.

root@pihole2:/var/log# systemctl status --user fig-daemon Failed to connect to bus: No medium found