Skip to content

Unhandled Exception rises after few seconds, server closes - starting after version V1.5.0-LS280 #149

Open
@hexenbane

Description

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

after version V1.5.0-LS280 the container starts, but then after a few seconds the following error arises, server is not accessible but the container keeps running:

2024-12-27 22:58:17,404 - root (7903b5e4bb28) : ERROR (server:73) - BAZARR cannot start because of unhandled exception.
self.server.close()

Expected Behavior

Webserver accessible after container running

Steps To Reproduce

after running a few seconds the webserver closes, permissions on volumes are unchanged, the error disappears on version LS280, after this version the same error appears

Environment

- OS:Ubuntu 24.04
- How docker service was installed: official repositories with official guide

CPU architecture

x86-64

Docker creation

compose file if needed:
services:
  bazarr:
    container_name: "bazarr"
    environment:
      - "PUID=1000"
      - "PGID=1000"
      - "TZ=Etc/UTC"
    image: "ghcr.io/linuxserver/bazarr:latest"
    ports:
      - "6767:6767"
    restart: "unless-stopped"
    volumes:
      - "/data/movies:/movies"
      - "/data/series:/tv"
      - "/data/docker_configs/bazarr/config:/config"

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:    1000
User GID:    1000
───────────────────────────────────────
Linuxserver.io version: v1.5.0-ls284
Build-date: 2024-12-25T22:17:44+00:00
───────────────────────────────────────
    
[custom-init] No custom files found, skipping...
2024-12-27 22:58:17,404 - root                             (7903b5e4bb28) :  ERROR (server:73) - BAZARR cannot start because of unhandled exception.
Closing database...
Closing webserver...
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/app/server.py", line 46, in configure_server
    self.server = create_server(app,
                  ^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../libs/waitress/server.py", line 78, in create_server
    last_serv = TcpWSGIServer(
                ^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/../libs/waitress/server.py", line 243, in __init__
    self.bind_server_socket()
  File "/app/bazarr/bin/bazarr/../libs/waitress/server.py", line 364, in bind_server_socket
    self.bind(sockaddr)
  File "/app/bazarr/bin/bazarr/../libs/waitress/wasyncore.py", line 395, in bind
    return self.socket.bind(addr)
           ^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 99] Address not available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/app/bazarr/bin/bazarr/main.py", line 43, in <module>
    from app.server import webserver, app  # noqa E402
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/bazarr/bin/bazarr/app/server.py", line 108, in <module>
    webserver = Server()
                ^^^^^^^^
  File "/app/bazarr/bin/bazarr/app/server.py", line 42, in __init__
    self.configure_server()
  File "/app/bazarr/bin/bazarr/app/server.py", line 74, in configure_server
    self.shutdown()
  File "/app/bazarr/bin/bazarr/app/server.py", line 100, in shutdown
    self.close_all()
  File "/app/bazarr/bin/bazarr/app/server.py", line 97, in close_all
    self.server.close()
    ^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status

      Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions