Skip to content

autobrr time out error #606

@newkind

Description

@newkind

Hi,

I have noticed that since couple days my autobrr container is the only one that doesn't get started after running through the nautical-backup. This was working fine in the past, so I'm not sure if its something with the nautical updates or the autobrr but here's the container log:

INFO: Nautical Backup Version: 2.14.25

INFO: Connected to database at '/config/nautical-db.json'

INFO: Initialization complete. Awaiting CRON schedule: 0 4 * * *

INFO: API listening on port 8069...

Traceback (most recent call last):

  File "/usr/lib/python3.11/site-packages/urllib3/connectionpool.py", line 534, in _make_request

INFO: Connected to database at '/config/nautical-db.json'

INFO: Starting backup...

INFO: Processing 36 containers...

INFO: Backing up ddns-updater...

INFO: Backup of ddns-updater complete!

INFO: Backing up group: paperless-ngx

INFO: Stopping paperless-ngx...

INFO: Backing up paperless-ngx...

INFO: Starting paperless-ngx...

INFO: Backup of paperless-ngx complete!

INFO: Stopping autobrr...

    response = conn.getresponse()

               ^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/urllib3/connection.py", line 565, in getresponse

    httplib_response = super().getresponse()

                       ^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/http/client.py", line 1395, in getresponse

    response.begin()

  File "/usr/lib/python3.11/http/client.py", line 325, in begin

    version, status, reason = self._read_status()

                              ^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/http/client.py", line 286, in _read_status

    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")

               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/socket.py", line 718, in readinto

    return self._sock.recv_into(b)

           ^^^^^^^^^^^^^^^^^^^^^^^

TimeoutError: timed out

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

  File "/usr/lib/python3.11/site-packages/requests/adapters.py", line 644, in send

    resp = conn.urlopen(

           ^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/urllib3/connectionpool.py", line 841, in urlopen

    retries = retries.increment(

              ^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/urllib3/util/retry.py", line 474, in increment

    raise reraise(type(error), error, _stacktrace)

          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/urllib3/util/util.py", line 39, in reraise

    raise value

  File "/usr/lib/python3.11/site-packages/urllib3/connectionpool.py", line 787, in urlopen

    response = self._make_request(

               ^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/urllib3/connectionpool.py", line 536, in _make_request

    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)

  File "/usr/lib/python3.11/site-packages/urllib3/connectionpool.py", line 367, in _raise_timeout

    raise ReadTimeoutError(

urllib3.exceptions.ReadTimeoutError: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=70)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "/app/backup.py", line 819, in <module>

    nautical.backup()

  File "/app/backup.py", line 734, in backup

    stop_result = self._stop_container(c)  # Stop containers

                  ^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/backup.py", line 383, in _stop_container

    c.stop(timeout=stop_timeout)  # * Actually stop the container

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/docker/models/containers.py", line 452, in stop

    return self.client.api.stop(self.id, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/docker/utils/decorators.py", line 19, in wrapped

    return f(self, resource_id, *args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/docker/api/container.py", line 1211, in stop

    res = self._post(url, params=params, timeout=conn_timeout)

          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/docker/utils/decorators.py", line 44, in inner

    return f(self, *args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/docker/api/client.py", line 242, in _post

    return self.post(url, **self._set_request_timeout(kwargs))

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/requests/sessions.py", line 637, in post

    return self.request("POST", url, data=data, json=json, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/requests/sessions.py", line 589, in request

    resp = self.send(prep, **send_kwargs)

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/requests/sessions.py", line 703, in send

    r = adapter.send(request, **kwargs)

        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/lib/python3.11/site-packages/requests/adapters.py", line 690, in send

    raise ReadTimeout(e, request=request)

requests.exceptions.ReadTimeout: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=70)

After this the autobrr stays shut down and all other containers are skipped.

P.S I just tried to run the nautical container with BACKUP_ON_START=true and it completed just fine. But the issue described above has happened already twice this week. So maybe something in the cron execution disturbs the process?

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions