Bazarr fails to start on freshly installed dietpi

Creating a bug report/issue

I just tried to install bazarr on my RPi 4, but it fails to boot for some reason.

systemctl status bazarr
root@DietPi:~# systemctl status bazarr
● bazarr.service - Bazarr (DietPi)
     Loaded: loaded (/etc/systemd/system/bazarr.service; disabled; vendor preset: enabled)
     Active: inactive (dead)

Jul 12 00:54:49 DietPi Bazarr[28158]:     from init import *  # noqa E402
Jul 12 00:54:49 DietPi Bazarr[28158]:   File "/opt/bazarr/bazarr/init.py", line 223, in <module>
Jul 12 00:54:49 DietPi Bazarr[28158]:     init_binaries()
Jul 12 00:54:49 DietPi Bazarr[28158]:   File "/opt/bazarr/bazarr/init.py", line 210, in init_binaries
Jul 12 00:54:49 DietPi Bazarr[28158]:     raise BinaryNotFound
Jul 12 00:54:49 DietPi Bazarr[28158]: utilities.binaries.BinaryNotFound
Jul 12 00:54:50 DietPi Bazarr[28154]: Bazarr starting...
Jul 12 00:54:50 DietPi Bazarr[28154]: Bazarr exited.
Jul 12 00:54:50 DietPi systemd[1]: bazarr.service: Succeeded.
Jul 12 00:54:50 DietPi systemd[1]: bazarr.service: Consumed 4.371s CPU time.

journalctl -u bazarr
-- Journal begins at Mon 2022-07-11 21:44:45 IST, ends at Tue 2022-07-12 00:57:57 IST. --
Jul 11 21:44:47 DietPi systemd[1]: Started Bazarr (DietPi).
Jul 11 21:44:58 DietPi Bazarr[530]: 2022-07-11 21:44:58,945 - root                             (7fa9fa9040) :  ERROR (init:209) - BAZARR requires a rar archive extraction utilities (unrar, unar) and it can't be found.
Jul 11 21:44:58 DietPi Bazarr[530]: Traceback (most recent call last):
Jul 11 21:44:58 DietPi Bazarr[530]:   File "/opt/bazarr/bazarr/init.py", line 198, in init_binaries
Jul 11 21:44:58 DietPi Bazarr[530]:     exe = get_binary("unar")
Jul 11 21:44:58 DietPi Bazarr[530]:   File "/opt/bazarr/bazarr/utilities/binaries.py", line 73, in get_binary
Jul 11 21:44:58 DietPi Bazarr[530]:     raise BinaryNotFound
Jul 11 21:44:58 DietPi Bazarr[530]: utilities.binaries.BinaryNotFound
Jul 11 21:44:58 DietPi Bazarr[530]: During handling of the above exception, another exception occurred:
Jul 11 21:44:58 DietPi Bazarr[530]: Traceback (most recent call last):
Jul 11 21:44:58 DietPi Bazarr[530]:   File "/opt/bazarr/bazarr/init.py", line 207, in init_binaries
Jul 11 21:44:58 DietPi Bazarr[530]:     rarfile.tool_setup(unrar=True, unar=False, bsdtar=False, force=True)
Jul 11 21:44:58 DietPi Bazarr[530]:   File "/opt/bazarr/bazarr/../libs/rarfile.py", line 3331, in tool_setup
Jul 11 21:44:58 DietPi Bazarr[530]:     raise RarCannotExec("Cannot find working tool")
Jul 11 21:44:58 DietPi Bazarr[530]: rarfile.RarCannotExec: Cannot find working tool
Jul 11 21:44:58 DietPi Bazarr[530]: During handling of the above exception, another exception occurred:
Jul 11 21:44:58 DietPi Bazarr[530]: Traceback (most recent call last):
Jul 11 21:44:58 DietPi Bazarr[530]:   File "/opt/bazarr/bazarr/main.py", line 21, in <module>
Jul 11 21:44:58 DietPi Bazarr[530]:     from init import *  # noqa E402
Jul 11 21:44:58 DietPi Bazarr[530]:   File "/opt/bazarr/bazarr/init.py", line 223, in <module>
Jul 11 21:44:58 DietPi Bazarr[530]:     init_binaries()
Jul 11 21:44:58 DietPi Bazarr[530]:   File "/opt/bazarr/bazarr/init.py", line 210, in init_binaries
Jul 11 21:44:58 DietPi Bazarr[530]:     raise BinaryNotFound
Jul 11 21:44:58 DietPi Bazarr[530]: utilities.binaries.BinaryNotFound
Jul 11 21:45:00 DietPi Bazarr[477]: Bazarr starting...
Jul 11 21:45:00 DietPi Bazarr[477]: Bazarr exited.
Jul 11 21:45:01 DietPi systemd[1]: bazarr.service: Succeeded.
Jul 11 21:45:01 DietPi systemd[1]: bazarr.service: Consumed 4.392s CPU time.
Jul 11 22:31:08 DietPi systemd[1]: Started Bazarr (DietPi).
Jul 11 22:31:13 DietPi Bazarr[4655]: 2022-07-11 22:31:13,472 - root                             (7f83c27040) :  ERROR (init:209) - BAZARR requires a rar archive extraction utilities (unrar, unar) and it can't be found.
Jul 11 22:31:13 DietPi Bazarr[4655]: Traceback (most recent call last):
Jul 11 22:31:13 DietPi Bazarr[4655]:   File "/opt/bazarr/bazarr/init.py", line 198, in init_binaries
Jul 11 22:31:13 DietPi Bazarr[4655]:     exe = get_binary("unar")
Jul 11 22:31:13 DietPi Bazarr[4655]:   File "/opt/bazarr/bazarr/utilities/binaries.py", line 73, in get_binary
Jul 11 22:31:13 DietPi Bazarr[4655]:     raise BinaryNotFound
Jul 11 22:31:13 DietPi Bazarr[4655]: utilities.binaries.BinaryNotFound
Jul 11 22:31:13 DietPi Bazarr[4655]: During handling of the above exception, another exception occurred:
Jul 11 22:31:13 DietPi Bazarr[4655]: Traceback (most recent call last):
Jul 11 22:31:13 DietPi Bazarr[4655]:   File "/opt/bazarr/bazarr/init.py", line 207, in init_binaries
Jul 11 22:31:13 DietPi Bazarr[4655]:     rarfile.tool_setup(unrar=True, unar=False, bsdtar=False, force=True)
Jul 11 22:31:13 DietPi Bazarr[4655]:   File "/opt/bazarr/bazarr/../libs/rarfile.py", line 3331, in tool_setup
Jul 11 22:31:13 DietPi Bazarr[4655]:     raise RarCannotExec("Cannot find working tool")
Jul 11 22:31:13 DietPi Bazarr[4655]: rarfile.RarCannotExec: Cannot find working tool
Jul 11 22:31:13 DietPi Bazarr[4655]: During handling of the above exception, another exception occurred:
Jul 11 22:31:13 DietPi Bazarr[4655]: Traceback (most recent call last):
Jul 11 22:31:13 DietPi Bazarr[4655]:   File "/opt/bazarr/bazarr/main.py", line 21, in <module>
Jul 11 22:31:13 DietPi Bazarr[4655]:     from init import *  # noqa E402
Jul 11 22:31:13 DietPi Bazarr[4655]:   File "/opt/bazarr/bazarr/init.py", line 223, in <module>
Jul 11 22:31:13 DietPi Bazarr[4655]:     init_binaries()
Jul 11 22:31:13 DietPi Bazarr[4655]:   File "/opt/bazarr/bazarr/init.py", line 210, in init_binaries
Jul 11 22:31:13 DietPi Bazarr[4655]:     raise BinaryNotFound
Jul 11 22:31:13 DietPi Bazarr[4655]: utilities.binaries.BinaryNotFound
Jul 11 22:31:15 DietPi Bazarr[4605]: Bazarr starting...
Jul 11 22:31:15 DietPi Bazarr[4605]: Bazarr exited.
Jul 11 22:31:15 DietPi systemd[1]: bazarr.service: Succeeded.
Jul 11 22:31:15 DietPi systemd[1]: bazarr.service: Consumed 4.224s CPU time.
Jul 11 23:17:20 DietPi systemd[1]: Started Bazarr (DietPi).
Jul 11 23:17:27 DietPi Bazarr[11389]: 2022-07-11 23:17:27,050 - root                             (7fa962c040) :  ERROR (init:209) - BAZARR requires a rar archive extraction utilities (unrar, unar) and it can't be found.
Jul 11 23:17:27 DietPi Bazarr[11389]: Traceback (most recent call last):
Jul 11 23:17:27 DietPi Bazarr[11389]:   File "/opt/bazarr/bazarr/init.py", line 198, in init_binaries
Jul 11 23:17:27 DietPi Bazarr[11389]:     exe = get_binary("unar")
Jul 11 23:17:27 DietPi Bazarr[11389]:   File "/opt/bazarr/bazarr/utilities/binaries.py", line 73, in get_binary
Jul 11 23:17:27 DietPi Bazarr[11389]:     raise BinaryNotFound
Jul 11 23:17:27 DietPi Bazarr[11389]: utilities.binaries.BinaryNotFound
Jul 11 23:17:27 DietPi Bazarr[11389]: During handling of the above exception, another exception occurred:
Jul 11 23:17:27 DietPi Bazarr[11389]: Traceback (most recent call last):
Jul 11 23:17:27 DietPi Bazarr[11389]:   File "/opt/bazarr/bazarr/init.py", line 207, in init_binaries
Jul 11 23:17:27 DietPi Bazarr[11389]:     rarfile.tool_setup(unrar=True, unar=False, bsdtar=False, force=True)
Jul 11 23:17:27 DietPi Bazarr[11389]:   File "/opt/bazarr/bazarr/../libs/rarfile.py", line 3331, in tool_setup
Jul 11 23:17:27 DietPi Bazarr[11389]:     raise RarCannotExec("Cannot find working tool")
Jul 11 23:17:27 DietPi Bazarr[11389]: rarfile.RarCannotExec: Cannot find working tool
Jul 11 23:17:27 DietPi Bazarr[11389]: During handling of the above exception, another exception occurred:
Jul 11 23:17:27 DietPi Bazarr[11389]: Traceback (most recent call last):
Jul 11 23:17:27 DietPi Bazarr[11389]:   File "/opt/bazarr/bazarr/main.py", line 21, in <module>
Jul 11 23:17:27 DietPi Bazarr[11389]:     from init import *  # noqa E402
Jul 11 23:17:27 DietPi Bazarr[11389]:   File "/opt/bazarr/bazarr/init.py", line 223, in <module>
Jul 11 23:17:27 DietPi Bazarr[11389]:     init_binaries()
Jul 11 23:17:27 DietPi Bazarr[11389]:   File "/opt/bazarr/bazarr/init.py", line 210, in init_binaries
Jul 11 23:17:27 DietPi Bazarr[11389]:     raise BinaryNotFound
Jul 11 23:17:27 DietPi Bazarr[11389]: utilities.binaries.BinaryNotFound
Jul 11 23:17:28 DietPi Bazarr[11291]: Bazarr starting...
Jul 11 23:17:28 DietPi Bazarr[11291]: Bazarr exited.
Jul 11 23:17:29 DietPi systemd[1]: bazarr.service: Succeeded.
Jul 11 23:17:29 DietPi systemd[1]: bazarr.service: Consumed 4.346s CPU time.
Jul 12 00:02:17 DietPi systemd[1]: Started Bazarr (DietPi).
Jul 12 00:02:25 DietPi Bazarr[18203]: 2022-07-12 00:02:25,888 - root                             (7fa416c040) :  ERROR (init:209) - BAZARR requires a rar archive extraction utilities (unrar, unar) and it can't be found.
Jul 12 00:02:25 DietPi Bazarr[18203]: Traceback (most recent call last):
Jul 12 00:02:25 DietPi Bazarr[18203]:   File "/opt/bazarr/bazarr/init.py", line 198, in init_binaries
Jul 12 00:02:25 DietPi Bazarr[18203]:     exe = get_binary("unar")
Jul 12 00:02:25 DietPi Bazarr[18203]:   File "/opt/bazarr/bazarr/utilities/binaries.py", line 73, in get_binary
Jul 12 00:02:25 DietPi Bazarr[18203]:     raise BinaryNotFound
Jul 12 00:02:25 DietPi Bazarr[18203]: utilities.binaries.BinaryNotFound
Jul 12 00:02:25 DietPi Bazarr[18203]: During handling of the above exception, another exception occurred:
Jul 12 00:02:25 DietPi Bazarr[18203]: Traceback (most recent call last):

Required Information

  • DietPi version | cat /boot/dietpi/.version

G_DIETPI_VERSION_CORE=8
G_DIETPI_VERSION_SUB=6
G_DIETPI_VERSION_RC=1
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
G_LIVE_PATCH_STATUS[0]=‘applied’

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN

bullseye 0

  • Kernel version | uname -a

Linux DietPi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)

RPi 4 Model B (aarch64)

Additional Information (if applicable)

  • Software title | Bazarr
  • Was the software title installed freshly or updated/migrated? Freshly installed
  • Can this issue be replicated on a fresh installation of DietPi? Yes
  • Bug report ID | b83aa86c-e4ff-4944-acaa-d4ebfd1d6f98

Expected behavior

  • I should be able to access the GUI from http://<yourIP>:6767

Actual behaviour

  • Can’t establish a connection to the server at http://<yourIP>:6767

Welcome to our community.

Try following

dietpi-software install 170
systemctl restart bazarr

Thank you! This worked.

Issue worked around with: DietPi-Software | Bazarr by Joulinar · Pull Request #5619 · MichaIng/DietPi · GitHub
Fix sent upstream: Update aarch64 unrar binary by MichaIng · Pull Request #1 · morpheus65535/bazarr-binaries · GitHub

1 Like

hey,
hope its ok that I hijacked the thread, but I have the exact same issue that Bazarr is not starting anymore.

the service seems to be enabled and running.

I tried your command (but I think 170 is unRAR, so I used 180 (which should be Bazarr)

root@DietPi:~# dietpi-software install 170
systemctl restart bazarr
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Automated install

[ INFO ] DietPi-Software | 170: UnRAR is already installed
[ INFO ] DietPi-Software | Use "dietpi-software reinstall 170" to force rerun of installation and configuration steps for UnRAR.
[  OK  ] DietPi-Software | No changes applied for: UnRAR
root@DietPi:~# dietpi-launcher
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database
root@DietPi:~# dietpi-software install 180
systemctl restart bazarr
[  OK  ] DietPi-Software | Initialised database
[  OK  ] DietPi-Software | Reading database

 DietPi-Software
─────────────────────────────────────────────────────
 Mode: Automated install

[ INFO ] DietPi-Software | 180: Bazarr is already installed
[ INFO ] DietPi-Software | Use "dietpi-software reinstall 180" to force rerun of installation and configuration steps for Bazarr.
[  OK  ] DietPi-Software | No changes applied for: Bazarr
root@DietPi:~# 

image

no luck though

The original issue was about missing unrar. Therefore solution was to install it. :slight_smile:

I would like to ask you to create a new troubleshooting issue, providing al relevant information as this is a 2 year old topic.