Git Product home page Git Product logo

docker-bazarr's Introduction

linuxserver.io

Blog Discord Discourse Fleet GitHub Open Collective

The LinuxServer.io team brings you another container release featuring:

  • regular and timely application updates
  • easy user mappings (PGID, PUID)
  • custom base image with s6 overlay
  • weekly base OS updates with common layers across the entire LinuxServer.io ecosystem to minimise space usage, down time and bandwidth
  • regular security updates

Find us at:

  • Blog - all the things you can do with our containers including How-To guides, opinions and much more!
  • Discord - realtime support / chat with the community and the team.
  • Discourse - post on our community forum.
  • Fleet - an online web interface which displays all of our maintained images.
  • GitHub - view the source for all of our repositories.
  • Open Collective - please consider helping us by either donating or contributing to our budget

Scarf.io pulls GitHub Stars GitHub Release GitHub Package Repository GitLab Container Registry Quay.io Docker Pulls Docker Stars Jenkins Build LSIO CI

Bazarr is a companion application to Sonarr and Radarr. It can manage and download subtitles based on your requirements. You define your preferences by TV show or movie and Bazarr takes care of everything for you.

bazarr

Supported Architectures

We utilise the docker manifest for multi-platform awareness. More information is available from docker here and our announcement here.

Simply pulling lscr.io/linuxserver/bazarr:latest should retrieve the correct image for your arch, but you can also pull specific arch images via tags.

The architectures supported by this image are:

Architecture Available Tag
x86-64 amd64-<version tag>
arm64 arm64v8-<version tag>
armhf

Version Tags

This image provides various versions that are available via tags. Please read the descriptions carefully and exercise caution when using unstable or development tags.

Tag Available Description
latest Stable releases from Bazarr
development Pre-releases from Bazarr

Application Setup

  • Once running the URL will be http://<host-ip>:6767.
  • You must complete all the setup parameters in the webui before you can save the config.

Usage

To help you get started creating a container from this image you can either use docker-compose or the docker cli.

docker-compose (recommended, click here for more info)

---
services:
  bazarr:
    image: lscr.io/linuxserver/bazarr:latest
    container_name: bazarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
    volumes:
      - /path/to/bazarr/config:/config
      - /path/to/movies:/movies #optional
      - /path/to/tv:/tv #optional
    ports:
      - 6767:6767
    restart: unless-stopped
docker run -d \
  --name=bazarr \
  -e PUID=1000 \
  -e PGID=1000 \
  -e TZ=Etc/UTC \
  -p 6767:6767 \
  -v /path/to/bazarr/config:/config \
  -v /path/to/movies:/movies `#optional` \
  -v /path/to/tv:/tv `#optional` \
  --restart unless-stopped \
  lscr.io/linuxserver/bazarr:latest

Parameters

Containers are configured using parameters passed at runtime (such as those above). These parameters are separated by a colon and indicate <external>:<internal> respectively. For example, -p 8080:80 would expose port 80 from inside the container to be accessible from the host's IP on port 8080 outside the container.

Parameter Function
-p 6767 Allows HTTP access to the internal webserver.
-e PUID=1000 for UserID - see below for explanation
-e PGID=1000 for GroupID - see below for explanation
-e TZ=Etc/UTC specify a timezone to use, see this list.
-v /config Persistent config files
-v /movies Location of your movies
-v /tv Location of your TV Shows

Environment variables from files (Docker secrets)

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it's value it does not add. Please read up here before asking for support.

User / Group Identifiers

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Docker Mods

Docker Mods Docker Universal Mods

We publish various Docker Mods to enable additional functionality within the containers. The list of Mods available for this image (if any) as well as universal mods that can be applied to any one of our images can be accessed via the dynamic badges above.

Support Info

  • Shell access whilst the container is running:

    docker exec -it bazarr /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f bazarr
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' bazarr
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' lscr.io/linuxserver/bazarr:latest

Updating Info

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull bazarr
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d bazarr
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull lscr.io/linuxserver/bazarr:latest
  • Stop the running container:

    docker stop bazarr
  • Delete the container:

    docker rm bazarr
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

tip: We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver/docker-bazarr.git
cd docker-bazarr
docker build \
  --no-cache \
  --pull \
  -t lscr.io/linuxserver/bazarr:latest .

The ARM variants can be built on x86_64 hardware using multiarch/qemu-user-static

docker run --rm --privileged multiarch/qemu-user-static:register --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Versions

  • 23.12.23: - Rebase to Alpine 3.19.
  • 19.09.23: - Install unrar from linuxserver repo.
  • 11.08.23: - Rebase to Alpine 3.18.
  • 10.08.23: - Bump unrar to 6.2.10.
  • 04.07.23: - Deprecate armhf. As announced here
  • 26.02.23: - Add dependencies for postgres support. Add mediainfo.
  • 23.01.23: - Rebase master branch to Alpine 3.17.
  • 11.10.22: - Rebase master branch to Alpine 3.16, migrate to s6v3.
  • 15.15.21: - Temp fix for lxml, compile from scratch to avoid broken official wheel.
  • 25.10.21: - Rebase to alpine 3.14. Fix numpy wheel.
  • 22.10.21: - Added openblas package to prevent numpy error.
  • 16.05.21: - Use wheel index.
  • 19.04.21: - Install from release zip.
  • 07.04.21: - Move app to /app/bazarr/bin, add package_info.
  • 23.01.21: - Rebasing to alpine 3.13.
  • 23.01.21: - Deprecate UMASK_SET in favor of UMASK in baseimage, see above for more information.
  • 01.06.20: - Rebasing to alpine 3.12.
  • 13.05.20: - Add donation links for Bazarr to Github sponsors button and container log.
  • 08.04.20: - Removed /movies and /tv volumes from Dockerfiles.
  • 28.12.19: - Upgrade to Python 3.
  • 19.12.19: - Rebasing to alpine 3.11.
  • 28.06.19: - Rebasing to alpine 3.10.
  • 13.06.19: - Add env variable for setting umask.
  • 12.06.19: - Swap to install deps using maintainers requirements.txt, add ffmpeg for ffprobe.
  • 17.04.19: - Add default UTC timezone if user does not set it.
  • 23.03.19: - Switching to new Base images, shift to arm32v7 tag.
  • 22.02.19: - Rebasing to alpine 3.9.
  • 11.09.18: - Initial release.

docker-bazarr's People

Contributors

aptalca avatar chbmb avatar drizuid avatar j0nnymoe avatar linuxserver-ci avatar nemchik avatar roxedus avatar sirferdek avatar sparklyballs avatar thelamer avatar thespad avatar tobbenb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-bazarr's Issues

Bazarr docker not working

linuxserver.io


Expected Behavior

Access bazarr on port 6767

Current Behavior

Portainer shows errors and the container keeps restarting

Steps to Reproduce

  1. Configure docker-compose as detailed on the site
  2. Start the container

Environment

OS: Debian 10(buster)
CPU architecture: x86_64
How docker service was installed: Official docker

Command used to create docker container (run/create/compose/screenshot)

---
version: "2.1"
services:
  bazarr:
    image: linuxserver/bazarr
    container_name: bazarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Asia/Kolkata
    volumes:
      - ./config:/config
      - /mnt:/mnt
    network_mode: bridge
    ports:
      - 6767:6767
    restart: unless-stopped

Docker logs

Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../libs/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/app/bazarr/bin/bazarr/../libs/subliminal_patch/http.py", line 366, in patched_create_connection
    return _orig_create_connection((host, port), *args, **kwargs)
  File "/app/bazarr/bin/bazarr/../libs/urllib3/util/connection.py", line 72, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../libs/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/app/bazarr/bin/bazarr/../libs/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/app/bazarr/bin/bazarr/../libs/urllib3/connectionpool.py", line 1040, in _validate_conn
    conn.connect()
  File "/app/bazarr/bin/bazarr/../libs/urllib3/connection.py", line 358, in connect
    conn = self._new_conn()
  File "/app/bazarr/bin/bazarr/../libs/urllib3/connection.py", line 186, in _new_conn
    raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7f0db45d2a30>: Failed to establish a new connection: [Errno -3] Try again
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../libs/requests/adapters.py", line 440, in send
    resp = conn.urlopen(
  File "/app/bazarr/bin/bazarr/../libs/urllib3/connectionpool.py", line 785, in urlopen
    retries = retries.increment(
  File "/app/bazarr/bin/bazarr/../libs/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.cognitive.microsofttranslator.com', port=443): Max retries exceeded with url: /languages?api-version=3.0&scope=translation (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0db45d2a30>: Failed to establish a new connection: [Errno -3] Try again'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/main.py", line 20, in <module>
    from init import *  # noqa E402
  File "/app/bazarr/bin/bazarr/init.py", line 211, in <module>
    init_binaries()
  File "/app/bazarr/bin/bazarr/init.py", line 192, in init_binaries
    from utils import get_binary
  File "/app/bazarr/bin/bazarr/utils.py", line 27, in <module>
    from deep_translator import GoogleTranslator
  File "/app/bazarr/bin/bazarr/../libs/deep_translator/__init__.py", line 3, in <module>
    from .google_trans import GoogleTranslator
  File "/app/bazarr/bin/bazarr/../libs/deep_translator/google_trans.py", line 5, in <module>
    from .constants import BASE_URLS, GOOGLE_LANGUAGES_TO_CODES, GOOGLE_LANGUAGES_SECONDARY_NAMES
  File "/app/bazarr/bin/bazarr/../libs/deep_translator/constants.py", line 205, in <module>
    microsoft_languages_response = requests.get(microsoft_languages_api_url)
  File "/app/bazarr/bin/bazarr/../libs/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/app/bazarr/bin/bazarr/../libs/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/app/bazarr/bin/bazarr/../libs/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/app/bazarr/bin/bazarr/../libs/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/app/bazarr/bin/bazarr/../libs/requests/adapters.py", line 519, in send
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.cognitive.microsofttranslator.com', port=443): Max retries exceeded with url: /languages?api-version=3.0&scope=translation (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f0db45d2a30>: Failed to establish a new connection: [Errno -3] Try again'))
Bazarr starting...
Bazarr exited.

Bazarr crashing when I load /series on a container with base image Alpine 3.15

linuxserver.io

Crossposting from: morpheus65535/bazarr#1860

But the current version of the base image used for docker-bazarr (Alpine 3.15) contains an older library of sqlite-libs that it is making it crash on my Raspberry Pi 3b. I tested this and it was working fine on a Raspberry Pi 4b.


Expected Behavior

Bazarr UI working correctly.

Current Behavior

Bazarr UI crashes with Segmentation Fault.

Steps to Reproduce

  1. Setup Bazarr with Sonarr
  2. Go to BAZARR_URL:6767/series
  3. The page will eventually crash with "Cannot Initialize Bazarr"

Environment

OS: Raspbery Pi OS
CPU architecture: arm64
Hardware: Raspberry Pi 3b (It does not happen on Raspberry Pi 4b)
How docker service was installed: lscr.io/linuxserver/bazarr:latest

Command used to create docker container (run/create/compose/screenshot)

  bazarr:
    image: lscr.io/linuxserver/bazarr:latest
    container_name: bazarr
    depends_on:
      - sonarr
      - radarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Vancouver
    volumes:
      - /home/USER/Bazarr:/config
      - /media/USER/Movies:/movies
      - /media/USER/TV Shows:/tv
    ports:
      - 6767:6767
    restart: unless-stopped

Docker logs

TZ quotes handling

Is this a new feature request?

  • I have searched the existing issues

Wanted change

Would have expected it to handle TZ as

  - TZ="Europe/Warsaw"
  
  while  only
  
   - TZ=Europe/Warsaw
   
   is supported.

Reason for change

   Not a big deal, but confusing, if config is transfered from sonarr/radarr

Proposed code change

No response

Request : update all tasks when Bazarr is starting

Hi, I'm using Bazarr on a device that is not on 24H a day.
So my tv shows are not updating, I would like to know if you could add an option to perform all the updating tasks when Bazarr goes online.
Thanks !

file path issue.

linuxserver.io


Expected Behavior

see the media files

Current Behavior

doesnt see the media files

Steps to Reproduce

  1. sync sonarr (binhex)
  2. sync radarr (binhex)
  3. import lists
  4. notice that no matter what you set your path to, bazarr doesnt work.

all containers have their path set to /mnt/user/Storage/Media/
all work except bazarr (6 other containers follow this bath perfectly)

for example, all tv shows are in /mnt/user/Storage/Media/TV Shows

error for all files tv/movies is:
BAZARR Error (Path does not exist) trying to get video information for this file: /media/TV Shows/name of show folder / name of show.mkv

i see an extra "media" and its not the correct one as linux is case sensitive.
shouldnt it think to be looking in /TV Shows/name of show folder / name of show.mkv

Environment

OS: unRAID
CPU architecture: x86_64/arm32/arm64
How docker service was installed:

community applications

Command used to create docker container (run/create/compose/screenshot)

Docker logs

Bazarr WebUI no longer works

Installed on Portainer with Docker

I get this log:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support the app dev(s) visit:
Bazarr: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XHHRWXT9YB7WE&source=url

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/main.py", line 40, in <module>
    from server import app, webserver
  File "/app/bazarr/bin/bazarr/server.py", line 83, in <module>
    webserver = Server()
  File "/app/bazarr/bin/bazarr/server.py", line 33, in __init__
    self.server = create_server(app,
  File "/app/bazarr/bin/bazarr/../libs/waitress/server.py", line 81, in create_server
    last_serv = TcpWSGIServer(
  File "/app/bazarr/bin/bazarr/../libs/waitress/server.py", line 239, in __init__
    self.bind_server_socket()
  File "/app/bazarr/bin/bazarr/../libs/waitress/server.py", line 368, in bind_server_socket
    self.bind(sockaddr)
  File "/app/bazarr/bin/bazarr/../libs/waitress/wasyncore.py", line 398, in bind
    return self.socket.bind(addr)
OSError: [Errno 99] Address not available
Bazarr starting...
Bazarr exited.

Things I tried:

  • assigning a different port instead of the original 6767
  • assigning a random port

bazarr container using all available RAM memory

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.


Expected Behavior

Bazarr container should not consume all available RAM memory

Current Behavior

Bazarr container using all available host RAM memory thus crashing the host system and making it unstable

Steps to Reproduce

Once the bazar container is started via GUI, within hours of starting it consumes all available RAM memory

The problem started on unRAID 6.7.2 back in December 2019. I was going through the exercise of encrypting my data array. I would move all the data from one of the disks to another disk, stop the array, reformat the disk as encrypted and add it back to the array using the "New config" function.
After a few disks were done I observed that my unRAID system would become unstable and all RAM memory consumed. Whilst troubleshooting I was able to pinpoint docker service being responsible and in "top" program I could see python consuming gigabytes (100+ G) of RAM. Once I killed python the system would become stable again and all the incorrectly allocated RAM available again.
In order to troubleshoot and see which of the containers is causing the problem I added "--memory=10g --oom-kill-disable" parameters. When started the container consumes ~150M and then after a few hours spikes to the available maximum within minutes.
I updated unRAID to 6.8.0 and then 6.8.1. but it did not resolve the problem.
The same behaviour was reported in issue #33

Environment

OS: unRAID 6.8.1
CPU architecture: x86_64
How docker service was installed: unRAID's Communicty Applications plugin

Command used to create docker container (run/create/compose/screenshot)

root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker create --name='bazarr' --net='bridge' --cpuset-cpus='2,3,4,14,15,16' -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e 'PUID'='99' -e 'PGID'='100' -p '6767:6767/tcp' -v '/mnt/user/filmy/':'/movies':'rw' -v '/mnt/user/seriale/':'/tv':'rw' -v '/mnt/user/appdata/bazarr':'/config':'rw' --memory=10g --oom-kill-disable 'linuxserver/bazarr'

Docker logs

To be provided, waiting for the docker to crash again.

Bazarr fails to sync episodes from sonarr, stacktrace bellow

linuxserver.io


Expected Behavior

bazar syncs episodes from sonarr and they appear in the UI.

Current Behavior

Steps to Reproduce

1.Add Sonarr in settings
2. man/auto update series list from sonarr
3. man/auto sync episodes from sonarr
4. get error: Job "Sync episodes with Sonarr (trigger: interval[1:00:00], next run at: 2021-08-06 10:38:07 CEST)" raised an exception

Environment

OS: OpenMediaVault 5.6.13.1 (Usul) - Linux 5.4.119-1-pve kernel
CPU architecture: x86_64/arm32/arm64
How docker service was installed:

In Portainer using a stack (like docker compose)

Command used to create docker container (run/create/compose/screenshot)

bazarr:
   image: ghcr.io/linuxserver/bazarr
   container_name: bazarr
   network_mode: "service:transmission-openvpn"
   environment:
     - PUID=998
     - PGID=100
     - TZ=Europe/Brussels
   volumes:
     - /Data/Config/Bazarr/:/config
     - /Data/AtomData/Multimedia/Videos/Speelfilms:/movies
     - /Data/AtomData/Multimedia/Videos/TV-series:/tv
   restart: unless-stopped

Docker logs

Given Stacktrace:


  File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 6884, in get

    return clone.execute(database)[0]

  File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 4275, in __getitem__

    return self.row_cache[item]

IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/app/bazarr/bin/bazarr/../libs/apscheduler/executors/base.py", line 125, in run_job

    retval = job.func(*job.args, **job.kwargs)

  File "/app/bazarr/bin/bazarr/get_episodes.py", line 88, in sync_episodes

    episodes_to_add.append(episodeParser(episode))

  File "/app/bazarr/bin/bazarr/get_episodes.py", line 295, in episodeParser

    audio_language = TableShows.get(TableShows == episode[\'seriesId\']).audio_language

  File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 6438, in get

    return sq.get()

  File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 6887, in get

    raise self.model.DoesNotExist(\'%s instance matching query does \'

database.TableShowsDoesNotExist: <Model: TableShows> instance matching query does not exist:

SQL: SELECT "t1"."tvdbId", "t1"."alternateTitles", "t1"."audio_language", "t1"."fanart", "t1"."imdbId", "t1"."overview", "t1"."path", "t1"."poster", "t1"."profileId", "t1"."seriesType", "t1"."sonarrSeriesId", "t1"."sortTitle", "t1"."tags", "t1"."title", "t1"."year" FROM "table_shows" AS "t1" WHERE ("t1"."tvdbId" = ?) LIMIT ? OFFSET ?

Params: [0, 1, 0]

Full Log:

bazarr-1.log

[BUG] chown: operation not permitted

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Starting bazarr with "sudo docker compose up -d" gives me the error:

chown /docker/usenet/configs/bazarr: operation not permitted

Other *arr apps works fine with the same nobody:nogroup NFS share.

Expected Behavior

No response

Steps To Reproduce

The same share path works in v1.2.0-ls190 but not v1.2.0-ls191.

I had this same issue with sabnzbd in november, and it was solves here: linuxserver/docker-sabnzbd#154 (comment)

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

sudo docker compose up -d

bazarr:
    image: lscr.io/linuxserver/bazarr:v1.2.0-ls190
    container_name: bazarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Stockholm
    volumes:
      - /docker/usenet/configs/bazarr:/config
      - /docker/usenet/library/movies:/movies
      - /docker/usenet/library/tv:/tv
    ports:
      - 6767:6767
    restart: unless-stopped

Container logs

downgraded versions so I don't have it right now

ffmpeg memory leak

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Everytime Bazarr does something with the subtitles with ffmpeg (I dont know exactly what it does I can see it is using alot of big memory blocks and it does not deallocate those after the ffmpeg commando is done.

Example commando:
fmpeg -v quiet -y -i /movies/She Said (2022)/She Said-WEBDL-2160p-MZABI-t~id-WEBDL-2160p-MZABI-tt14807308-2022 x265 EAC3 Atmos [EN+ES].es-MX.srt.srt

Expected Behavior

I would expect ffmpeg to release the memory again after it is done with the processing of the file.

Steps To Reproduce

  1. Search for subtitle in bazarr
  2. watch iotop till ffmpeg commando appears
  3. watch -n 1 cat /proc/buddyinfo
    Watch for this:
    `Every 1.0s: cat /proc/buddyinfo Mon Dec 12 23:13:42 2022

Node 0, zone DMA 1 0 0 1 2 1 1 0 1 1 3
Node 0, zone DMA32 2 1 0 3 2 1 3 3 3 4 744
Node 0, zone Normal 6105 3055 1747 963 715 397 327 120 35 10 -------> 22762 <---------`
that number will drop fast, I dont think it is meant to that and I only have been experiencing this since it got updated 2 days ago. If i'm doing something wrong please let me know also

Environment

- OS: Ubuntu 20.04
- How docker service was installed:
 bazarr4k:
   container_name: bazarr4k
   image: lscr.io/linuxserver/bazarr:latest
   restart: unless-stopped
   ports:
     - 6868:6767
   environment:
     - PUID=1001
     - PGID=1001
     - TZ=Europe/Amsterdam
   volumes:
     - /home/plex/docker/bazarr4k/config:/config
     - ${USERDIR}/docker/media/movies-4k:/movies:rw
     - ${USERDIR}/docker/media/tvshows-4k:/tv:rw

CPU architecture

x86-64

Docker creation

docker compose up -d bazarr

Container logs

[custom-init] No custom files found, skipping...
2022-12-12 19:45:59,115 - root                             (7f9d612dfb38) :  INFO (signalr_client:50) - BAZARR trying to connect to Sonarr SignalR feed...
2022-12-12 19:45:59,117 - root                             (7f9d611dcb38) :  INFO (signalr_client:173) - BAZARR trying to connect to Radarr SignalR feed...
2022-12-12 19:45:59,117 - root                             (7f9d6ff4eb48) :  INFO (server:64) - BAZARR is started and waiting for request on http://0.0.0.0:6767
2022-12-12 19:45:59,141 - root                             (7f9d610d9b38) :  INFO (signalr_client:198) - BAZARR SignalR client for Radarr is connected and waiting for events.
2022-12-12 19:45:59,267 - root                             (7f9d612dfb38) :  INFO (signalr_client:66) - BAZARR SignalR client for Sonarr is connected and waiting for events.
[ls.io-init] done.
2022-12-12 19:59:38,741 - root                             (7f9d687f7b38) :  INFO (get_providers:287) - Throttling embeddedsubtitles for 10 minutes, until 22/12/12 20:09, because of: ExtractionError. Exception info: "Error calling ffmpeg: Command '['/usr/bin/ffmpeg', '-v', 'quiet', '-y', '-i', '/movies/Thor Love and Thunder (2022)/Thor Love and Thunder-Remux-2160p-FGT-tt10648342-2022 HEVC TrueHD Atmos[EN+FR+ES+JA] [EN+FR+ES+JA].mkv', '-map', '0:8', '-c:s', 'copy', '-f', 'srt', '/config/cache/embeddedsubtitlesprovider/Thor Love and Thunder-Remux-2160p-FGT-tt10648342-2022 HEVC TrueHD Atmos[EN+FR+ES+JA] [EN+FR+ES+JA].en.srt.srt', '-map', '0:9', '-c:s', 'copy', '-f', 'srt', '/config/cache/embeddedsubtitlesprovider/Thor Love and Thunder-Remux-2160p-FGT-tt10648342-2022 HEVC TrueHD Atmos[EN+FR+ES+JA] [EN+FR+ES+JA].en.hearing_impaired.srt.srt']' timed out after 599.999970049 seconds"
2022-12-12 21:16:10,381 - root                             (7f9d687f7b38) :  INFO (get_providers:132) - Using embeddedsubtitles again after 10 minutes, (disabled because: ExtractionError)
2022-12-12 21:24:54,065 - root                             (7f9d687f7b38) :  ERROR (download:94) - BAZARR Error saving Subtitles file to disk for this file:/movies/Thor Love and Thunder (2022)/Thor Love and Thunder-Remux-2160p-FGT-tt10648342-2022 HEVC TrueHD Atmos[EN+FR+ES+JA] [EN+FR+ES+JA].mkv: FileNotFoundError(2, 'No such file or directory')
2022-12-12 22:27:59,311 - root                             (7f9d60dd0b38) :  INFO (get_providers:287) - Throttling embeddedsubtitles for 10 minutes, until 22/12/12 22:37, because of: ExtractionError. Exception info: "Error calling ffmpeg: Command '['/usr/bin/ffmpeg', '-v', 'quiet', '-y', '-i', '/movies/Star Wars (1977)/Star Wars-Remux-2160p-FGT-tt0076759-1977 HEVC TrueHD Atmos[EN+FR+ES+JA] [EN+FR+ES+JA].mkv', '-map', '0:9', '-c:s', 'copy', '-f', 'srt', '/config/cache/embeddedsubtitlesprovider/Star Wars-Remux-2160p-FGT-tt0076759-1977 HEVC TrueHD Atmos[EN+FR+ES+JA] [EN+FR+ES+JA].en.srt.srt', '-map', '0:10', '-c:s', 'copy', '-f', 'srt', '/config/cache/embeddedsubtitlesprovider/Star Wars-Remux-2160p-FGT-tt0076759-1977 HEVC TrueHD Atmos[EN+FR+ES+JA] [EN+FR+ES+JA].en.hearing_impaired.srt.srt']' timed out after 599.9999675689996 seconds"
2022-12-12 22:38:53,073 - root                             (7f9d60dd0b38) :  INFO (get_providers:132) - Using embeddedsubtitles again after 10 minutes, (disabled because: ExtractionError)
2022-12-12 22:44:02,545 - root                             (7f9d612dfb38) :  INFO (series:148) - BAZARR Finished searching for missing Series Subtitles. Check History for more information.
2022-12-12 22:47:03,264 - root                             (7f9d65ecfb38) :  INFO (server:102) - Bazarr is being restarted...
2022-12-12 22:47:11,271 - root                             (7f66371acb48) :  ERROR (check_update:27) - Error trying to get releases from Github. Connection Error.
2022-12-12 22:47:16,013 - root                             (7f66283acb38) :  INFO (signalr_client:50) - BAZARR trying to connect to Sonarr SignalR feed...
2022-12-12 22:47:16,020 - root                             (7f66282a9b38) :  INFO (signalr_client:173) - BAZARR trying to connect to Radarr SignalR feed...
2022-12-12 22:47:16,021 - root                             (7f66371acb48) :  INFO (server:64) - BAZARR is started and waiting for request on http://0.0.0.0:6767
2022-12-12 22:47:16,046 - root                             (7f66281a6b38) :  INFO (signalr_client:198) - BAZARR SignalR client for Radarr is connected and waiting for events.
2022-12-12 22:47:16,092 - root                             (7f66283acb38) :  INFO (signalr_client:66) - BAZARR SignalR client for Sonarr is connected and waiting for events.
2022-12-12 23:00:59,186 - retry.api                        (7f66278cfb38) :  WARNING (api:40) - HTTPSConnectionPool(host='api.opensubtitles.com', port=443): Max retries exceeded with url: /api/v1/login (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f66278e3e50>: Failed to establish a new connection: [Errno -3] Try again')), retrying in 5 seconds...

HTTP/500 with 'dict' object has no attribute 'code2'

linuxserver.io


Expected Behavior

Expect the wizard page to load on initial install

Current Behavior

On a new install, using the v2 docker compose file as template it appears that Bazarr does not start up because /config/log does not exist - once this is manually created and chown'd appropriately the service runs on port 6767 as expected.

Moving on and hitting the port I am getting a HTTP 500 error after the URL rewrites to /wizard

Error: 500 Internal Server Error
Sorry, the requested URL 'http://127.0.0.1:6767/wizard' caused an error:

Internal Server Error
Exception:
AttributeError("'dict' object has no attribute 'code2'",)
Traceback:
Traceback (most recent call last):
  File "/app/bazarr/bazarr/../libs/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/app/bazarr/bazarr/../libs/bottle.py", line 1740, in wrapper
    rv = callback(*a, **ka)
  File "/app/bazarr/bazarr/main.py", line 122, in wrapper
    return func(*a, **ka)
  File "/app/bazarr/bazarr/main.py", line 220, in wizard
    base_url=base_url)
  File "/app/bazarr/bazarr/../libs/bottle.py", line 3619, in template
    return TEMPLATES[tplid].render(kwargs)
  File "/app/bazarr/bazarr/../libs/bottle.py", line 3409, in render
    self.execute(stdout, env)
  File "/app/bazarr/bazarr/../libs/bottle.py", line 3396, in execute
    eval(self.co, env)
  File "/app/bazarr/views/wizard.tpl", line 114, in <module>
    % include('wizard_subtitles')
  File "/app/bazarr/bazarr/../libs/bottle.py", line 3386, in _include
    return self.cache[_name].execute(env['_stdout'], env)
  File "/app/bazarr/bazarr/../libs/bottle.py", line 3396, in execute
    eval(self.co, env)
  File "/app/bazarr/views/wizard_subtitles.tpl", line 108, in <module>
    <option value="{{language.code2}}">{{language.name}}</option>
AttributeError: 'dict' object has no attribute 'code2'

docker logs on the container shows much the same:

...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Bazarr starting...
2019-11-05 22:06:32,664 - root                             (7f8d528a7d48) :  INFO (init:70) - BAZARR Database created successfully
2019-11-05 22:06:39,488 - root                             (7f8d528a7d48) :  INFO (main:2128) - BAZARR is started and waiting for request on http://0.0.0.0:6767/
Traceback (most recent call last):
  File "/app/bazarr/bazarr/../libs/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/app/bazarr/bazarr/../libs/bottle.py", line 1740, in wrapper
    rv = callback(*a, **ka)
  File "/app/bazarr/bazarr/main.py", line 122, in wrapper
    return func(*a, **ka)
  File "/app/bazarr/bazarr/main.py", line 220, in wizard
    base_url=base_url)
  File "/app/bazarr/bazarr/../libs/bottle.py", line 3619, in template
    return TEMPLATES[tplid].render(kwargs)
  File "/app/bazarr/bazarr/../libs/bottle.py", line 3409, in render
    self.execute(stdout, env)
  File "/app/bazarr/bazarr/../libs/bottle.py", line 3396, in execute
    eval(self.co, env)
  File "/app/bazarr/views/wizard.tpl", line 114, in <module>
    % include('wizard_subtitles')
  File "/app/bazarr/bazarr/../libs/bottle.py", line 3386, in _include
    return self.cache[_name].execute(env['_stdout'], env)
  File "/app/bazarr/bazarr/../libs/bottle.py", line 3396, in execute
    eval(self.co, env)
  File "/app/bazarr/views/wizard_subtitles.tpl", line 108, in <module>
    <option value="{{language.code2}}">{{language.name}}</option>
AttributeError: 'dict' object has no attribute 'code2'

Steps to Reproduce

  1. docker-compose -f bazarr.yaml up -d
  2. docker logs bazarr -f
  3. curl http://localhost:6767/wizard

Environment

OS: Ubuntu 16.04
CPU architecture: x86_64
How docker service was installed:
docker-compose file v2

Command used to create docker container (run/create/compose/screenshot)

bazarr.yaml:

---
version: "2"
services:
  bazarr:
    image: linuxserver/bazarr
    container_name: bazarr
    environment:
      - PUID=1006
      - PGID=1006
      - TZ=Europe/London
      - UMASK_SET=022 #optional
    volumes:
      - /docker/bazarr/config:/config
      - /mnt/netdata/download/movies:/movies
      - /mnt/netdata/download/tv:/tv
    ports:
      - 6767:6767
    restart: unless-stopped

$ docker-compose -f bazarr.yaml up -d
$ mkdir -p /docker/bazarr/config/log && chown 1006:1006 /docker/bazarr/config/log
$ docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/bazarr
Linuxserver.io version:- v0.8.3-ls56 Build-date:- 2019-11-05T12:19:26+00:00

Docker logs

As per above

[BUG] Titulky.com do not use the login provided

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I supplied my login info when setting up my Titulky.com provider. This login is VIP at the Titulky.com site and has no download limit. When trying to use the provider it does not download the subtitles and it will throttle the provider for 24h.

Error message:
Throttling titulky for 11 hours, until 23/05/22 22:00, because of: DownloadLimitExceeded. Exception info: 'Subtitles download limit has been exceeded'

after i recieved this message in the log i manually in web browser tried the login on the site and i was able to download the subtitle file manually.

Expected Behavior

Titulky.com do not ignore login info and is using supplied credentials to download subtitles.

Steps To Reproduce

  1. Setup titulky.com provider with your login info
  2. Download at least 10 subtitle files from this provider
  3. When using to download 11th file, the download will be throttled and you will find a log message stating that the download limit for 24h have been reached
  4. Optional - use the same login info in web browser to download the subtitle file to confirm the login and account validity

Environment

- OS: ADM (linux based OS for asustor NAS devices)
- How docker service was installed:
I manually created new container in docker through portainer app. I used linuxserver/bazarr:latest. After that i mapped my volumes and /config and /movies and used PUID and PGID corresponding to my admin account. I forwarded a port in this docker so that i can access the bazarr app.

CPU architecture

x86-64

Docker creation

I manually created new container in docker through portainer app. I used linuxserver/bazarr:latest. After that i mapped my volumes and /config and /movies and used PUID and PGID corresponding to my admin account. I forwarded a port in this docker so that i can access the bazarr app.

Container logs

22/05/2023 10:57:15|INFO    |root                            |Using opensubtitles again after 10 minutes, (disabled because: Unauthorized)|
22/05/2023 10:57:16|INFO    |root                            |Throttling opensubtitles for 10 minutes, until 23/05/22 11:07, because of: Unauthorized. Exception info: None|
22/05/2023 11:04:05|WARNING |retry.api                       |HTTPSConnectionPool(host='www.podnapisi.net', port=443): Read timed out. (read timeout=10), retrying in 5 seconds...|
22/05/2023 11:06:52|INFO    |root                            |BAZARR throttled providers have been reset.|
22/05/2023 11:07:05|INFO    |root                            |Throttling opensubtitles for 10 minutes, until 23/05/22 11:17, because of: Unauthorized. Exception info: None|
22/05/2023 11:07:27|INFO    |root                            |Throttling titulky for 11 hours, until 23/05/22 22:00, because of: DownloadLimitExceeded. Exception info: 'Subtitles download limit has been exceeded'|
22/05/2023 11:07:27|ERROR   |root                            |BAZARR No valid Subtitles file found for this file: /media/Movies/Mission to Mars (2000)/Mission.To.Mars.2000.1080p.BluRay.x265-RARBG.mp4|'NoneType: None'|

[FEAT] Add the mediainfo optional dependency

Is this a new feature request?

  • I have searched the existing issues

Wanted change

Can you install mediainfo in the docker ?

Reason for change

In recent version of bazaar, mediainfo can be used to parse embedded subtitles video.
It must be installed in the docker for it to work.

Proposed code change

add mediainfo during the install phase:

echo "**** install packages ****" && \
  apk add --no-cache \
    ffmpeg \
    libxml2 \
    libxslt \
    mediainfo \ # optional dependency for embedded subtitles video
    python3 && \

[FEAT] include subsync

Is this a new feature request?

  • I have searched the existing issues

Wanted change

I would like to have an option to add subsync as a post process.

Reason for change

subsync is very useful to synchronize the subtitle to the video.

Proposed code change

No response

Bazarr suddenly stopped working. Dogpile.cache error

linuxserver.io


Expected Behavior

Program should start

Current Behavior

It keeps rebooting the program before it starts.

Environment

OS: Libreelec 9.2.6
CPU architecture: x86_64
How docker service was installed:

Official docker repo.

Command used to create docker container (run/create/compose/screenshot)

Screenshot_20210203_171839_com android chrome
Was created almost a year ago. Through commands. Cannot remember the code.
But it worked for a long time. Suddenly stopped working. Recreating with new poll in portainer does not work.

Docker logs

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.

[s6-init] ensuring user provided files have correct perms...exited 0.

[fix-attrs.d] applying ownership & permissions fixes...

[fix-attrs.d] done.

[cont-init.d] executing container initialization scripts...

[cont-init.d] 01-envfile: executing...

[cont-init.d] 01-envfile: exited 0.

[cont-init.d] 10-adduser: executing...

usermod: no changes


      _         ()

     | |  ___   _    __

     | | / __| | |  /  \ 

     | | \__ \ | | | () |

     |_| |___/ |_|  \__/

Brought to you by linuxserver.io


To support the app dev(s) visit:

Bazarr: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XHHRWXT9YB7WE&source=url

To support LSIO projects visit:

https://www.linuxserver.io/donate/


GID/UID


User uid: 65534

User gid: 65534


[cont-init.d] 10-adduser: exited 0.

[cont-init.d] 30-config: executing...

[cont-init.d] 30-config: exited 0.

[cont-init.d] 99-custom-files: executing...

[custom-init] no custom files found exiting...

[cont-init.d] 99-custom-files: exited 0.

[cont-init.d] done.

[services.d] starting services

[services.d] done.

Bazarr starting...

Traceback (most recent call last):

File "/app/bazarr/bazarr/main.py", line 19, in

from logger import empty_log

File "/app/bazarr/bazarr/logger.py", line 11, in

from config import settings

File "/app/bazarr/bazarr/config.py", line 5, in

from subliminal.cache import region

File "/app/bazarr/bazarr/../libs/subliminal/init.py", line 14, in

from .cache import region

File "/app/bazarr/bazarr/../libs/subliminal/cache.py", line 5, in

from dogpile.cache import make_region

ModuleNotFoundError: No module named 'dogpile.cache'

Bazarr exited.

Bazarr keep hangs on Sonarr connection

linuxserver.io


Expected Behavior

Bazarr should connect to Sonarr to pull TV list

Current Behavior

For some reason, Bazarr keep getting erro on connect to Sonarr. The log files gets really huge with the same message:

04/08/2021 13:51:17|INFO |root |BAZARR SignalR client for Sonarr is now disconnected.|
04/08/2021 13:51:17|ERROR |root |BAZARR cannot parse JSON returned by SignalR feed. This is a known issue when Sonarr doesn't have write permission to it's /config/xdg directory.|

I tryied to "reset permission" on all folders but no success.

Steps to Reproduce

  1. Just connect to Sonarr with the API Key. It hangs when click on Save and the log file starts to be filled with the same error message mentioned above.

Environment

OS: OpenMedia Vault v5.6.13-1 (Usul)
CPU architecture: x86_64
How docker service was installed: Via Portainer

Command used to create docker container (run/create/compose/screenshot)

Portainer

Docker logs

04/08/2021 13:51:17|INFO |root |BAZARR SignalR client for Sonarr is now disconnected.|
04/08/2021 13:51:17|ERROR |root |BAZARR cannot parse JSON returned by SignalR feed. This is a known issue when Sonarr doesn't have write permission to it's /config/xdg directory.|-->

movies folder permissions error

linuxserver.io


Expected Behavior

Bazarr to have write permissions on movies folder

Current Behavior

image

Steps to Reproduce

create a bazarr container:
--- version: "2.1" services: bazarr: image: lscr.io/linuxserver/bazarr container_name: bazarr environment: - PUID=1026 - PGID=100 - TZ=Asia/Jerusalem volumes: - /volume1/docker/Bazarr:/config - /volume1/MOVIES:/movies #optional - /volume1/TV_SHOWS:/tv #optional ports: - 6767:6767 restart: unless-stopped

i've verified and the user with uid 1000 and group id 100 has access to the movies folder

Environment

OS:
Synology DSM 7 (same error on a raspberry pi)
CPU architecture:
x86_64/arm64
How docker service was installed:
raspberry pi using the docker instructions
Synology using the app store

Command used to create docker container (run/create/compose/screenshot)

docker-compose CLI (using the compose above)

Docker logs

[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.
[s6-finish] sending all processes the KILL signal and exiting.
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 02-tamper-check: executing... 
[cont-init.d] 02-tamper-check: exited 0.
[cont-init.d] 10-adduser: executing... 
usermod: no changes

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support the app dev(s) visit:
Bazarr: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XHHRWXT9YB7WE&source=url

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1026
User gid:    100
-------------------------------------

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
[cont-init.d] 30-config: exited 0.
[cont-init.d] 90-custom-folders: executing... 
[cont-init.d] 90-custom-folders: exited 0.
[cont-init.d] 99-custom-files: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2022-02-02 18:47:04,971 - root                             (7f7ccafc0b38) :  INFO (signalr_client:162) - BAZARR trying to connect to Radarr SignalR feed...
2022-02-02 18:47:04,971 - root                             (7f7cd8b75b48) :  INFO (server:37) - BAZARR is started and waiting for request on http://0.0.0.0:6767
2022-02-02 18:47:05,001 - root                             (7f7ccaebdb38) :  INFO (signalr_client:186) - BAZARR SignalR client for Radarr is connected and waiting for events.
2022-02-02 18:47:31,678 - root                             (7f7cd0f13b38) :  ERROR (get_subtitle:83) - BAZARR Error trying to get video information for this file: /media/movies/8-Bit Christmas (2021)/8-Bit Christmas (2021) WEBDL-2160p.mkv

start page logo not working with domain subpath

linuxserver.io


Expected Behavior

logo on start page should appear (logo128.png)

Current Behavior

logo is loaded without domain subpath, currently I'm using bazarr with https://domain.com/bazarr/
should be: https://domain.com/bazarr/static/logo128.png
currently: https://domain.com/static/logo128.png -> Result 404

Steps to Reproduce

every other image is loading after login, only main logo on logon screen doesn't include bazarr subpath

Environment

OS: Linux s01 5.10.0-13-amd64 #1 SMP Debian 5.10.106-1 (2022-03-17) x86_64 GNU/Linux
CPU architecture: x86_64
How docker service was installed:
official docker repo
bazarr config.ini contains base_url = /bazarr

Command used to create docker container (run/create/compose/screenshot)

bazarr:
  image: lscr.io/linuxserver/bazarr
  container_name: bazarr
  environment:
   - PUID=911
   - PGID=911
   - TZ=${TZ}
  labels:
   - ${WATCHTOWER_TRUE}
   - traefik.enable=true
   - "traefik.http.routers.bazarr.rule=Host(`${HOSTNAME}`) && PathPrefix(`/bazarr`)"
   - traefik.http.routers.bazarr.entrypoints=web-secure
   - traefik.http.routers.bazarr.tls.certresolver=le
   - traefik.http.routers.bazarr.tls=true
   - traefik.http.routers.bazarr.priority=2
   - traefik.http.routers.bazarr.tls.options=default
   - traefik.http.routers.bazarr.middlewares=bazarr
   - traefik.http.middlewares.bazarr.headers.customresponseheaders.X-Robots-Tag=noindex,nofollow,nosnippet,noarchive,notranslate,noimageindex
   - traefik.http.services.bazarr.loadbalancer.server.port=6767
  networks:
   - web
  restart: always
  volumes:
   - ${DOCKER_PATH}/bazarr:/config
   - /_downloads:/downloads
   - /_downloads/tv:/tv

Docker logs

bazarr                  | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
bazarr                  | [s6-init] ensuring user provided files have correct perms...exited 0.
bazarr                  | [fix-attrs.d] applying ownership & permissions fixes...
bazarr                  | [fix-attrs.d] done.
bazarr                  | [cont-init.d] executing container initialization scripts...
bazarr                  | [cont-init.d] 01-envfile: executing...
bazarr                  | [cont-init.d] 01-envfile: exited 0.
bazarr                  | [cont-init.d] 02-tamper-check: executing...
bazarr                  | [cont-init.d] 02-tamper-check: exited 0.
bazarr                  | [cont-init.d] 10-adduser: executing...
bazarr                  | usermod: no changes
bazarr                  |
bazarr                  | -------------------------------------
bazarr                  |           _         ()
bazarr                  |          | |  ___   _    __
bazarr                  |          | | / __| | |  /  \
bazarr                  |          | | \__ \ | | | () |
bazarr                  |          |_| |___/ |_|  \__/
bazarr                  |
bazarr                  |
bazarr                  | Brought to you by linuxserver.io
bazarr                  | -------------------------------------
bazarr                  |
bazarr                  | To support the app dev(s) visit:
bazarr                  | Bazarr: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XHHRWXT9YB7WE&source=url
bazarr                  |
bazarr                  | To support LSIO projects visit:
bazarr                  | https://www.linuxserver.io/donate/
bazarr                  | -------------------------------------
bazarr                  | GID/UID
bazarr                  | -------------------------------------
bazarr                  |
bazarr                  | User uid:    911
bazarr                  | User gid:    911
bazarr                  | -------------------------------------
bazarr                  |
bazarr                  | [cont-init.d] 10-adduser: exited 0.
bazarr                  | [cont-init.d] 30-config: executing...
bazarr                  | [cont-init.d] 30-config: exited 0.
bazarr                  | [cont-init.d] 90-custom-folders: executing...
bazarr                  | [cont-init.d] 90-custom-folders: exited 0.
bazarr                  | [cont-init.d] 99-custom-files: executing...
bazarr                  | [custom-init] no custom files found exiting...
bazarr                  | [cont-init.d] 99-custom-files: exited 0.
bazarr                  | [cont-init.d] done.
bazarr                  | [services.d] starting services
bazarr                  | [services.d] done.
bazarr                  | /app/bazarr/bin/bazarr/../libs/urllib3/connectionpool.py:1043: InsecureRequestWarning: Unverified HTTPS request is being made to host 'sonarr.domain.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
bazarr                  |   warnings.warn(
bazarr                  | 2022-05-07 14:39:50,136 - root                             (7f00de71eb38) :  INFO (signalr_client:40) - BAZARR trying to connect to Sonarr SignalR feed...
bazarr                  | 2022-05-07 14:39:50,136 - root                             (7f00ecafcb48) :  INFO (server:37) - BAZARR is started and waiting for request on http://0.0.0.0:6767/bazarr
bazarr                  | 2022-05-07 14:39:50,258 - root                             (7f00de71eb38) :  INFO (signalr_client:55) - BAZARR SignalR client for Sonarr is connected and waiting for events.

[BUG] /media volume won't map on Unraid

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I've installed and set this docker up on Unraid, but cannot get it to map my /media folder.

It just says "Bazarr cannot write to this directory." for the "/media" object on the Status page.
image

Here are my container mappings:
image

Oddly, whenever I go to try and map the folders for Radarr and Sonarr, it always shows a completely different share under the /data directory that I haven't mapped to this container at all. It's showing my /mnt/user/downloads directory for my DelugeVPN container:
image

This always appears, even if I blank out the /movies and /tv parameters in the container.
I don't know why, because I haven't mapped this share. I mapped my /mnt/user/media share that is used for Plex, Radarr and Sonarr.

I've read through the setup guide, forums, etc., and I cannot find a solution except for mapping the PUID and PGID, which I've done (see container mappings).

Expected Behavior

Bazarr should see the mapped /movies and /tv volumes, and shouldn't see the unmapped volumes.

Steps To Reproduce

  1. Install and setup Bazarr on Unraid

Environment

- OS: Unraid 6.11.5
- How docker service was installed: CA App store

CPU architecture

x86-64

Docker creation

Installed through CA App store

Container logs

[migrations] started
[migrations] no migrations found

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support the app dev(s) visit:
Bazarr: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XHHRWXT9YB7WE&source=url

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    99
User gid:    100
-------------------------------------

[custom-init] No custom files found, skipping...
2023-03-02 20:23:38,683 - root                             (147dc3598b38) :  INFO (signalr_client:54) - BAZARR trying to connect to Sonarr SignalR feed...
2023-03-02 20:23:38,684 - root                             (147dc3495b38) :  INFO (signalr_client:191) - BAZARR trying to connect to Radarr SignalR feed...
2023-03-02 20:23:38,684 - root                             (147dd1d9fb48) :  INFO (server:67) - BAZARR is started and waiting for request on http://0.0.0.0:6767
2023-03-02 20:23:38,694 - root                             (147dc3392b38) :  INFO (signalr_client:219) - BAZARR SignalR client for Radarr is connected and waiting for events.
[ls.io-init] done.
2023-03-02 20:23:38,723 - root                             (147dc3598b38) :  INFO (signalr_client:74) - BAZARR SignalR client for Sonarr is connected and waiting for events.

package_info file

It would be helpful to know what branch we are currently using inside a container. I understand that's the kind of information you can provide trough package_info file. Would it be possible to implement this for Bazarr please? Thanks!

Language profile per season

linuxserver.io


Desired Behavior

Ability to specify language profile per series season, or even episode.

Current Behavior

Only one profile available for entire series. For older series with missing subs, this will keep repeating the search. For example, i have a profile to prefer dutch, otherwise english. When older episodes are unavailable, i would like to specify another profile (only english or even none) per episode or season.

Alternatives Considered

bazarr docker using all available memory (47.84GB)

linuxserver.io

If you are new to Docker or this application our issue tracker is ONLY used for reporting bugs or requesting features. Please use our discord server for general support.


Expected Behavior

Not have any reason to use this much memory

Current Behavior

CONTAINER ID NAME CPU % MEM USAGE / LIMIT MEM % NET I/O BLOCK I/O PIDS
79de0faf2b65 bazarr-4K 0.04% 100.8MiB / 125.9GiB 0.08% 1.85MB / 7.84kB 15.8GB / 209kB 25
28f29620ba34 bazarr 0.04% 47.84GiB / 125.9GiB 37.98% 10.1MB / 323kB 12.8GB / 209kB 27

Steps to Reproduce

Unable to reproduce yet. System did this last night and locked up then again while I was at work this afternoon. Setting -m to 8 gigs and seeing if I will be able to get more information the next time it occurs.

Mainly posting incase anyone else is also investigating the issue.

Environment

OS: UnRaid Docker
CPU architecture: x86_64/arm32/arm64 AMD64 (dual xeon e5 2697v2)
How docker service was installed: UnRaid Community Apps
Bazarr Version:0.8.3.4
Sonarr Version:2.0.0.5338
Radarr Version:0.2.0.1450
Operating System:Linux-4.19.56-Unraid-x86_64-with
Python Version:2.7.16

For now just adding -m 8g to limit usage and prevent docker from being overloaded.

Command used to create docker container (run/create/compose/screenshot)

docker run -d --name='bazarr' --net='br0' --ip='192.168.17.238' -e TZ="America/Los_Angeles" -e HOST_OS="Unraid" -e 'TCP_PORT_6767'='6767' -e 'PUID'='99' -e 'PGID'='100' -v '/mnt/disks/ALLSPARK_GARGANTUAN/Media/Movies/':'/movies':'rw,slave' -v '/mnt/disks/ALLSPARK_GARGANTUAN/Media/TV Shows/':'/tv':'rw,slave' -v '/mnt/user/appdata/bazarr':'/config':'rw' -m 8g 'linuxserver/bazarr'
1d262dae6d4c181787a29f1cb5e615a62761fc530b8cdf1c5608efa3be467d4f

Docker logs

System locked both times unable to provide

Python 3.9.x is unsuported ??

linuxserver.io


Expected Behavior

Current Behavior

2021-10-26 14:58:32,547 - root (ffffad8b07d0) : INFO (server:37) - BAZARR is started and waiting for request on http://0.0.0.0:6767
2021-10-26 14:58:32,550 - root (ffffa73ab9d0) : INFO (signalr_client:41) - BAZARR trying to connect to Sonarr SignalR feed...
2021-10-26 14:58:32,567 - root (ffffa73abbf0) : INFO (signalr_client:105) - BAZARR trying to connect to Radarr SignalR feed...
2021-10-26 14:58:32,741 - root (ffffa73abae0) : INFO (signalr_client:129) - BAZARR SignalR client for Radarr is connected and waiting for events.
2021-10-26 14:58:32,915 - root (ffffa73ab9d0) : INFO (signalr_client:56) - BAZARR SignalR client for Sonarr is connected and waiting for events.
Python 3.9.x is unsupported. Current version is 3.9.5. Keep in mind that even if it works, you're on your own.
Bazarr starting...

Steps to Reproduce

Environment

OS:
CPU architecture: x86_64/arm32/arm64
arm64

How docker service was installed:
from official docker repo using portainer

Command used to create docker container (run/create/compose/screenshot)

image

Docker logs

2021-10-26 14:58:32,547 - root (ffffad8b07d0) : INFO (server:37) - BAZARR is started and waiting for request on http://0.0.0.0:6767
2021-10-26 14:58:32,550 - root (ffffa73ab9d0) : INFO (signalr_client:41) - BAZARR trying to connect to Sonarr SignalR feed...
2021-10-26 14:58:32,567 - root (ffffa73abbf0) : INFO (signalr_client:105) - BAZARR trying to connect to Radarr SignalR feed...
2021-10-26 14:58:32,741 - root (ffffa73abae0) : INFO (signalr_client:129) - BAZARR SignalR client for Radarr is connected and waiting for events.
2021-10-26 14:58:32,915 - root (ffffa73ab9d0) : INFO (signalr_client:56) - BAZARR SignalR client for Sonarr is connected and waiting for events.
Python 3.9.x is unsupported. Current version is 3.9.5. Keep in mind that even if it works, you're on your own.
Bazarr starting...

Bazarr stopped working a day ago, logs suggest no major errors

linuxserver.io


Expected Behavior

Bazarr GUI should load when navigating to port 6767

Current Behavior

Unable to connect on all browsers and machines

Steps to Reproduce

  1. Bazarr working normally in setup
    2.Stops working

Environment

OS: Ubuntu 22.04.1 LTS Jammy
CPU architecture: arm64/aarch64
How docker service was installed:
Through LMDS (https://greenfrognest.com/), also tried by installing through normal docker-compose from (https://bazarr.media), also tried Docker Run

Command used to create docker container (run/create/compose/screenshot)

bazarr:
    image: linuxserver/bazarr:arm64v8-1.0.4
    container_name: bazarr
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=UTC
      - UMASK_SET=022 #optional
    volumes:
      - ./volumes/bazarr/config:/config
      - ./media/movies:/movies
      - ./media/tvshows:/tv
    ports:
      - 6767:6767
    restart: unless-stopped

(Above is specifically trying with an older, version, earlier it was latest)

Docker logs

_bazarr_logs(1).txt
Similar logs presenting every time.

Machine is VPS in Oracle Cloud, Bazarr worked perfectly before along with the rest of the arr stack, a cron script uploads all the downloads to a rclone gdrive mergerfs mount every hour.

Synology Docker - Bazarr stops working after initial setup wizard

Bazarr asks to restart once the initial wizard setup is finished. When it goes to restart it never comes back up.

Synology DS1019+ running DSM 6.2.3-25426

Container Information:
PGID - 101
PUID - 1026
TZ - America/Los_Angeles
Port - 6767
UMASK_SET - 022 (Tried with and without since it's optional)
Enable Auto-Restart
Execute container using higher privileges (Tried with and without this setting toggled)

Volumes:
/docker/Bazarr/config
/Archive/Video/TV Shows
/Storage/Video/Movies
/Storage/Video/Kids
/Storage/Video/Stand Up

Docker Logs:

Bazarr starting...
2020-06-25 02:44:47,484 - root
(7fc08fa91d48) :  INFO (main:2263) - BAZARR is started and waiting for request on http://192.168.1.116:6767/bazarr/
Traceback (most recent call last):
File "/app/bazarr/bazarr/main.py", line 2265, in <module>
server.start()                                                                                  
File "/app/bazarr/bazarr/../libs/cherrypy/wsgiserver/__init__.py", line 2008, in start
raise socket.error(msg)
OSError: No socket could be created -- (('192.168.1.116', 6767): [Errno 99] Address not available)
Traceback (most recent call last):
File "/app/bazarr/bazarr.py", line 86, in <module>
os.wait()
ChildProcessError: [Errno 10] No child process
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/app/bazarr/bazarr.py", line 37, in <lambda>
atexit.register(lambda: ep.kill())
File "/usr/lib/python3.8/subprocess.py", line 1941, in kill
self.send_signal(signal.SIGKILL)
File "/usr/lib/python3.8/subprocess.py", line 1931, in send_signal
os.kill(self.pid, sig)
ProcessLookupError: [Errno 3] No such process

Bazarr Log:

|BAZARR is started and waiting for request on http://192.***.***.***:6767/bazarr/|

/etc/services.d/bazarr/run is no longer marked as executable, breaking s6 read-only root

Note: Quite a few linuxserver containers broke like this relatively recently

Expected Behavior

The file "/root/etc/services.d/bazarr/run" is no longer marked executable in the container, configurations utilizing S6_READ_ONLY_ROOT and what mark the root read-only will fail. This is a regression compared to the previous builds.

Current Behavior

The ./run file of the bazarr service is rw-rw-r-- instead of rwxrw-r-- causing the following error message:

bazarr     | s6-supervise bazarr (child): fatal: unable to exec run: Permission denied
bazarr     | s6-supervise bazarr: warning: unable to spawn ./run - waiting 10 seconds

One chmod in the container fixes that.

Steps to Reproduce

Add the snippet provided below to your compose file.

Similar symptoms or issues:

Environment

OS: Ubuntu 22.04
CPU architecture: arm64
How docker service was installed: Official repos

Command used to create docker container

    read_only: true
    tmpfs:
      - /run:rw,exec
      - /tmp:rw,noexec,nosuid
    environment:
      - "S6_READ_ONLY_ROOT=1"

Installed Python version does not match needed version

linuxserver.io


Expected Behavior

Bazarr should start after loading needed resources

Current Behavior

Bazarr fails, exits, and attempts to restart.

Steps to Reproduce

  1. Fresh install of 'Latest' version of docker
  2. Check logs

Environment

OS: Unraid 6.10 rc2
CPU architecture: x86_64
How docker service was installed: Community Apps Store

Downgrade template to use the requested version of Python or update Bazarr to use the current 3.9.5 version

Command used to create docker container (run/create/compose/screenshot)

image
image

Docker logs

https://pastebin.com/Mm9GG5Qm
https://pastebin.com/P4FvuRtS

Remember login when using 'form' auth

linuxserver.io


Desired Behavior

Not having to enter my credentials every time i use the web page

Current Behavior

Form login screen every time, with no option to remember details (like possible with similar method in radarr)

Alternatives Considered

'Basic' popup screen not nice to use in apple portable environment (iOS/iPadOS)

Docker rate limits reached and possible workaround

linuxserver.io

The issue is new to docker due to rate limits being introduced. Open source projects can apply for an exemption from the rate limits.

Rate limit information: https://www.docker.com/increase-rate-limits
FAQ: https://www.docker.com/pricing/resource-consumption-updates
Blog post on open source: https://www.docker.com/blog/expanded-support-for-open-source-software-projects/
Open Source Project Application: https://www.docker.com/community/open-source/application


Expected Behavior

Pulling docker images via anonymous request should work without rate limiting

Current Behavior

Tuesday 15 December 2020 14:32:32 -0600 (0:00:00.052) 0:00:10.400 ******
fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "Error pulling image linuxserver/bazarr:latest - 500 Server Error: Internal Server Error ("toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit\")"}
to retry, use: --limit @/opt/communityapps/apps/bazarr.retry

Steps to Reproduce

More than 100 docker pull requests need to be performed unauthenticated in a 6 hour period by a single IP

Environment

N/A

Command used to create docker container (run/create/compose/screenshot)

N/A

Docker logs

N/A

[BUG] new postgres connection can not be used

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

error:
Traceback (most recent call last):
File "/app/bazarr/bin/bazarr/main.py", line 22, in
from init import * # noqa E402
File "/app/bazarr/bin/bazarr/init.py", line 229, in
from app.database import init_db, migrate_db # noqa E402
File "/app/bazarr/bin/bazarr/app/database.py", line 101, in
class TableEpisodes(BaseModel):
File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 6342, in new
cls._meta.add_field(name, field)
File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 6126, in add_field
field.bind(self.model, field_name, set_attribute)
File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 4878, in bind
self._db_hook(model._meta.database)
File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 4870, in _db_hook
self._constructor = database.get_binary_type()
File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 4017, in get_binary_type
return psycopg2.Binary
AttributeError: 'NoneType' object has no attribute 'Binary'
Bazarr starting...
Bazarr exited.

Expected Behavior

Normally after configuring new config.ini [postgresql] section, a connection to pre-created postgres database should be made and and schema created at first time.
The hotio/bazarr:nightly image works, maybe check differences?
Bazarr discord chat says some requirements are missing. Have not yet been able to determine which ones. Tried to run proposed: "pip install -r requirements.txt" in the /app/bazarr/bin folder, but that seems insufficient (says all requirements are met, nothing additional installed).

Steps To Reproduce

Configure postgressl section in bazarr config.ini and run.

Environment

- OS: aarch64
- How docker service was installed: docker-compose

CPU architecture

arm64

Docker creation

version: "2.4"
services:
  bazarr:
    #hostname: bazarr
    container_name: bazarr
    image: linuxserver/bazarr:development
    restart: unless-stopped    
    security_opt:
      - no-new-privileges:true
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Amsterdam
      - UMASK=000 #optional
    network_mode: discord-net
    ports:
      - 6767:6767
    volumes:
      - /dockers/bazarr_config/app:/config
      #- /dockers/bazarr_config/custom-cont-init.d:/custom-cont-init.d
      - /data:/data
    logging:
      driver: "local"
      options:
        max-file: "5"
        max-size: "10M"
        mode: "non-blocking"
        max-buffer-size: "5M"

Container logs

Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/main.py", line 22, in <module>
    from init import *  # noqa E402
  File "/app/bazarr/bin/bazarr/init.py", line 229, in <module>
    from app.database import init_db, migrate_db  # noqa E402
  File "/app/bazarr/bin/bazarr/app/database.py", line 101, in <module>
    class TableEpisodes(BaseModel):
  File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 6342, in __new__
    cls._meta.add_field(name, field)
  File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 6126, in add_field
    field.bind(self.model, field_name, set_attribute)
  File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 4878, in bind
    self._db_hook(model._meta.database)
  File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 4870, in _db_hook
    self._constructor = database.get_binary_type()
  File "/app/bazarr/bin/bazarr/../libs/peewee.py", line 4017, in get_binary_type
    return psycopg2.Binary
AttributeError: 'NoneType' object has no attribute 'Binary'
Bazarr starting...
Bazarr exited.

Can't connect to webpage anymore

I noticed today that when i browse to http://192.168.2.100:9005/ i can't connect to the bazarr webpage anymore. A couple days ago it was still working fine. I tried restarting my docker bazarr container. I tried making a new config folder and rebuilding the container but i still get the same result. Whenever i start the docker container i don't see any errors in the logs. Does anyone know what this could be?

This is my docker compose config, which hasn't changed.

bazarr:
image: linuxserver/bazarr
container_name: bazarr
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
volumes:
- ${USERDIR}/docker/bazarr:/config
- ${SHARE}/movies:/movies
- ${SHARE}/series:/tv
ports:
- 9005:6767
restart: unless-stopped

AttributeError: \NoneType\ object has no attribute \check\

linuxserver.io
Traceback (most recent call last):
 File "/app/bazarr/bazarr/get_subtitle.py", line 357, in manual_search
  language_hook=None) # fixme
 File "/app/bazarr/bazarr/../libs/subliminal/core.py", line 653, in list_subtitles
  subtitles = pool.list_subtitles(video, languages - video.subtitle_languages)
 File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 453, in list_subtitles
  itertools.repeat(languages, len(self.providers))):
 File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 581, in result_iterator
  yield future.result()
 File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 398, in result
  return self.__get_result()
 File "/app/bazarr/bazarr/../libs/concurrent/futures/thread.py", line 55, in run
  result = self.fn(*self.args, **self.kwargs)
 File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 437, in list_subtitles_provider
  provider_subtitles = super(SZAsyncProviderPool, self).list_subtitles_provider(provider, video, languages)
 File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 140, in list_subtitles_provider
  if not provider_registry[provider].check(video):
AttributeError: \NoneType\ object has no attribute \check\

QNAP and portainer

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
[s6-init] ensuring user provided files have correct perms...exited 0.,
[fix-attrs.d] applying ownership & permissions fixes...,
[fix-attrs.d] done.,
[cont-init.d] executing container initialization scripts...,
[cont-init.d] 10-adduser: executing... ,
usermod: no changes,
,
-------------------------------------,
_ (),
| | ___ _ _,
| | / | | | / \ ,
| | _
\ | | | () |,
|| |
/ || _/,
,
,
Brought to you by linuxserver.io,
We gratefully accept donations at:,
https://www.linuxserver.io/donate/,
-------------------------------------,
GID/UID,
-------------------------------------,
,
User uid: 911,
User gid: 911,
-------------------------------------,
,
[cont-init.d] 10-adduser: exited 0.,
[cont-init.d] 30-config: executing... ,
[cont-init.d] 30-config: exited 0.,
[cont-init.d] done.,
[services.d] starting services,
[services.d] done.,
Bazarr starting...,
2019-02-19 16:34:47,035 - root (7f0e24eefb88) : INFO (main:1889) - BAZARR is started and waiting for request on http://0.0.0.0:6767/,
Traceback (most recent call last):,
File "/app/bazarr/bazarr/../libs/bottle.py", line 862, in _handle,
return route.call(**args),
File "/app/bazarr/bazarr/../libs/bottle.py", line 1740, in wrapper,
rv = callback(*a, **ka),
File "/app/bazarr/bazarr/main.py", line 135, in wrapper,
return func(*a, **ka),
File "/app/bazarr/bazarr/main.py", line 1729, in get_subtitle_movie,
result = download_subtitle(moviePath, language, hi, providers_list, providers_auth, sceneName, title, 'movie'),
File "/app/bazarr/bazarr/get_subtitle.py", line 247, in download_subtitle,
language_hook=None) # fixme,
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 734, in download_best_subtitles,
subtitles = pool.download_best_subtitles(pool.list_subtitles(video, languages - video.subtitle_languages),,
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 453, in list_subtitles,
itertools.repeat(languages, len(self.providers))):,
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 581, in result_iterator,
yield future.result(),
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 398, in result,
return self.__get_result(),
File "/app/bazarr/bazarr/../libs/concurrent/futures/thread.py", line 55, in run,
result = self.fn(*self.args, **self.kwargs),
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 437, in list_subtitles_provider,
provider_subtitles = super(SZAsyncProviderPool, self).list_subtitles_provider(provider, video, languages),
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 140, in list_subtitles_provider,
if not provider_registry[provider].check(video):,
AttributeError: 'NoneType' object has no attribute 'check',
Traceback (most recent call last):,
File "/app/bazarr/bazarr/../libs/bottle.py", line 862, in _handle,
return route.call(**args),
File "/app/bazarr/bazarr/../libs/bottle.py", line 1740, in wrapper,
rv = callback(*a, **ka),
File "/app/bazarr/bazarr/main.py", line 135, in wrapper,
return func(*a, **ka),
File "/app/bazarr/bazarr/main.py", line 1729, in get_subtitle_movie,
result = download_subtitle(moviePath, language, hi, providers_list, providers_auth, sceneName, title, 'movie'),
File "/app/bazarr/bazarr/get_subtitle.py", line 247, in download_subtitle,
language_hook=None) # fixme,
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 734, in download_best_subtitles,
subtitles = pool.download_best_subtitles(pool.list_subtitles(video, languages - video.subtitle_languages),,
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 453, in list_subtitles,
itertools.repeat(languages, len(self.providers))):,
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 581, in result_iterator,
yield future.result(),
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 398, in result,
return self.__get_result(),
File "/app/bazarr/bazarr/../libs/concurrent/futures/thread.py", line 55, in run,
result = self.fn(*self.args, **self.kwargs),
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 437, in list_subtitles_provider,
provider_subtitles = super(SZAsyncProviderPool, self).list_subtitles_provider(provider, video, languages),
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 140, in list_subtitles_provider,
if not provider_registry[provider].check(video):,
AttributeError: 'NoneType' object has no attribute 'check',
Traceback (most recent call last):,
File "/app/bazarr/bazarr/../libs/bottle.py", line 862, in _handle,
return route.call(**args),
File "/app/bazarr/bazarr/../libs/bottle.py", line 1740, in wrapper,
rv = callback(*a, **ka),
File "/app/bazarr/bazarr/main.py", line 135, in wrapper,
return func(*a, **ka),
File "/app/bazarr/bazarr/main.py", line 1066, in wanted_search_missing_subtitles_list,
wanted_search_missing_subtitles(),
File "/app/bazarr/bazarr/get_subtitle.py", line 660, in wanted_search_missing_subtitles,
wanted_download_subtitles(episode[0]),
File "/app/bazarr/bazarr/get_subtitle.py", line 573, in wanted_download_subtitles,
episode[7], 'series'),
File "/app/bazarr/bazarr/get_subtitle.py", line 247, in download_subtitle,
language_hook=None) # fixme,
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 734, in download_best_subtitles,
subtitles = pool.download_best_subtitles(pool.list_subtitles(video, languages - video.subtitle_languages),,
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 453, in list_subtitles,
itertools.repeat(languages, len(self.providers))):,
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 581, in result_iterator,
yield future.result(),
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 398, in result,
return self.__get_result(),
File "/app/bazarr/bazarr/../libs/concurrent/futures/thread.py", line 55, in run,
result = self.fn(*self.args, **self.kwargs),
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 437, in list_subtitles_provider,
provider_subtitles = super(SZAsyncProviderPool, self).list_subtitles_provider(provider, video, languages),
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 140, in list_subtitles_provider,
if not provider_registry[provider].check(video):,
AttributeError: 'NoneType' object has no attribute 'check',
Traceback (most recent call last):,
File "/app/bazarr/bazarr/../libs/bottle.py", line 862, in _handle,
return route.call(**args),
File "/app/bazarr/bazarr/../libs/bottle.py", line 1740, in wrapper,
rv = callback(*a, **ka),
File "/app/bazarr/bazarr/main.py", line 135, in wrapper,
return func(*a, **ka),
File "/app/bazarr/bazarr/main.py", line 1066, in wanted_search_missing_subtitles_list,
wanted_search_missing_subtitles(),
File "/app/bazarr/bazarr/get_subtitle.py", line 660, in wanted_search_missing_subtitles,
wanted_download_subtitles(episode[0]),
File "/app/bazarr/bazarr/get_subtitle.py", line 573, in wanted_download_subtitles,
episode[7], 'series'),
File "/app/bazarr/bazarr/get_subtitle.py", line 247, in download_subtitle,
language_hook=None) # fixme,
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 734, in download_best_subtitles,
subtitles = pool.download_best_subtitles(pool.list_subtitles(video, languages - video.subtitle_languages),,
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 453, in list_subtitles,
itertools.repeat(languages, len(self.providers))):,
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 581, in result_iterator,
yield future.result(),
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 398, in result,
return self.__get_result(),
File "/app/bazarr/bazarr/../libs/concurrent/futures/thread.py", line 55, in run,
result = self.fn(*self.args, **self.kwargs),
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 437, in list_subtitles_provider,
provider_subtitles = super(SZAsyncProviderPool, self).list_subtitles_provider(provider, video, languages),
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 140, in list_subtitles_provider,
if not provider_registry[provider].check(video):,
AttributeError: 'NoneType' object has no attribute 'check',
Traceback (most recent call last):,
File "/app/bazarr/bazarr/../libs/bottle.py", line 862, in _handle,
return route.call(**args),
File "/app/bazarr/bazarr/../libs/bottle.py", line 1740, in wrapper,
rv = callback(*a, **ka),
File "/app/bazarr/bazarr/main.py", line 135, in wrapper,
return func(*a, **ka),
File "/app/bazarr/bazarr/main.py", line 1729, in get_subtitle_movie,
result = download_subtitle(moviePath, language, hi, providers_list, providers_auth, sceneName, title, 'movie'),
File "/app/bazarr/bazarr/get_subtitle.py", line 247, in download_subtitle,
language_hook=None) # fixme,
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 734, in download_best_subtitles,
subtitles = pool.download_best_subtitles(pool.list_subtitles(video, languages - video.subtitle_languages),,
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 453, in list_subtitles,
itertools.repeat(languages, len(self.providers))):,
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 581, in result_iterator,
yield future.result(),
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 398, in result,
return self.__get_result(),
File "/app/bazarr/bazarr/../libs/concurrent/futures/thread.py", line 55, in run,
result = self.fn(*self.args, **self.kwargs),
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 437, in list_subtitles_provider,
provider_subtitles = super(SZAsyncProviderPool, self).list_subtitles_provider(provider, video, languages),
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 140, in list_subtitles_provider,
if not provider_registry[provider].check(video):,
AttributeError: 'NoneType' object has no attribute 'check',
Traceback (most recent call last):,
File "/app/bazarr/bazarr/../libs/bottle.py", line 862, in _handle,
return route.call(**args),
File "/app/bazarr/bazarr/../libs/bottle.py", line 1740, in wrapper,
rv = callback(*a, **ka),
File "/app/bazarr/bazarr/main.py", line 135, in wrapper,
return func(*a, **ka),
File "/app/bazarr/bazarr/main.py", line 1729, in get_subtitle_movie,
result = download_subtitle(moviePath, language, hi, providers_list, providers_auth, sceneName, title, 'movie'),
File "/app/bazarr/bazarr/get_subtitle.py", line 247, in download_subtitle,
language_hook=None) # fixme,
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 734, in download_best_subtitles,
subtitles = pool.download_best_subtitles(pool.list_subtitles(video, languages - video.subtitle_languages),,
File "/app/bazarr/bazarr/../libs/subliminal_patch/core.py", line 453, in list_subtitles,
itertools.repeat(languages, len(self.providers))):,
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 581, in result_iterator,
yield future.result(),
File "/app/bazarr/bazarr/../libs/concurrent/futures/_base.py", line 398, in result,
return self.__get_result(),
File "/app/bazarr/bazarr/../libs/concurrent/futures/thread.py", line 55, in run,
result = self.fn(*self.args, **self.kwargs),

Thanks, team linuxserver.io

Very happy to provide more info but don't know what you might need. This error seems to happen with any video.

Getting 'InsecureRequestWarning'

linuxserver.io

Thanks, team linuxserver.io

Looking through my logs, I see this warning spammed over and over:
/app/bazarr/bazarr/../libs/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

I'm on openmediavault and this is my docker-compose file:

bazarr:
depends_on:
- ReverseProxy
image: linuxserver/bazarr
restart: unless-stopped
volumes:
- /sharedfolders/Media/TV:/tv
- /sharedfolders/Media/Movies:/movies
- /sharedfolders/mediatools/bazarr:/config
environment:
- TZ=Europe/Bucharest
- PUID=1001
- PGID=100
networks:
- media
container_name: bazarr

Error with get_providers.py, line 301

linuxserver.io

There is an error with line 301 in the get_providers.py that makes Bazarr restart endlessly. Current workaround is to comment out line 301: tp = eval(str(get_throttled_providers())).

Expected Behavior

Bazarr should start normally.

Current Behavior

Bazarr restarts endlessly.

Steps to Reproduce

  1. Start Bazarr container
  2. View log

Environment

OS: Ubuntu LTS 20.04.2
CPU architecture: x86_64/arm32/arm64
How docker service was installed: official docker repo

Command used to create docker container (run/create/compose/screenshot)

bazarr:
image: linuxserver/bazarr:latest
container_name: bazarr
depends_on:
- wireguard
network_mode: service:wireguard
environment:
- PUID=$PUID
- PGID=$PGID
- TZ=$TZ
volumes:
- $DOCKERDIR/bazarr/config:/config
- /mnt/Pool/Movies:/movies
- /mnt/Pool/TV:/tv
restart: always
labels:
- "com.centurylinklabs.watchtower.depends-on=wireguard"

Docker logs

^,
SyntaxError: unmatched ')',
Bazarr starting...,
Bazarr exited.,
Traceback (most recent call last):,
File "/app/bazarr/bazarr/main.py", line 31, in ,
from get_episodes import *,
File "/app/bazarr/bazarr/get_episodes.py", line 10, in ,
from get_subtitle import episode_download_subtitles,
File "/app/bazarr/bazarr/get_subtitle.py", line 29, in ,
from get_providers import get_providers, get_providers_auth, provider_throttle, provider_pool,
File "/app/bazarr/bazarr/get_providers.py", line 301, in ,
tp = eval(str(get_throttled_providers())),
File "", line 1,
{'yifysubtitles': ('ConnectionError', datetime.datetime(2021, 2, 24, 8, 21, 56, 248462), '10 minutes'), 'podnapisi': ('ConnectionError', datetime.datetime(2021, 2, 24, 8, 29, 11, 997878), '10 minutes'), 'supersubtitles': ('ConnectionError', datetime.datetime(2021, 2, 24, 8, 29, 12, 8323), '10 minutes'), 'titrari': ('ConnectionError', datetime.datetime(2021, 2, 24, 8, 29, 11, 992984), '10 minutes'), 'tvsubtitles': ('ConnectionError', datetime.datetime(2021, 2, 24, 8, 29, 12, 9927), '10 minutes')})},
^,
SyntaxError: unmatched ')',
Bazarr starting...,
Bazarr exited.,

Private Container Error

I'm not able to pull this via docker, here's the error I receive:

Error response from daemon: pull access denied for linuxserver/bazarr, repository does not exist or may require 'docker login'

[BUG] Poblem with srarting in k8s with volumes on nfs

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

when starting from scratch in k8s
i get

kubectl logs bazarr-674d499b9f-r9zwf --container=bazarr --namespace=multimedia --follow=true
[custom-init] No custom services found, skipping...
[migrations] started
[migrations] no migrations found

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support the app dev(s) visit:
Bazarr: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XHHRWXT9YB7WE&source=url

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

chown: changing ownership of '/config': Operation not permitted
chown: changing ownership of '/config': Operation not permitted
s6-rc: warning: unable to start service init-bazarr-config: command exited 1

i think it is related to mounting volumes with config from nfs
permissions are set correctly on nfs folder and all its conntent is own by 1000:1000

Expected Behavior

i would like to be able to run bazarr with volumes on nfs

Steps To Reproduce

kubectl apply this

apiVersion: v1
kind: Namespace
metadata:
  name: multimedia
---
apiVersion: v1
data:
  process_group_id: "1000"
  process_user_id: "1000"
  time_zone: UTC
kind: ConfigMap
metadata:
  name: configuration-8mf2964hh6
  namespace: multimedia
---
apiVersion: v1
data: {}
kind: Secret
metadata:
  name: multimedia-secrets-46f8b28mk5
  namespace: multimedia
type: Opaque
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: bazarr
  name: bazarr
  namespace: multimedia
spec:
  ports:
  - name: web
    port: 80
    targetPort: 6767
  - name: bazarr-web
    port: 6767
  selector:
    app: bazarr
  type: ClusterIP
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: bazarr
  namespace: multimedia
spec:
  accessModes:
  - ReadWriteMany
  resources:
    requests:
      storage: 1Gi
  storageClassName: nfs-hdd
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: movies
  namespace: multimedia
spec:
  accessModes:
  - ReadWriteMany
  resources:
    requests:
      storage: 1.0Ti
  storageClassName: nfs-hdd
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: tvs
  namespace: multimedia
spec:
  accessModes:
  - ReadWriteMany
  resources:
    requests:
      storage: 1.0Ti
  storageClassName: nfs-hdd
---
apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: bazarr
  name: bazarr
  namespace: multimedia
spec:
  replicas: 1
  selector:
    matchLabels:
      app: bazarr
  template:
    metadata:
      labels:
        app: bazarr
    spec:
      containers:
      - env:
        - name: TZ
          valueFrom:
            configMapKeyRef:
              key: time_zone
              name: configuration-8mf2964hh6
        - name: PUID
          valueFrom:
            configMapKeyRef:
              key: process_user_id
              name: configuration-8mf2964hh6
        - name: PGID
          valueFrom:
            configMapKeyRef:
              key: process_group_id
              name: configuration-8mf2964hh6
        image: linuxserver/bazarr
        imagePullPolicy: Always
        name: bazarr
        ports:
        - containerPort: 6767
          name: web
        volumeMounts:
        - mountPath: /config
          name: config
        - mountPath: /tv
          name: tvs
        - mountPath: /movies
          name: movies
        - mountPath: /tmp
          name: tmp
        - mountPath: /dev/shm
          name: shm
      restartPolicy: Always
      volumes:
      - emptyDir:
          medium: Memory
        name: tmp
      - emptyDir:
          medium: Memory
        name: shm
      - name: config
        persistentVolumeClaim:
          claimName: bazarr
      - name: tvs
        persistentVolumeClaim:
          claimName: tvs
      - name: movies
        persistentVolumeClaim:
          claimName: movies
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
  name: bazarr-route
  namespace: multimedia
spec:
  entryPoints:
  - websecure
  routes:
  - kind: Rule
    match: Host(`bazarr(public_domain)`)
    services:
    - kind: Service
      name: bazarr
      port: 80
  tls:
    certResolver: letsencrypt

and look into container logs

Environment

- OS: debian 
- How docker service was installed:  curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION="v1.23.14+k3s1" INSTALL_K3S_EXEC="--no-deploy=traefik --service-node-port-range=1-65535" sh -

CPU architecture

x86-64

Docker creation

kubectl apply -k .

Container logs

kubectl  logs bazarr-5b495477fc-z69sp --container=bazarr --namespace=multimedia --follow=true
[custom-init] No custom services found, skipping...
[migrations] started
[migrations] no migrations found

-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/


Brought to you by linuxserver.io
-------------------------------------

To support the app dev(s) visit:
Bazarr: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XHHRWXT9YB7WE&source=url

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------

User uid:    1000
User gid:    1000
-------------------------------------

chown: changing ownership of '/config': Operation not permitted
chown: changing ownership of '/config': Operation not permitted
s6-rc: warning: unable to start service init-bazarr-config: command exited 1

Port 6767 is not working, it won't bring up Bazarr

linuxserver.io


Expected Behavior

Current Behavior

Steps to Reproduce

Environment

OS:
CPU architecture: x86_64/arm32/arm64
How docker service was installed:

Command used to create docker container (run/create/compose/screenshot)

Docker logs

Running Error

linuxserver.io

Bazarr starting... | stdout

pytz.exceptions.UnknownTimeZoneError: 'Can not find any timezone configuration'

2019-04-05 05:56:42 | stdout | raise pytz.UnknownTimeZoneError('Can not find any timezone configuration')
2019-04-05 05:56:42 | stdout | File "/app/bazarr/bazarr/../libs/tzlocal/unix.py", line 125, in _get_localzone

Thanks, team linuxserver.io

Latest development release (1.0.1) does not start due to missing library libopenblas.so.3

linuxserver.io


Expected Behavior

Bazarr launches correctly and is reachable on the assigned port.

Current Behavior

Timeout when trying to reach the web interface.

Steps to Reproduce

  1. Download the attached docker-compose.yml
  2. docker-compose up
  3. Observe the numpy error:
...
bazarr    | [services.d] starting services
bazarr    | You are using a legacy method of defining umask
bazarr    | please update your environment variable from UMASK_SET to UMASK
bazarr    | to keep the functionality after July 2021
bazarr    | [services.d] done.
bazarr    | Traceback (most recent call last):
bazarr    |   File "/usr/lib/python3.8/site-packages/numpy/core/__init__.py", line 22, in <module>
bazarr    |     from . import multiarray
bazarr    |   File "/usr/lib/python3.8/site-packages/numpy/core/multiarray.py", line 12, in <module>
bazarr    |     from . import overrides
bazarr    |   File "/usr/lib/python3.8/site-packages/numpy/core/overrides.py", line 7, in <module>
bazarr    |     from numpy.core._multiarray_umath import (
bazarr    | ImportError: Error loading shared library libopenblas.so.3: No such file or directory (needed by /usr/lib/python3.8/site-packages/numpy/core/_multiarray_umath.cpython-38-x86_64-linux-gnu.so)
...

Environment

OS: Ubuntu 21.10
CPU architecture: x86_64
How docker service was installed: From the official docker repo; hirsute/21.04 version as the impish/21.10 version is not yet available

Also tested under Fedora 35 using podman, observing the same behaviour.
OS: Fedora 35 beta
CPU architecture: x86_64
How docker service was installed: Podman installed from the Fedora 35 repositories using dnf

Command used to create docker container (run/create/compose/screenshot)

Using docker-compose: See attached docker-compose.yml and reproduction steps

Docker logs

See attached files docker-compose-output.txt and docker-logs-bazarr.txt.

Attachments

docker-compose-output.txt
docker-logs-bazarr.txt
docker-compose.yml.txt

Bazarr is moving to a release only deployment strategy

Hey mates,

Currently, the development tag is built from sources. As we are moving the UI to React, we're gonna have to run build in pipeline and include the result in releases archives. For matser branch, we'll use releases but for every push to development branch, we create a pre-release. Would it be possible to switch the development tag to those pre-releases?

This could be done right now as we already produce those pre-releases.

Thanks!

bazarr giving 'Error: 500 Internal Server Error'

Having an issue with Bazarr running on my Synology 1813+ (DSM 6.2.1-23824 Update 1) with 4GB RAM running with the latest docker container.

Everytime I manually or automated run a 'download all wanted' for TV shows I get the error from the attached file.
Once I turn off the link to Sonarr and only use Radarr it works perfectly, as soon as I turn on Sonarr again I get attached error.
API to Sonarr is set, tested and working, also all shows and episodes are shown correcty.
Also when I try to manually search for 1 individual TV show with multiple missing subs I get the error, when I search for individual subs for individual episodes it works.

Thanks for your support!

sonarr error

[BUG] Error in Bazarr using docker compose

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I'm running several docker containers using Portainer, sonarr, radarr, prowlarr, all working perfectly. I went to install the bazarr to use and it did not start. There was an error in the container.

Expected Behavior

.

Steps To Reproduce

.

Environment

- OS:UBUNTU 22.04 LTS
- How docker service was installed: gerenciador de pacotes da distro

CPU architecture

x86-64

Docker creation

---
version: "2.1"
services:
  bazarr:
    image: lscr.io/linuxserver/bazarr:latest
    container_name: bazarr
    environment:
      - PUID=1002
      - PGID=1003
      - TZ=Brazil
    volumes:
      - /media/docker/bazarr/config:/config
      - /media/drive/:/media/
    labels:
      - traefik.enable=true
      - traefik.docker.network=proxy
      - traefik.http.routers.bazarr.entrypoints=websecure
      - traefik.http.routers.bazarr.rule=Host(`bazarr.meusite.com`)
    networks:
      - proxy      
    ports:
      - 6767:6767
    restart: unless-stopped
    
networks:
  proxy:
    external: true

Container logs

[migrations] started
[migrations] no migrations found
-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/
Brought to you by linuxserver.io
-------------------------------------
To support the app dev(s) visit:
Bazarr: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XHHRWXT9YB7WE&source=url
To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid:    1002
User gid:    1003
-------------------------------------
[custom-init] No custom files found, skipping...
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/../libs/waitress/adjustments.py", line 374, in __init__
    for s in socket.getaddrinfo(
  File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -8] Unrecognized service
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/main.py", line 41, in <module>
    from app.server import webserver  # noqa E402
  File "/app/bazarr/bin/bazarr/app/server.py", line 111, in <module>
    webserver = Server()
  File "/app/bazarr/bin/bazarr/app/server.py", line 43, in __init__
    self.configure_server()
  File "/app/bazarr/bin/bazarr/app/server.py", line 47, in configure_server
    self.server = create_server(app,
  File "/app/bazarr/bin/bazarr/../libs/waitress/server.py", line 49, in create_server
    adj = Adjustments(**kw)
  File "/app/bazarr/bin/bazarr/../libs/waitress/adjustments.py", line 401, in __init__
    raise ValueError("Invalid host/port specified.")
ValueError: Invalid host/port specified.

Cannot start bazarr on docker after upgrade to v0.9.1

linuxserver.io


Expected Behavior

Normal process startup listening on port 6767.

Current Behavior

I am trying to start the Docker container once I pulled the latest bazarr docker image from linuxserver.io. Process is failing with the following error:

Current thread 0x75f79390 (most recent call first):                                                                                                                               
<no Python frame>                                                                                                                                                                 
Fatal Python error: pyinit_main: can't initialize time                                                                                                                            
Python runtime state: core initialized                                                                                                                                            
PermissionError: [Errno 1] Operation not permitted   

Steps to Reproduce

On NAS QNAP TS-231P2, Pull latest Docker image from linuxserver.io - version 0.9.1 and try to start it.

Environment

OS:
CPU architecture: arm32
How docker service was installed:
via Container Station from Docker Hub using latest linuxserver.io image.
Bazarr: v 0.9.1
Docker 20.10.3 on linux, arm
QNAP TS-231P2
OS: Arm 32bit

Command used to create docker container (run/create/compose/screenshot)

Screenshot 2021-02-22 at 4 07 48

Docker logs

Web UI Fails with TZ entry

linuxserver.io


Expected Behavior

Should be able to access Web UI with IP:6767

Current Behavior

Web UI fails to open.

Steps to Reproduce

  1. Removed and redeployed container but same result
  2. Removing ENV TZ entry fixes issue

Environment

OS: Ununtu Server 20.04 (Running on Proxmox host)
CPU architecture: x86_64
How docker service was installed: official docker repo

Command used to create docker container (run/create/compose/screenshot)

version: "2.1"
services:
bazarr:
image: lscr.io/linuxserver/bazarr
container_name: bazarr
network_mode: "container:expressvpn"
environment:
- PUID=1000
- PGID=1000
- TZ=America/New York
volumes:
- /home/ssolomon/appdata/bazarr/config:/config
- /mnt/PlexMedia/Movies:/movies #optional
- /mnt/PlexMedia/TV Shows:/tv #optional
restart: unless-stopped

Docker logs

from scheduler import scheduler

File "/app/bazarr/bin/bazarr/scheduler.py", line 282, in
scheduler = Scheduler()
File "/app/bazarr/bin/bazarr/scheduler.py", line 37, in init
self.aps_scheduler = BackgroundScheduler()
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/base.py", line 87, in init
self.configure(gconfig, **options)
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/base.py", line 131, in configure
self._configure(config)
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/background.py", line 29, in _configure
super(BackgroundScheduler, self)._configure(config)
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/base.py", line 702, in _configure
self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
File "/app/bazarr/bin/bazarr/../libs/tzlocal/unix.py", line 203, in get_localzone
_cache_tz = _get_localzone()
File "/app/bazarr/bin/bazarr/../libs/tzlocal/unix.py", line 161, in _get_localzone
tzenv = utils._tz_from_env()
File "/app/bazarr/bin/bazarr/../libs/tzlocal/utils.py", line 122, in _tz_from_env
raise ZoneInfoNotFoundError(
tzlocal.utils.ZoneInfoNotFoundError: 'tzlocal() does not support non-zoneinfo timezones like %s. \nPlease use a timezone in the form of Continent/City'
Bazarr exited.
Bazarr starting...
Traceback (most recent call last):
File "/app/bazarr/bin/bazarr/main.py", line 34, in
from signalr_client import sonarr_signalr_client, radarr_signalr_client # noqa E402
File "/app/bazarr/bin/bazarr/signalr_client.py", line 17, in
from scheduler import scheduler
File "/app/bazarr/bin/bazarr/scheduler.py", line 282, in
scheduler = Scheduler()
File "/app/bazarr/bin/bazarr/scheduler.py", line 37, in init
self.aps_scheduler = BackgroundScheduler()
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/base.py", line 87, in init
self.configure(gconfig, **options)
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/base.py", line 131, in configure
self._configure(config)
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/background.py", line 29, in _configure
super(BackgroundScheduler, self)._configure(config)
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/base.py", line 702, in _configure
self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
File "/app/bazarr/bin/bazarr/../libs/tzlocal/unix.py", line 203, in get_localzone
_cache_tz = _get_localzone()
File "/app/bazarr/bin/bazarr/../libs/tzlocal/unix.py", line 161, in _get_localzone
tzenv = utils._tz_from_env()
File "/app/bazarr/bin/bazarr/../libs/tzlocal/utils.py", line 122, in _tz_from_env
raise ZoneInfoNotFoundError(
tzlocal.utils.ZoneInfoNotFoundError: 'tzlocal() does not support non-zoneinfo timezones like %s. \nPlease use a timezone in the form of Continent/City'
Bazarr exited.
Bazarr starting...
Traceback (most recent call last):
File "/app/bazarr/bin/bazarr/main.py", line 34, in
from signalr_client import sonarr_signalr_client, radarr_signalr_client # noqa E402
File "/app/bazarr/bin/bazarr/signalr_client.py", line 17, in
from scheduler import scheduler
File "/app/bazarr/bin/bazarr/scheduler.py", line 282, in
scheduler = Scheduler()
File "/app/bazarr/bin/bazarr/scheduler.py", line 37, in init
self.aps_scheduler = BackgroundScheduler()
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/base.py", line 87, in init
self.configure(gconfig, **options)
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/base.py", line 131, in configure
self._configure(config)
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/background.py", line 29, in _configure
super(BackgroundScheduler, self)._configure(config)
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/base.py", line 702, in _configure
self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
File "/app/bazarr/bin/bazarr/../libs/tzlocal/unix.py", line 203, in get_localzone
_cache_tz = _get_localzone()
File "/app/bazarr/bin/bazarr/../libs/tzlocal/unix.py", line 161, in _get_localzone
tzenv = utils._tz_from_env()
File "/app/bazarr/bin/bazarr/../libs/tzlocal/utils.py", line 122, in _tz_from_env
raise ZoneInfoNotFoundError(
tzlocal.utils.ZoneInfoNotFoundError: 'tzlocal() does not support non-zoneinfo timezones like %s. \nPlease use a timezone in the form of Continent/City'
Bazarr exited.
Bazarr starting...
Traceback (most recent call last):
File "/app/bazarr/bin/bazarr/main.py", line 34, in
from signalr_client import sonarr_signalr_client, radarr_signalr_client # noqa E402
File "/app/bazarr/bin/bazarr/signalr_client.py", line 17, in
from scheduler import scheduler
File "/app/bazarr/bin/bazarr/scheduler.py", line 282, in
scheduler = Scheduler()
File "/app/bazarr/bin/bazarr/scheduler.py", line 37, in init
self.aps_scheduler = BackgroundScheduler()
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/base.py", line 87, in init
self.configure(gconfig, **options)
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/base.py", line 131, in configure
self._configure(config)
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/background.py", line 29, in _configure
super(BackgroundScheduler, self)._configure(config)
File "/app/bazarr/bin/bazarr/../libs/apscheduler/schedulers/base.py", line 702, in _configure
self.timezone = astimezone(config.pop('timezone', None)) or get_localzone()
File "/app/bazarr/bin/bazarr/../libs/tzlocal/unix.py", line 203, in get_localzone
_cache_tz = _get_localzone()
File "/app/bazarr/bin/bazarr/../libs/tzlocal/unix.py", line 161, in _get_localzone
tzenv = utils._tz_from_env()
File "/app/bazarr/bin/bazarr/../libs/tzlocal/utils.py", line 122, in _tz_from_env
raise ZoneInfoNotFoundError(
tzlocal.utils.ZoneInfoNotFoundError: 'tzlocal() does not support non-zoneinfo timezones like %s. \nPlease use a timezone in the form of Continent/City'
Bazarr exited.
Bazarr starting...

Connection refused from all the providers (urllib3.connectionpool)

linuxserver.io


Expected Behavior

Bazarr should connect to the providers to search for the subtitles

Current Behavior

All the providers are throwing connection errors from a week ago.

Steps to Reproduce

  1. Open Bazarr
  2. Search for subtitles (manually or scheduled)

Environment

OS: Raspbian GNU/Linux 10 (buster) / Docker
CPU architecture: arm32 (raspberry Pi 4)
How docker service was installed: From official docker hub via Portainer

Command used to create docker container (run/create/compose/screenshot)

Installed from Portainer UI

Docker logs

_bazarr_logs (1).txt
docker.log

[BUG] SSL: WRONG_SIGNATURE_TYPE for podnapisi.net

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Bazarr will throttle provider Podnapisi every 10 minutes because of 'SSLError'.

HTTPSConnectionPool(host='www.podnapisi.net', port=443): Max retries exceeded with url: /subtitles/search/old?sXML=1&sL=nl&sK=Beverly+Hills+Cop+III&sY=1994 (Caused by SSLError(SSLError(1, '[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:997)'))), retrying in 5 seconds...

In the official Bazarr Discord it was established this seems to be related to openssl configuration in latest versions. Apparently podnapisi now uses a ssl cipher that the specific openssl version in the lsio docker image does not allow.

Podnapisi does work in hotio's Bazarr docker image. Here's the difference in openssl version between the two images, maybe it helps debugging:

~ 33.1s | 111 ❱ docker run --rm linuxserver/bazarr curl -V
...
curl 7.87.0 (aarch64-alpine-linux-musl) libcurl/7.87.0 OpenSSL/3.0.7 zlib/1.2.13 brotli/1.0.9 nghttp2/1.51.0
...

~ 41.1s ❱ docker run --rm hotio/bazarr curl -V
...
curl 7.83.1 (aarch64-alpine-linux-musl) libcurl/7.83.1 OpenSSL/1.1.1s zlib/1.2.12 brotli/1.0.9 nghttp2/1.47.0
...

Expected Behavior

Bazarr should not throttle provider Podnapisi every 10 minutes because of 'SSLError'.

Steps To Reproduce

  1. Navigate to Settings --> Providers
  2. Enable Podnapisi
  3. Search for subtitles
  4. Navigate to System --> Providers
  5. Observe podnapisi having status 'SSLError'

Environment

- OS: Ubuntu 22.04 LTS
- How docker service was installed: distro's packagemanager

CPU architecture

x86-64

Docker creation

services:
  bazarr:
   image: lscr.io/linuxserver/bazarr:latest
   container_name: bazarr
   environment:
     - PUID=1000
     - PGID=1000
     - TZ=Europe/Amsterdam
   devices:
     - /dev/dri:/dev/dri
   volumes:
     - /opt/docker/bazarr/config:/config
     - /syno/video/tv:/tv
     - /syno/video/movies:/movies
   restart: unless-stopped

Container logs

2023-01-27 13:59:43,961 - retry.api                        (7faad83cab38) :  WARNING (api:40) - HTTPSConnectionPool(host='www.podnapisi.net', port=443): Max retries exceeded with url: /subtitles/search/old?sXML=1&sL=nl&sK=s+w+a+t&sTS=6&sTE=10&sY=2017 (Caused by SSLError(SSLError(1, '[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:997)'))), retrying in 5 seconds...
2023-01-27 13:59:49,137 - retry.api                        (7faad83cab38) :  WARNING (api:40) - HTTPSConnectionPool(host='www.podnapisi.net', port=443): Max retries exceeded with url: /subtitles/search/old?sXML=1&sL=nl&sK=s+w+a+t&sTS=6&sTE=10&sY=2017 (Caused by SSLError(SSLError(1, '[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:997)'))), retrying in 5 seconds...
2023-01-27 13:59:54,458 - root                             (7faad83cab38) :  INFO (get_providers:287) - Throttling podnapisi for 10 minutes, until 23/01/27 14:09, because of: SSLError. Exception info: MaxRetryError("HTTPSConnectionPool(host='www.podnapisi.net', port=443): Max retries exceeded with url: /subtitles/search/old?sXML=1&sL=nl&sK=s+w+a+t&sTS=6&sTE=10&sY=2017 (Caused by SSLError(SSLError(1, '[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:997)')))")
2023-01-27 14:10:46,875 - root                             (7faae2eafb38) :  INFO (get_providers:132) - Using podnapisi again after 10 minutes, (disabled because: SSLError)
2023-01-27 14:10:47,870 - retry.api                        (7faad83cab38) :  WARNING (api:40) - HTTPSConnectionPool(host='www.podnapisi.net', port=443): Max retries exceeded with url: /subtitles/search/old?sXML=1&sL=nl&sK=diagnosis+murder&sTS=2&sTE=7&sY=1993 (Caused by SSLError(SSLError(1, '[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:997)'))), retrying in 5 seconds...
2023-01-27 14:10:50,361 - root                             (7faae29a0b38) :  INFO (movies:44) - BAZARR Search is throttled by adaptive search for this movie /movies/The Incredible Hulk (2008)/The.Incredible.Hulk.2008.Blu-ray.СEE.1080p.H.264.DD5.1-HDCLUB.iso and language: en
2023-01-27 14:10:50,454 - root                             (7faae29a0b38) :  ERROR (utils:53) - BAZARR Error ('.iso' is not a valid video extension) trying to get video information for this file: /movies/The Incredible Hulk (2008)/The.Incredible.Hulk.2008.Blu-ray.СEE.1080p.H.264.DD5.1-HDCLUB.iso
2023-01-27 14:10:51,397 - retry.api                        (7faad78abb38) :  WARNING (api:40) - HTTPSConnectionPool(host='www.podnapisi.net', port=443): Max retries exceeded with url: /subtitles/search/old?sXML=1&sL=nl&sK=Beverly+Hills+Cop+III&sY=1994 (Caused by SSLError(SSLError(1, '[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:997)'))), retrying in 5 seconds...
2023-01-27 14:10:53,162 - retry.api                        (7faad83cab38) :  WARNING (api:40) - HTTPSConnectionPool(host='www.podnapisi.net', port=443): Max retries exceeded with url: /subtitles/search/old?sXML=1&sL=nl&sK=diagnosis+murder&sTS=2&sTE=7&sY=1993 (Caused by SSLError(SSLError(1, '[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:997)'))), retrying in 5 seconds...
2023-01-27 14:10:56,599 - retry.api                        (7faad78abb38) :  WARNING (api:40) - HTTPSConnectionPool(host='www.podnapisi.net', port=443): Max retries exceeded with url: /subtitles/search/old?sXML=1&sL=nl&sK=Beverly+Hills+Cop+III&sY=1994 (Caused by SSLError(SSLError(1, '[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:997)'))), retrying in 5 seconds...
2023-01-27 14:10:58,434 - root                             (7faad83cab38) :  INFO (get_providers:287) - Throttling podnapisi for 10 minutes, until 23/01/27 14:20, because of: SSLError. Exception info: MaxRetryError("HTTPSConnectionPool(host='www.podnapisi.net', port=443): Max retries exceeded with url: /subtitles/search/old?sXML=1&sL=nl&sK=diagnosis+murder&sTS=2&sTE=7&sY=1993 (Caused by SSLError(SSLError(1, '[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:997)')))")
2023-01-27 14:11:01,942 - root                             (7faad78abb38) :  INFO (get_providers:287) - Throttling podnapisi for 10 minutes, until 23/01/27 14:21, because of: SSLError. Exception info: MaxRetryError("HTTPSConnectionPool(host='www.podnapisi.net', port=443): Max retries exceeded with url: /subtitles/search/old?sXML=1&sL=nl&sK=Beverly+Hills+Cop+III&sY=1994 (Caused by SSLError(SSLError(1, '[SSL: WRONG_SIGNATURE_TYPE] wrong signature type (_ssl.c:997)')))")
2023-01-27 14:11:12,597 - root                             (7faad75a2b38) :  INFO (get_providers:287) - Throttling subscene for 10 minutes, until 23/01/27 14:21, because of: HTTPError. Exception info: '409 Client Error: Conflict for url: https://subscene.com/subtitles/searchbytitle'
2023-01-27 14:12:26,077 - root                             (7faae2eafb38) :  INFO (series:137) - BAZARR Finished searching for missing Series Subtitles. Check History for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.