A stop job is running for Bazarr (DietPi) when shutting down the system

Ive been seeing this for a couple of months now. Currently running Diet PI version DietPi v9.0.2

Its more annoying than anything. What can I do to resolve this?

TIA!

Are you able to stop Bazarr service manually? Do you have Bazarr data located on an external file system or HDD?

I can stop Bazarr with
sudo systemctl stop bazarr

but it takes ages - seems like the same issue but without anything displaying in the shell.

I don’t think I have bazarr installed on external media - it was just a standard install via dietpi-software I believe. If there is a way to confirm where it’s running from let me know.

I have same issue. Stopping Bazaar takes ages. System tryes to stop it also for long time even it is disabled.

Disabled just means if does not start at boot, but can be started manually. If it tries to stop it, it is running, I guess.
The question is also, if you have data, which is managed by bazarr, on an external drive. Maybe at shutdown the drive shuts off before bazarr is stopped.

After trying to stop bazarr manually, you could check service logs if there was a hint why it is taking that long

journalctl -u bazarr

Finally got some time to circle back on this…

Here are the logs after I kill bazarr manually: sudo systemctl stop bazarr

-- Journal begins at Thu 2024-06-06 20:59:46 AEST, ends at Fri 2024-06-07 13:30:47 AEST. --
Jun 06 20:59:48 DietPi systemd[1]: Started Bazarr (DietPi).
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,245 - apscheduler.executors.default    (7f8a4cd1c0) :  WARNING (base:120) - Run time of job "Sync with Radarr (trigger: interval[1:00:00], next run at: 2024-06-06 21:48:08 AEST)" was missed by 0:29:47.311084
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,251 - apscheduler.executors.default    (7f89ccc1c0) :  WARNING (base:120) - Run time of job "Sync with Sonarr (trigger: interval[1:00:00], next run at: 2024-06-06 21:59:18 AEST)" was missed by 0:18:37.317591
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,255 - apscheduler.executors.default    (7f8a4cd1c0) :  WARNING (base:120) - Run time of job "Check Health (trigger: interval[6:00:00], next run at: 2024-06-07 13:57:15 AEST)" was missed by 3:20:40.321628
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,262 - apscheduler.executors.default    (7f894cb1c0) :  WARNING (base:120) - Run time of job "Update Bazarr (trigger: interval[6:00:00], next run at: 2024-06-07 02:08:59 AEST)" was missed by 3:08:56.327946
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,275 - apscheduler.executors.default    (7f88cca1c0) :  WARNING (base:120) - Run time of job "Search for Missing Series Subtitles (trigger: interval[6:00:00], next run at: 2024-06-07 02:13:23 AEST)" was missed by 3:04:32.341088
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,302 - apscheduler.executors.default    (7f6bfff1c0) :  WARNING (base:120) - Run time of job "Update Announcements File (trigger: interval[6:00:00], next run at: 2024-06-07 14:42:11 AEST)" was missed by 2:35:44.367792
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,303 - apscheduler.executors.default    (7f88cca1c0) :  WARNING (base:120) - Run time of job "Search for Missing Movies Subtitles (trigger: interval[6:00:00], next run at: 2024-06-07 14:44:59 AEST)" was missed by 2:32:56.368445
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,303 - apscheduler.scheduler            (7f910c01c0) :  ERROR (base:847) - Error notifying listener
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,304 - apscheduler.executors.default    (7f8a4cd1c0) :  WARNING (base:120) - Run time of job "Index All Episode Subtitles from Disk (trigger: cron[hour='4'], next run at: 2024-06-08 04:00:00 AEST)" was missed by 7:17:56.304865
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,306 - apscheduler.executors.default    (7f89ccc1c0) :  WARNING (base:120) - Run time of job "Index All Movie Subtitles from Disk (trigger: cron[hour='5'], next run at: 2024-06-08 05:00:00 AEST)" was missed by 6:17:56.305931
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,306 - apscheduler.executors.default    (7f894cb1c0) :  WARNING (base:120) - Run time of job "Upgrade Previously Downloaded Subtitles (trigger: interval[12:00:00], next run at: 2024-06-07 19:54:35 AEST)" was missed by 3:23:20.372132
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,339 - apscheduler.scheduler            (7f910c01c0) :  ERROR (base:847) - Error notifying listener
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,342 - apscheduler.scheduler            (7f910c01c0) :  ERROR (base:847) - Error notifying listener
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,344 - apscheduler.scheduler            (7f910c01c0) :  ERROR (base:847) - Error notifying listener
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,345 - apscheduler.scheduler            (7f910c01c0) :  ERROR (base:847) - Error notifying listener
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,351 - apscheduler.scheduler            (7f910c01c0) :  ERROR (base:847) - Error notifying listener
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,354 - apscheduler.scheduler            (7f910c01c0) :  ERROR (base:847) - Error notifying listener
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,358 - apscheduler.scheduler            (7f910c01c0) :  ERROR (base:847) - Error notifying listener
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,363 - apscheduler.scheduler            (7f910c01c0) :  ERROR (base:847) - Error notifying listener
Jun 07 11:17:56 DietPi Bazarr[631]: 2024-06-07 11:17:56,367 - apscheduler.scheduler            (7f910c01c0) :  ERROR (base:847) - Error notifying listener
Jun 07 11:17:58 DietPi Bazarr[631]: 2024-06-07 11:17:58,800 - root                             (7f9ab44040) :  INFO (server:79) - BAZARR is started and waiting for request on http://0.0.0.0:6767
Jun 07 11:17:58 DietPi Bazarr[631]: 2024-06-07 11:17:58,848 - root                             (7ed6fb51c0) :  INFO (signalr_client:189) - BAZARR trying to connect to Radarr SignalR feed...
Jun 07 11:17:58 DietPi Bazarr[631]: 2024-06-07 11:17:58,875 - root                             (7ed77b61c0) :  INFO (signalr_client:54) - BAZARR trying to connect to Sonarr SignalR feed...
Jun 07 11:17:59 DietPi Bazarr[631]: 2024-06-07 11:17:59,090 - root                             (7ed67b41c0) :  INFO (signalr_client:217) - BAZARR SignalR client for Radarr is connected and waiting for events.
Jun 07 11:17:59 DietPi Bazarr[631]: 2024-06-07 11:17:59,324 - root                             (7ed77b61c0) :  INFO (signalr_client:74) - BAZARR SignalR client for Sonarr is connected and waiting for events.
Jun 07 13:29:17 DietPi systemd[1]: Stopping Bazarr (DietPi)...
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: State 'stop-sigterm' timed out. Killing.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 617 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 631 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 864 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 865 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 866 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 868 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 869 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 870 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 871 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 881 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 883 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 884 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 885 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 886 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 887 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 888 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 889 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 890 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 891 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 892 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 893 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 894 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 895 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 896 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 897 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 898 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 899 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 900 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 901 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 902 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 903 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 904 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 905 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 906 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 907 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 908 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 909 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 910 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 911 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 912 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 913 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 914 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 915 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 916 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 917 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 918 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 919 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 920 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 921 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 922 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 923 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 924 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 925 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 926 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 927 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 928 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 929 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 930 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 931 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 932 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 933 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 934 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 935 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 936 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 937 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 938 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 939 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 940 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 941 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 942 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 943 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 944 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 945 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 946 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 947 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 948 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 949 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 950 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 951 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 952 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 953 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 954 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 955 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 956 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 957 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 958 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 959 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 960 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 961 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 962 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 963 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 964 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 965 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 966 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 967 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 968 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 969 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 970 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 971 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 972 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 973 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 974 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 975 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 976 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 977 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 978 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 979 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 1152 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 1207 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 1230 (n/a) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Main process exited, code=killed, status=9/KILL
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Killing process 1207 (python3) with signal SIGKILL.
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Failed with result 'timeout'.
Jun 07 13:30:47 DietPi systemd[1]: Stopped Bazarr (DietPi).
Jun 07 13:30:47 DietPi systemd[1]: bazarr.service: Consumed 1min 57.282s CPU time.

hmm it’s just timing out after 90 sec. Ho hint why it is taking so long.