truecharts / charts

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.13k stars 620 forks source link

Bazarr Fails To Display Running #16326

Closed Luke1287 closed 9 months ago

Luke1287 commented 9 months ago

App Name

Bazarr

Operating System

TrueNAS SCALE 23.10.1

App Version

1.4.0

Application Events

Application Starts and runs but shows as deploying in apps list.

Application Logs

2023-12-20 09:43:26.656579-06:00Bazarr starting...
2023-12-20 09:43:31.221837-06:002023-12-20 09:43:31,221 - root                             (7fe5e773eb38) :  INFO (signalr_client:54) - BAZARR trying to connect to Sonarr SignalR feed...
2023-12-20 09:43:31.223424-06:002023-12-20 09:43:31,223 - root                             (7fe5e762cb38) :  INFO (signalr_client:189) - BAZARR trying to connect to Radarr SignalR feed...
2023-12-20 09:43:31.223531-06:002023-12-20 09:43:31,223 - root                             (7fe672ff2b48) :  INFO (server:67) - BAZARR is started and waiting for request on http://0.0.0.0:6767
2023-12-20 09:43:31.229490-06:002023-12-20 09:43:31,229 - root                             (7fe5e751ab38) :  INFO (signalr_client:217) - BAZARR SignalR client for Radarr is connected and waiting for events.
2023-12-20 09:43:31.245635-06:002023-12-20 09:43:31,245 - root                             (7fe5e773eb38) :  INFO (signalr_client:74) - BAZARR SignalR client for Sonarr is connected and waiting for events.
2023-12-20 09:59:47.230755-06:002023-12-20 09:59:47,230 - root                             (7fe5e762cb38) :  ERROR (signalr_client:224) - BAZARR SignalR client for Radarr connection as been lost. Trying to reconnect...
2023-12-20 10:00:20.565161-06:002023-12-20 10:00:20,565 - root                             (7fe5e41adb38) :  INFO (signalr_client:217) - BAZARR SignalR client for Radarr is connected and waiting for events.
2023-12-20 10:01:16.378954-06:00Exception in thread Thread-7 (wrapped_listener):
2023-12-20 10:01:16.378997-06:00Traceback (most recent call last):
2023-12-20 10:01:16.379004-06:00File "/app/bazarr/../libs/sseclient.py", line 96, in __next__
2023-12-20 10:01:16.379124-06:00next_chunk = next(self.resp_iterator)
2023-12-20 10:01:16.379140-06:00StopIteration
2023-12-20 10:01:16.379147-06:002023-12-20T10:01:16.379147332-06:00
2023-12-20 10:01:16.379153-06:00During handling of the above exception, another exception occurred:
2023-12-20 10:01:16.379172-06:002023-12-20T10:01:16.379172528-06:00
2023-12-20 10:01:16.379178-06:00Traceback (most recent call last):
2023-12-20 10:01:16.379182-06:00File "/app/bazarr/../libs/urllib3/connection.py", line 174, in _new_conn
2023-12-20 10:01:16.379363-06:00conn = connection.create_connection(
2023-12-20 10:01:16.379383-06:00File "/app/bazarr/../libs/subliminal_patch/http.py", line 325, in patched_create_connection
2023-12-20 10:01:16.379433-06:00return _orig_create_connection(address, *args, **kwargs)
2023-12-20 10:01:16.379446-06:00File "/app/bazarr/../libs/urllib3/util/connection.py", line 95, in create_connection
2023-12-20 10:01:16.379493-06:00raise err
2023-12-20 10:01:16.379513-06:00File "/app/bazarr/../libs/urllib3/util/connection.py", line 85, in create_connection
2023-12-20 10:01:16.379519-06:00sock.connect(sa)
2023-12-20 10:01:16.379527-06:00ConnectionRefusedError: [Errno 111] Connection refused
2023-12-20 10:01:16.379530-06:002023-12-20T10:01:16.379530024-06:00
2023-12-20 10:01:16.379532-06:00During handling of the above exception, another exception occurred:
2023-12-20 10:01:16.379534-06:002023-12-20T10:01:16.379534392-06:00
2023-12-20 10:01:16.379536-06:00Traceback (most recent call last):
2023-12-20 10:01:16.379540-06:00File "/app/bazarr/../libs/urllib3/connectionpool.py", line 703, in urlopen
2023-12-20 10:01:16.379659-06:00httplib_response = self._make_request(
2023-12-20 10:01:16.379661-06:00File "/app/bazarr/../libs/urllib3/connectionpool.py", line 398, in _make_request
2023-12-20 10:01:16.379731-06:00conn.request(method, url, **httplib_request_kw)
2023-12-20 10:01:16.379745-06:00File "/app/bazarr/../libs/urllib3/connection.py", line 239, in request
2023-12-20 10:01:16.379761-06:00super(HTTPConnection, self).request(method, url, body=body, headers=headers)
2023-12-20 10:01:16.379768-06:00File "/usr/lib/python3.10/http/client.py", line 1283, in request
2023-12-20 10:01:16.379958-06:00self._send_request(method, url, body, headers, encode_chunked)
2023-12-20 10:01:16.379961-06:00File "/usr/lib/python3.10/http/client.py", line 1329, in _send_request
2023-12-20 10:01:16.380133-06:00self.endheaders(body, encode_chunked=encode_chunked)
2023-12-20 10:01:16.380137-06:00File "/usr/lib/python3.10/http/client.py", line 1278, in endheaders
2023-12-20 10:01:16.380290-06:00self._send_output(message_body, encode_chunked=encode_chunked)
2023-12-20 10:01:16.380293-06:00File "/usr/lib/python3.10/http/client.py", line 1038, in _send_output
2023-12-20 10:01:16.380422-06:00self.send(msg)
2023-12-20 10:01:16.380425-06:00File "/usr/lib/python3.10/http/client.py", line 976, in send
2023-12-20 10:01:16.380550-06:00self.connect()
2023-12-20 10:01:16.380563-06:00File "/app/bazarr/../libs/urllib3/connection.py", line 205, in connect
2023-12-20 10:01:16.380578-06:00conn = self._new_conn()
2023-12-20 10:01:16.380584-06:00File "/app/bazarr/../libs/urllib3/connection.py", line 186, in _new_conn
2023-12-20 10:01:16.380604-06:00raise NewConnectionError(
2023-12-20 10:01:16.380610-06:00urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fe5ef0aa200>: Failed to establish a new connection: [Errno 111] Connection refused
2023-12-20 10:01:16.380622-06:002023-12-20T10:01:16.380622022-06:00
2023-12-20 10:01:16.380626-06:00During handling of the above exception, another exception occurred:
2023-12-20 10:01:16.380631-06:002023-12-20T10:01:16.380631441-06:00
2023-12-20 10:01:16.380639-06:00Traceback (most recent call last):
2023-12-20 10:01:16.380645-06:00File "/app/bazarr/../libs/requests/adapters.py", line 489, in send
2023-12-20 10:01:16.380692-06:00resp = conn.urlopen(
2023-12-20 10:01:16.380696-06:00File "/app/bazarr/../libs/urllib3/connectionpool.py", line 787, in urlopen
2023-12-20 10:01:16.380796-06:00retries = retries.increment(
2023-12-20 10:01:16.380813-06:00File "/app/bazarr/../libs/urllib3/util/retry.py", line 592, in increment
2023-12-20 10:01:16.380875-06:00raise MaxRetryError(_pool, url, error or ResponseError(cause))
2023-12-20 10:01:16.380891-06:00urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='sonarr.ix-sonarr.svc.cluster.local', port=8989): Max retries exceeded with url: /signalr/connect?transport=serverSentEvents&connectionToken=kcqPZUBXmwoht8GTpR3EpUcIR0nhUlmInfmO%2BO2UmCADmFT8U%2BRprkiWH9Ab3y%2FNyqRv4%2BlxD3pRmoiE%2FjylEVWyppdRz00qQGaflA8qjvVY2uYnQS4wjXCJDqK3M9V4ms8ZZjMkM3ksEaz2W2wgDZWAZBGKXpWHlXFFHCcrBxXVSyVXrR%2BFmu5zp3%2Bw%2FgclpSFMXuQu0Rc3OKT2tpHSTvf%2BgtUXQOtkm3b5AfsO84pWk7upSeDTondadsTKqpApA9dJ2wA2HlYOCgYejD0o91TUcGn7QYHSkem%2BwGgsZCU1xLyeMc%2BBpEJJOUlI9eCG&connectionData=%5B%7B%22name%22%3A+%22%22%7D%5D&apikey=aa2e91f1e8a643ccac0de24fab8324e6&clientProtocol=1.5 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe5ef0aa200>: Failed to establish a new connection: [Errno 111] Connection refused'))
2023-12-20 10:01:16.380901-06:002023-12-20T10:01:16.380901586-06:00
2023-12-20 10:01:16.380906-06:00During handling of the above exception, another exception occurred:
2023-12-20 10:01:16.380914-06:002023-12-20T10:01:16.380914105-06:00
2023-12-20 10:01:16.380920-06:00Traceback (most recent call last):
2023-12-20 10:01:16.380930-06:00File "/app/bazarr/../libs/sseclient.py", line 57, in _connect
2023-12-20 10:01:16.380938-06:00self.resp = requester.get(self.url, stream=True, **self.requests_kwargs)
2023-12-20 10:01:16.380943-06:00File "/app/bazarr/../libs/requests/sessions.py", line 600, in get
2023-12-20 10:01:16.381012-06:00return self.request("GET", url, **kwargs)
2023-12-20 10:01:16.381035-06:00File "/app/bazarr/../libs/requests/sessions.py", line 587, in request
2023-12-20 10:01:16.381061-06:00resp = self.send(prep, **send_kwargs)
2023-12-20 10:01:16.381063-06:00File "/app/bazarr/../libs/requests/sessions.py", line 701, in send
2023-12-20 10:01:16.381143-06:00r = adapter.send(request, **kwargs)
2023-12-20 10:01:16.381146-06:00File "/app/bazarr/../libs/requests/adapters.py", line 565, in send
2023-12-20 10:01:16.381213-06:00raise ConnectionError(e, request=request)
2023-12-20 10:01:16.381223-06:00requests.exceptions.ConnectionError: HTTPConnectionPool(host='sonarr.ix-sonarr.svc.cluster.local', port=8989): Max retries exceeded with url: /signalr/connect?transport=serverSentEvents&connectionToken=kcqPZUBXmwoht8GTpR3EpUcIR0nhUlmInfmO%2BO2UmCADmFT8U%2BRprkiWH9Ab3y%2FNyqRv4%2BlxD3pRmoiE%2FjylEVWyppdRz00qQGaflA8qjvVY2uYnQS4wjXCJDqK3M9V4ms8ZZjMkM3ksEaz2W2wgDZWAZBGKXpWHlXFFHCcrBxXVSyVXrR%2BFmu5zp3%2Bw%2FgclpSFMXuQu0Rc3OKT2tpHSTvf%2BgtUXQOtkm3b5AfsO84pWk7upSeDTondadsTKqpApA9dJ2wA2HlYOCgYejD0o91TUcGn7QYHSkem%2BwGgsZCU1xLyeMc%2BBpEJJOUlI9eCG&connectionData=%5B%7B%22name%22%3A+%22%22%7D%5D&apikey=aa2e91f1e8a643ccac0de24fab8324e6&clientProtocol=1.5 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fe5ef0aa200>: Failed to establish a new connection: [Errno 111] Connection refused'))
2023-12-20 10:01:16.381236-06:002023-12-20T10:01:16.381236902-06:00
2023-12-20 10:01:16.381242-06:00During handling of the above exception, another exception occurred:
2023-12-20 10:01:16.381247-06:002023-12-20T10:01:16.381247034-06:00
2023-12-20 10:01:16.381251-06:00Traceback (most recent call last):
2023-12-20 10:01:16.381255-06:00File "/app/bazarr/../libs/signalr/_connection.py", line 60, in wrapped_listener
2023-12-20 10:01:16.381262-06:00listener()
2023-12-20 10:01:16.381267-06:00File "/app/bazarr/../libs/signalr/transports/_sse_transport.py", line 21, in _receive
2023-12-20 10:01:16.381276-06:00notification = next(self.__response)
2023-12-20 10:01:16.381281-06:00File "/app/bazarr/../libs/sseclient.py", line 104, in __next__
2023-12-20 10:01:16.381294-06:00self._connect()
2023-12-20 10:01:16.381297-06:00File "/app/bazarr/../libs/sseclient.py", line 59, in _connect
2023-12-20 10:01:16.381321-06:00raise requests.exceptions.ConnectionError
2023-12-20 10:01:16.381332-06:00requests.exceptions.ConnectionError
2023-12-20 10:01:16.381337-06:002023-12-20T10:01:16.381337625-06:00
2023-12-20 10:01:16.381342-06:00During handling of the above exception, another exception occurred:
2023-12-20 10:01:16.381346-06:002023-12-20T10:01:16.381346246-06:00
2023-12-20 10:01:16.381350-06:00Traceback (most recent call last):
2023-12-20 10:01:16.381354-06:00File "/usr/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
2023-12-20 10:01:16.381469-06:00self.run()
2023-12-20 10:01:16.381472-06:00File "/usr/lib/python3.10/threading.py", line 953, in run
2023-12-20 10:01:16.381578-06:00self._target(*self._args, **self._kwargs)
2023-12-20 10:01:16.381581-06:00File "/app/bazarr/../libs/signalr/_connection.py", line 62, in wrapped_listener
2023-12-20 10:01:16.381596-06:00self.exception.fire(*sys.exc_info())
2023-12-20 10:01:16.381599-06:00File "/app/bazarr/../libs/signalr/events/_events.py", line 15, in fire
2023-12-20 10:01:16.381616-06:00handler(*args, **kwargs)
2023-12-20 10:01:16.381619-06:00TypeError: SonarrSignalrClientLegacy.exception_handler() takes 1 positional argument but 4 were given

Application Configuration

The only thing that was changed was I applied the 12-20-23 update. Bazaar Metrics

Describe the bug

with metrics disabled bazarr exportarr deploys but fails due to lack of API key

To Reproduce

When I enable metrics and include the Bazarr API key it starts without any issue.

Expected Behavior

To show as running in the apps list.

Screenshots

N/A

Additional Context

https://discord.com/channels/830763548678291466/1187067426442055821

I've read and agree with the following

shadofall commented 9 months ago

Clarification exportarr pods deploy even with metrics off and not linked to config file like other arrs so can't automaticly pull API key (baring any limitations on Bazarr and expotarr compared to other arrs that can pull the api key from the config file)

stavros-k commented 9 months ago

https://github.com/truecharts/library-charts/commit/fc115e3e8fc287e68d46df49456d3a5fb0efc48e Should be fixed on the next common

PrivatePuffin commented 9 months ago

release thrown out, should be ready in a few hours