Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to upgrade to 1.5.0 on Docker #2804

Closed
elkinjosetm opened this issue Dec 25, 2024 · 7 comments
Closed

Unable to upgrade to 1.5.0 on Docker #2804

elkinjosetm opened this issue Dec 25, 2024 · 7 comments

Comments

@elkinjosetm
Copy link

Describe the bug
After upgrading from 1.4.5 to 1.5.0 the container is not longer able to initialize with the following errors in the logs:

2024-12-25 11:57:13,267 - root                             (7f9c31648b28) :  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'

To Reproduce
Steps to reproduce the behavior:

  1. Upgrade 1.4.5 to 1.5.0

Expected behavior
Being able to upgrade to 1.5.0

Software (please complete the following information):

  • Bazarr: v1.5.0
  • Radarr version v5.16.3.9541
  • Sonarr version v4.0.11.2680
  • OS: Docker container linuxserver/bazarr

Additional context
For now I downgraded back to 1.4.5 to keep using the service

@elkinjosetm elkinjosetm changed the title Unable to upgrade to 1.5.0 Unable to upgrade to 1.5.0 on Docker Dec 25, 2024
@morpheus65535
Copy link
Owner

What IP address did you configure in your config.yaml?

@elkinjosetm
Copy link
Author

elkinjosetm commented Dec 25, 2024

What IP address did you configure in your config.yaml?

The local ip assigned to the server: 192.168.1.16

@morpheus65535
Copy link
Owner

Python need to be able to hold the IP address. If you're running using Docker, the only valid IP are 127.0.0.1 or the container IP on the docker network. The docker host isn't availble inside the container. If you set it to 0.0.0.0, it will listen on every available address.

@elkinjosetm
Copy link
Author

Oh! That was it, thank you!

@steef12111
Copy link

@morpheus65535 Should this IP be set to 0.0.0.0 inside the bazarr config? Or somewhere in the docker-compose.yaml?
Thanks!

@morpheus65535
Copy link
Owner

@morpheus65535 Should this IP be set to 0.0.0.0 inside the bazarr config? Or somewhere in the docker-compose.yaml?

Thanks!

In Bazarr config directly. There's no benefit to modify that when using Docker.

@steef12111
Copy link

Did the job, thanks!

@morpheus65535 morpheus65535 pinned this issue Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants