linuxserver / docker-bazarr

GNU General Public License v3.0
217 stars 29 forks source link

Web UI Fails with TZ entry #89

Closed ssolomon-tech closed 2 years ago

ssolomon-tech commented 2 years ago

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:

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...

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

j0nnymoe commented 2 years ago

America/New York in incorrect, it's America/New_York

ssolomon-tech commented 2 years ago

America/New York in incorrect, it's America/New_York

In using other containers like Sonarr/Radarr I used the syntax of "America/New York" and it worked. Is the TZ naming convention container specific or is there a reaon those work with that syntax and this does not?

j0nnymoe commented 2 years ago

Probably more the fact sonarr and radarr are just ignoring it and continuing to load. Bazarr doesn't work like that. For it to be correct, you need the _: image

ssolomon-tech commented 2 years ago

Probably more the fact sonarr and radarr are just ignoring it and continuing to load. Bazarr doesn't work like that. For it to be correct, you need the _: image

So besides feeling like an idiot, should I go back and modify the other containers?

j0nnymoe commented 2 years ago

Yea it would be worth doing at some point.

ssolomon-tech commented 2 years ago

Thanks. I should be able to just edit the container and modify the ENV entry right?

j0nnymoe commented 2 years ago

Adjust the TZ entry and assuming you've used compose docker-compose up -d and it will rebuild the container.

ssolomon-tech commented 2 years ago

Using Portainer so have been doing my edits there.

j0nnymoe commented 2 years ago

Ok, that's not something I can comment on as I don't use it. (Also something that we dont recommend for deploying our containers.)

biggt commented 2 years ago

I can confirm that even when utilizing - TZ=America\New_York, it is still failing with the same errors that this issue was opened with.

If I comment out the timezone as I have it configured, it works properly and starts bazarr.

version: "3"
services:
    bazarr:
        image: ghcr.io/linuxserver/bazarr
        container_name: bazarr
        environment:
            - PUID=1000
            - PGID=1000
            - TZ=America\New_York
        volumes:
            - ./config:/config
            - /R6Data/VideoCollection/Movies/HD:/R6Data/VideoCollection/Movies/HD
            - /R6Data/VideoCollection/Movies/4K:/R6Data/VideoCollection/Movies/4K
            - /R6Data/VideoCollection/TVShows:/R6Data/VideoCollection/TVShows
        ports:
            - 6767:6767
        restart: unless-stopped

networks:
    default:
        external:
            name: proxy
j0nnymoe commented 2 years ago

@biggt because you did America\New_York not America/New_York.